@salutejs/plasma-new-hope 0.326.1-canary.2018.15641070716.0 → 0.326.1-canary.2018.15775755664.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/Calendar/CalendarBase/CalendarBase.js +12 -0
- package/cjs/components/Calendar/CalendarBase/CalendarBase.js.map +1 -1
- package/cjs/components/Calendar/CalendarDouble/CalendarDouble.js +12 -0
- package/cjs/components/Calendar/CalendarDouble/CalendarDouble.js.map +1 -1
- package/cjs/components/Calendar/ui/CalendarDays/CalendarDays.js +3 -0
- package/cjs/components/Calendar/ui/CalendarDays/CalendarDays.js.map +1 -1
- package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.js +3 -0
- package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.js.map +1 -1
- package/cjs/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js +3 -0
- package/cjs/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js.map +1 -1
- package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.js +3 -0
- package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.js.map +1 -1
- package/cjs/components/Carousel/CarouselNew/ui/Dots/Dots.js +52 -38
- package/cjs/components/Carousel/CarouselNew/ui/Dots/Dots.js.map +1 -1
- package/cjs/components/Drawer/Drawer.js +4 -3
- package/cjs/components/Drawer/Drawer.js.map +1 -1
- package/cjs/components/Drawer/hooks/useDrawer.js +2 -2
- package/cjs/components/Drawer/hooks/useDrawer.js.map +1 -1
- package/cjs/components/Mask/Mask.js +3 -3
- package/cjs/components/Mask/Mask.js.map +1 -1
- package/cjs/components/Modal/Modal.js +3 -2
- package/cjs/components/Modal/Modal.js.map +1 -1
- package/cjs/components/Modal/hooks/useModal.js +1 -1
- package/cjs/components/Modal/hooks/useModal.js.map +1 -1
- package/cjs/components/Popup/Popup.js +2 -1
- package/cjs/components/Popup/Popup.js.map +1 -1
- package/cjs/components/Popup/PopupContext.js +13 -15
- package/cjs/components/Popup/PopupContext.js.map +1 -1
- package/emotion/cjs/components/Calendar/CalendarBase/CalendarBase.js +12 -0
- package/emotion/cjs/components/Calendar/CalendarDouble/CalendarDouble.js +12 -0
- package/emotion/cjs/components/Calendar/ui/CalendarDays/CalendarDays.js +3 -0
- package/emotion/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.js +3 -0
- package/emotion/cjs/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js +3 -0
- package/emotion/cjs/components/Calendar/ui/CalendarYears/CalendarYears.js +3 -0
- package/emotion/cjs/components/Carousel/CarouselNew/ui/Dots/Dots.js +52 -38
- package/emotion/cjs/components/Drawer/Drawer.js +8 -8
- package/emotion/cjs/components/Drawer/hooks/useDrawer.js +2 -2
- package/emotion/cjs/components/Mask/Mask.js +3 -3
- package/emotion/cjs/components/Modal/Modal.js +6 -5
- package/emotion/cjs/components/Modal/hooks/useModal.js +1 -1
- package/emotion/cjs/components/Popup/Popup.js +1 -1
- package/emotion/cjs/components/Popup/PopupContext.js +14 -20
- package/emotion/es/components/Calendar/CalendarBase/CalendarBase.js +12 -0
- package/emotion/es/components/Calendar/CalendarDouble/CalendarDouble.js +12 -0
- package/emotion/es/components/Calendar/ui/CalendarDays/CalendarDays.js +3 -0
- package/emotion/es/components/Calendar/ui/CalendarMonths/CalendarMonths.js +3 -0
- package/emotion/es/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js +3 -0
- package/emotion/es/components/Calendar/ui/CalendarYears/CalendarYears.js +3 -0
- package/emotion/es/components/Carousel/CarouselNew/ui/Dots/Dots.js +52 -38
- package/emotion/es/components/Drawer/Drawer.js +3 -3
- package/emotion/es/components/Drawer/hooks/useDrawer.js +2 -2
- package/emotion/es/components/Mask/Mask.js +3 -3
- package/emotion/es/components/Modal/Modal.js +4 -3
- package/emotion/es/components/Modal/hooks/useModal.js +1 -1
- package/emotion/es/components/Popup/Popup.js +2 -2
- package/emotion/es/components/Popup/PopupContext.js +14 -20
- package/es/components/Calendar/CalendarBase/CalendarBase.js +12 -0
- package/es/components/Calendar/CalendarBase/CalendarBase.js.map +1 -1
- package/es/components/Calendar/CalendarDouble/CalendarDouble.js +12 -0
- package/es/components/Calendar/CalendarDouble/CalendarDouble.js.map +1 -1
- package/es/components/Calendar/ui/CalendarDays/CalendarDays.js +3 -0
- package/es/components/Calendar/ui/CalendarDays/CalendarDays.js.map +1 -1
- package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.js +3 -0
- package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.js.map +1 -1
- package/es/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js +3 -0
- package/es/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js.map +1 -1
- package/es/components/Calendar/ui/CalendarYears/CalendarYears.js +3 -0
- package/es/components/Calendar/ui/CalendarYears/CalendarYears.js.map +1 -1
- package/es/components/Carousel/CarouselNew/ui/Dots/Dots.js +52 -38
- package/es/components/Carousel/CarouselNew/ui/Dots/Dots.js.map +1 -1
- package/es/components/Drawer/Drawer.js +4 -3
- package/es/components/Drawer/Drawer.js.map +1 -1
- package/es/components/Drawer/hooks/useDrawer.js +2 -2
- package/es/components/Drawer/hooks/useDrawer.js.map +1 -1
- package/es/components/Mask/Mask.js +3 -3
- package/es/components/Mask/Mask.js.map +1 -1
- package/es/components/Modal/Modal.js +3 -2
- package/es/components/Modal/Modal.js.map +1 -1
- package/es/components/Modal/hooks/useModal.js +1 -1
- package/es/components/Modal/hooks/useModal.js.map +1 -1
- package/es/components/Popup/Popup.js +2 -1
- package/es/components/Popup/Popup.js.map +1 -1
- package/es/components/Popup/PopupContext.js +14 -16
- package/es/components/Popup/PopupContext.js.map +1 -1
- package/package.json +2 -2
- package/styled-components/cjs/components/Calendar/CalendarBase/CalendarBase.js +12 -0
- package/styled-components/cjs/components/Calendar/CalendarDouble/CalendarDouble.js +12 -0
- package/styled-components/cjs/components/Calendar/ui/CalendarDays/CalendarDays.js +3 -0
- package/styled-components/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.js +3 -0
- package/styled-components/cjs/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js +3 -0
- package/styled-components/cjs/components/Calendar/ui/CalendarYears/CalendarYears.js +3 -0
- package/styled-components/cjs/components/Carousel/CarouselNew/ui/Dots/Dots.js +52 -38
- package/styled-components/cjs/components/Drawer/Drawer.js +8 -8
- package/styled-components/cjs/components/Drawer/hooks/useDrawer.js +2 -2
- package/styled-components/cjs/components/Mask/Mask.js +3 -3
- package/styled-components/cjs/components/Modal/Modal.js +6 -5
- package/styled-components/cjs/components/Modal/hooks/useModal.js +1 -1
- package/styled-components/cjs/components/Popup/Popup.js +1 -1
- package/styled-components/cjs/components/Popup/PopupContext.js +14 -20
- package/styled-components/es/components/Calendar/CalendarBase/CalendarBase.js +12 -0
- package/styled-components/es/components/Calendar/CalendarDouble/CalendarDouble.js +12 -0
- package/styled-components/es/components/Calendar/ui/CalendarDays/CalendarDays.js +3 -0
- package/styled-components/es/components/Calendar/ui/CalendarMonths/CalendarMonths.js +3 -0
- package/styled-components/es/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js +3 -0
- package/styled-components/es/components/Calendar/ui/CalendarYears/CalendarYears.js +3 -0
- package/styled-components/es/components/Carousel/CarouselNew/ui/Dots/Dots.js +52 -38
- package/styled-components/es/components/Drawer/Drawer.js +3 -3
- package/styled-components/es/components/Drawer/hooks/useDrawer.js +2 -2
- package/styled-components/es/components/Mask/Mask.js +3 -3
- package/styled-components/es/components/Modal/Modal.js +4 -3
- package/styled-components/es/components/Modal/hooks/useModal.js +1 -1
- package/styled-components/es/components/Popup/Popup.js +2 -2
- package/styled-components/es/components/Popup/PopupContext.js +14 -20
- package/types/components/Calendar/CalendarBase/CalendarBase.d.ts.map +1 -1
- package/types/components/Calendar/CalendarDouble/CalendarDouble.d.ts.map +1 -1
- package/types/components/Calendar/ui/CalendarDays/CalendarDays.d.ts.map +1 -1
- package/types/components/Calendar/ui/CalendarMonths/CalendarMonths.d.ts.map +1 -1
- package/types/components/Calendar/ui/CalendarQuarters/CalendarQuarters.d.ts.map +1 -1
- package/types/components/Calendar/ui/CalendarYears/CalendarYears.d.ts.map +1 -1
- package/types/components/Carousel/CarouselNew/ui/Dots/Dots.d.ts.map +1 -1
- package/types/components/Drawer/Drawer.d.ts +1 -1
- package/types/components/Drawer/Drawer.d.ts.map +1 -1
- package/types/components/Drawer/hooks/useDrawer.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/Popup/Popup.d.ts +1 -1
- package/types/components/Popup/Popup.d.ts.map +1 -1
- package/types/components/Popup/Popup.types.d.ts +1 -1
- package/types/components/Popup/Popup.types.d.ts.map +1 -1
- package/types/components/Popup/PopupContext.d.ts.map +1 -1
@@ -7,11 +7,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
7
7
|
exports.modalRoot = exports.modalConfig = void 0;
|
8
8
|
var _react = /*#__PURE__*/_interopRequireWildcard(/*#__PURE__*/require("react"));
|
9
9
|
var _plasmaCore = /*#__PURE__*/require("@salutejs/plasma-core");
|
10
|
+
var _utils = /*#__PURE__*/require("../../utils");
|
10
11
|
var _engines = /*#__PURE__*/require("../../engines");
|
12
|
+
var _hooks = /*#__PURE__*/require("../../hooks");
|
11
13
|
var _Popup = /*#__PURE__*/require("../Popup");
|
12
14
|
var _Overlay = /*#__PURE__*/require("../Overlay");
|
13
|
-
var
|
14
|
-
var _hooks = /*#__PURE__*/require("../../hooks");
|
15
|
+
var _utils2 = /*#__PURE__*/require("../Popup/utils");
|
15
16
|
var _IconClose2 = /*#__PURE__*/require("../_Icon/Icons/IconClose");
|
16
17
|
var _Modal = /*#__PURE__*/require("./Modal.tokens");
|
17
18
|
var _hooks2 = /*#__PURE__*/require("./hooks");
|
@@ -60,7 +61,7 @@ var modalRoot = exports.modalRoot = function modalRoot(Root) {
|
|
60
61
|
var trapRef = (0, _hooks.useFocusTrap)(true, initialFocusRef, focusAfterRef, true);
|
61
62
|
var popupController = (0, _Popup.usePopupContext)();
|
62
63
|
var innerRef = (0, _plasmaCore.useForkRef)(trapRef, outerRootRef);
|
63
|
-
var uniqId = (0,
|
64
|
+
var uniqId = (0, _utils.safeUseId)();
|
64
65
|
var innerId = id || uniqId;
|
65
66
|
var overlayBackgroundToken = withBlur ? "var(".concat(_Modal.tokens.modalOverlayWithBlurColor, ")") : "var(".concat(_Modal.tokens.modalOverlayColor, ")");
|
66
67
|
var _useModal = (0, _hooks2.useModal)({
|
@@ -73,7 +74,7 @@ var modalRoot = exports.modalRoot = function modalRoot(Root) {
|
|
73
74
|
}),
|
74
75
|
modalInfo = _useModal.modalInfo;
|
75
76
|
var transparent = (0, _react.useMemo)(function () {
|
76
|
-
return (0, _ModalContext.getIdLastModal)(popupController.items) !== innerId;
|
77
|
+
return (0, _ModalContext.getIdLastModal)(Array.from(popupController.items.values())) !== innerId;
|
77
78
|
}, [innerId, popupController.items]);
|
78
79
|
var onModalOverlayKeyDown = (0, _react.useCallback)(function (event) {
|
79
80
|
if (onOverlayClick) {
|
@@ -86,7 +87,7 @@ var modalRoot = exports.modalRoot = function modalRoot(Root) {
|
|
86
87
|
}, [closeOnOverlayClick, onOverlayClick, onClose]);
|
87
88
|
var overlayNode = /*#__PURE__*/_react["default"].createElement(_Overlay.Overlay, {
|
88
89
|
className: _Modal.classes.overlay,
|
89
|
-
zIndex: zIndex ||
|
90
|
+
zIndex: zIndex || _utils2.DEFAULT_Z_INDEX,
|
90
91
|
backgroundColorProperty: overlayBackgroundToken,
|
91
92
|
withBlur: withBlur,
|
92
93
|
transparent: transparent,
|
@@ -28,7 +28,7 @@ var useModal = exports.useModal = function useModal(_ref) {
|
|
28
28
|
if (!closeOnEsc) {
|
29
29
|
return;
|
30
30
|
}
|
31
|
-
if (event.keyCode === ESCAPE_KEYCODE && (0, _ModalContext.getIdLastModal)(popupController.items) === id) {
|
31
|
+
if (event.keyCode === ESCAPE_KEYCODE && (0, _ModalContext.getIdLastModal)(Array.from(popupController.items.values())) === id) {
|
32
32
|
if (onEscKeyDown) {
|
33
33
|
onEscKeyDown(event);
|
34
34
|
return;
|
@@ -109,7 +109,7 @@ var popupRoot = exports.popupRoot = function popupRoot(Root) {
|
|
109
109
|
className = _ref.className,
|
110
110
|
rest = _objectWithoutProperties(_ref, _excluded);
|
111
111
|
var innerIsOpen = isOpen || opened;
|
112
|
-
var uniqId = (0,
|
112
|
+
var uniqId = (0, _utils.safeUseId)();
|
113
113
|
var innerId = id || uniqId;
|
114
114
|
var _usePopup = (0, _hooks.usePopup)({
|
115
115
|
isOpen: innerIsOpen,
|
@@ -6,17 +6,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
});
|
7
7
|
exports.usePopupContext = exports.PopupProvider = exports.POPUP_PORTAL_ID = void 0;
|
8
8
|
var _react = /*#__PURE__*/_interopRequireWildcard(/*#__PURE__*/require("react"));
|
9
|
+
var _utils = /*#__PURE__*/require("../../utils");
|
9
10
|
var _Portal = /*#__PURE__*/require("../Portal");
|
10
11
|
var _ModalContext = /*#__PURE__*/require("../Modal/ModalContext");
|
11
|
-
var _utils = /*#__PURE__*/require("../../utils");
|
12
12
|
var _ClientOnlyPortal = /*#__PURE__*/require("./ClientOnlyPortal");
|
13
13
|
var _Popup = /*#__PURE__*/require("./Popup.styles");
|
14
14
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
15
15
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
16
|
-
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
17
|
-
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
18
|
-
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
19
|
-
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
|
20
16
|
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
21
17
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
22
18
|
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
@@ -24,9 +20,9 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length)
|
|
24
20
|
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; } }
|
25
21
|
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
26
22
|
var POPUP_PORTAL_ID = exports.POPUP_PORTAL_ID = 'plasma-popup-root';
|
27
|
-
var
|
23
|
+
var initialItems = /*#__PURE__*/new Map();
|
28
24
|
var PopupContext = /*#__PURE__*/(0, _react.createContext)({
|
29
|
-
items:
|
25
|
+
items: initialItems,
|
30
26
|
rootId: POPUP_PORTAL_ID,
|
31
27
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
32
28
|
register: function register(_info) {
|
@@ -46,7 +42,7 @@ var PopupProvider = exports.PopupProvider = function PopupProvider(_ref) {
|
|
46
42
|
var children = _ref.children,
|
47
43
|
UNSAFE_SSR_ENABLED = _ref.UNSAFE_SSR_ENABLED;
|
48
44
|
var prevBodyOverflowY = (0, _react.useRef)(_utils.canUseDOM ? document.body.style.overflowY : '');
|
49
|
-
var _useState = (0, _react.useState)(
|
45
|
+
var _useState = (0, _react.useState)(initialItems),
|
50
46
|
_useState2 = _slicedToArray(_useState, 2),
|
51
47
|
items = _useState2[0],
|
52
48
|
setItems = _useState2[1];
|
@@ -58,11 +54,13 @@ var PopupProvider = exports.PopupProvider = function PopupProvider(_ref) {
|
|
58
54
|
}
|
59
55
|
setItems(function (prevItems) {
|
60
56
|
var _info$info;
|
61
|
-
|
57
|
+
var newItems = new Map(prevItems);
|
58
|
+
if ((_info$info = info.info) !== null && _info$info !== void 0 && _info$info.isModal && !(0, _ModalContext.hasModals)(Array.from(prevItems.values()))) {
|
62
59
|
prevBodyOverflowY.current = document.body.style.overflowY;
|
63
60
|
document.body.style.overflowY = 'hidden';
|
64
61
|
}
|
65
|
-
|
62
|
+
newItems.set(info.id, info);
|
63
|
+
return newItems;
|
66
64
|
});
|
67
65
|
};
|
68
66
|
var unregister = function unregister(id) {
|
@@ -70,20 +68,16 @@ var PopupProvider = exports.PopupProvider = function PopupProvider(_ref) {
|
|
70
68
|
return;
|
71
69
|
}
|
72
70
|
setItems(function (prevItems) {
|
73
|
-
|
74
|
-
return id === item.id;
|
75
|
-
});
|
76
|
-
if (index === -1) {
|
71
|
+
if (!prevItems.has(id)) {
|
77
72
|
return prevItems;
|
78
73
|
}
|
79
|
-
var
|
80
|
-
|
81
|
-
|
74
|
+
var newItems = new Map(prevItems);
|
75
|
+
var prevHasModals = (0, _ModalContext.hasModals)(Array.from(newItems.values()));
|
76
|
+
newItems["delete"](id);
|
77
|
+
if (prevHasModals && !(0, _ModalContext.hasModals)(Array.from(newItems.values()))) {
|
82
78
|
document.body.style.overflowY = prevBodyOverflowY.current;
|
83
79
|
}
|
84
|
-
|
85
|
-
// при return prevItems не обновится контекст
|
86
|
-
return _toConsumableArray(prevItems);
|
80
|
+
return newItems;
|
87
81
|
});
|
88
82
|
};
|
89
83
|
var context = {
|
@@ -135,6 +135,18 @@ export var calendarBaseRoot = function calendarBaseRoot(Root) {
|
|
135
135
|
setPrevType(calendarState);
|
136
136
|
}
|
137
137
|
}, [calendarState]);
|
138
|
+
useEffect(function () {
|
139
|
+
if (prevType !== type) {
|
140
|
+
dispatch({
|
141
|
+
type: ActionType.UPDATE_CALENDAR_STATE,
|
142
|
+
payload: {
|
143
|
+
calendarState: type,
|
144
|
+
size: sizeMap[type].single
|
145
|
+
}
|
146
|
+
});
|
147
|
+
setPrevType(type);
|
148
|
+
}
|
149
|
+
}, [type]);
|
138
150
|
useEffect(function () {
|
139
151
|
if (value && prevValue && isValueUpdate(value, prevValue) || value && !prevValue) {
|
140
152
|
dispatch({
|
@@ -182,6 +182,18 @@ export var calendarDoubleRoot = function calendarDoubleRoot(Root) {
|
|
182
182
|
setPrevType(calendarState);
|
183
183
|
}
|
184
184
|
}, [calendarState]);
|
185
|
+
useEffect(function () {
|
186
|
+
if (prevType !== type) {
|
187
|
+
dispatch({
|
188
|
+
type: ActionType.UPDATE_CALENDAR_STATE,
|
189
|
+
payload: {
|
190
|
+
calendarState: type,
|
191
|
+
size: sizeMap[type]["double"]
|
192
|
+
}
|
193
|
+
});
|
194
|
+
setPrevType(type);
|
195
|
+
}
|
196
|
+
}, [type]);
|
185
197
|
useEffect(function () {
|
186
198
|
if (value && prevValue && isValueUpdate(value, prevValue) || value && !prevValue) {
|
187
199
|
var _getBoundaryDates = getBoundaryDates(),
|
@@ -92,6 +92,9 @@ export var CalendarDays = function CalendarDays(_ref) {
|
|
92
92
|
};
|
93
93
|
var getRefs = function getRefs(element, isDayInCurrentMonth, i, j) {
|
94
94
|
if (isDayInCurrentMonth) {
|
95
|
+
if (!outerRefs.current[i + offset]) {
|
96
|
+
outerRefs.current[i + offset] = [];
|
97
|
+
}
|
95
98
|
outerRefs.current[i + offset][j] = element;
|
96
99
|
}
|
97
100
|
};
|
@@ -98,6 +98,9 @@ export var CalendarMonths = function CalendarMonths(_ref) {
|
|
98
98
|
return onHoverMonth === null || onHoverMonth === void 0 ? void 0 : onHoverMonth(undefined);
|
99
99
|
};
|
100
100
|
var getRefs = useCallback(function (element, i, j) {
|
101
|
+
if (!outerRefs.current[i + offset]) {
|
102
|
+
outerRefs.current[i + offset] = [];
|
103
|
+
}
|
101
104
|
outerRefs.current[i + offset][j] = element;
|
102
105
|
}, [offset, outerRefs]);
|
103
106
|
useEffect(function () {
|
@@ -96,6 +96,9 @@ export var CalendarQuarters = function CalendarQuarters(_ref) {
|
|
96
96
|
return onHoverQuarter === null || onHoverQuarter === void 0 ? void 0 : onHoverQuarter(undefined);
|
97
97
|
};
|
98
98
|
var getRefs = useCallback(function (element, i, j) {
|
99
|
+
if (!outerRefs.current[i + offset]) {
|
100
|
+
outerRefs.current[i + offset] = [];
|
101
|
+
}
|
99
102
|
outerRefs.current[i + offset][j] = element;
|
100
103
|
}, [offset, outerRefs]);
|
101
104
|
useEffect(function () {
|
@@ -98,6 +98,9 @@ export var CalendarYears = function CalendarYears(_ref) {
|
|
98
98
|
return onHoverYear === null || onHoverYear === void 0 ? void 0 : onHoverYear(undefined);
|
99
99
|
};
|
100
100
|
var getRefs = useCallback(function (element, i, j) {
|
101
|
+
if (!outerRefs.current[i + offset]) {
|
102
|
+
outerRefs.current[i + offset] = [];
|
103
|
+
}
|
101
104
|
outerRefs.current[i + offset][j] = element;
|
102
105
|
}, [outerRefs]);
|
103
106
|
useEffect(function () {
|
@@ -132,26 +132,33 @@ export var Dots = /*#__PURE__*/memo(function (_ref) {
|
|
132
132
|
}
|
133
133
|
if (dotsToAdd > 0) {
|
134
134
|
var _loop = function _loop() {
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
135
|
+
var _dotWrapperRef$curren4;
|
136
|
+
var node = document.createElement('div');
|
137
|
+
node.textContent = '';
|
138
|
+
node.classList.add(classes.dot);
|
139
|
+
node.style.opacity = '0';
|
140
|
+
var delay = i * (ANIMATION_DURATION / dotsToAdd);
|
141
|
+
node.style.animationDelay = "".concat(delay, "s");
|
142
|
+
rightAnimationWrapperRef.current.appendChild(node);
|
143
|
+
var duration = ANIMATION_DURATION / dotsToAdd;
|
144
|
+
requestAnimationFrame(function () {
|
145
|
+
node.classList.add(classes.animateIn);
|
146
|
+
node.style.animationDuration = "".concat(duration, "s");
|
147
|
+
});
|
148
|
+
var currentDomNode = (_dotWrapperRef$curren4 = dotWrapperRef.current.children) === null || _dotWrapperRef$curren4 === void 0 ? void 0 : _dotWrapperRef$curren4[i];
|
149
|
+
if (!currentDomNode) {
|
150
|
+
return {
|
151
|
+
v: void 0
|
152
|
+
};
|
153
|
+
}
|
154
|
+
currentDomNode.classList.add(classes.animateOut);
|
155
|
+
currentDomNode.style.animationDelay = "".concat(delay, "s");
|
156
|
+
currentDomNode.style.animationDuration = "".concat(duration, "s");
|
157
|
+
},
|
158
|
+
_ret;
|
153
159
|
for (var i = 0; i < dotsToAdd; i++) {
|
154
|
-
_loop();
|
160
|
+
_ret = _loop();
|
161
|
+
if (_ret) return _ret.v;
|
155
162
|
}
|
156
163
|
}
|
157
164
|
} else {
|
@@ -173,26 +180,33 @@ export var Dots = /*#__PURE__*/memo(function (_ref) {
|
|
173
180
|
}
|
174
181
|
if (dotsToAdd > 0) {
|
175
182
|
var _loop2 = function _loop2() {
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
183
|
+
var _dotWrapperRef$curren7;
|
184
|
+
var node = document.createElement('div');
|
185
|
+
node.textContent = '';
|
186
|
+
node.classList.add(classes.dot);
|
187
|
+
node.style.opacity = '0';
|
188
|
+
var delay = (dotsToAdd - 1 - _i) * (ANIMATION_DURATION / dotsToAdd);
|
189
|
+
node.style.animationDelay = "".concat(delay, "s");
|
190
|
+
leftAnimationWrapperRef.current.prepend(node);
|
191
|
+
var duration = ANIMATION_DURATION / dotsToAdd;
|
192
|
+
requestAnimationFrame(function () {
|
193
|
+
node.classList.add(classes.animateIn);
|
194
|
+
node.style.animationDuration = "".concat(duration, "s");
|
195
|
+
});
|
196
|
+
var currentDomNode = (_dotWrapperRef$curren7 = dotWrapperRef.current.children) === null || _dotWrapperRef$curren7 === void 0 ? void 0 : _dotWrapperRef$curren7[dotWrapperRef.current.children.length - 1 - _i];
|
197
|
+
if (!currentDomNode) {
|
198
|
+
return {
|
199
|
+
v: void 0
|
200
|
+
};
|
201
|
+
}
|
202
|
+
currentDomNode.classList.add(classes.animateOut);
|
203
|
+
currentDomNode.style.animationDelay = "".concat(_i * (ANIMATION_DURATION / dotsToAdd), "s");
|
204
|
+
currentDomNode.style.animationDuration = "".concat(duration, "s");
|
205
|
+
},
|
206
|
+
_ret2;
|
194
207
|
for (var _i = dotsToAdd - 1; _i >= 0; _i--) {
|
195
|
-
_loop2();
|
208
|
+
_ret2 = _loop2();
|
209
|
+
if (_ret2) return _ret2.v;
|
196
210
|
}
|
197
211
|
}
|
198
212
|
}
|
@@ -3,11 +3,11 @@ function _extends() { return _extends = Object.assign ? Object.assign.bind() : f
|
|
3
3
|
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
4
4
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
5
5
|
import React, { forwardRef, useMemo } from 'react';
|
6
|
-
import { useForkRef
|
6
|
+
import { useForkRef } from '@salutejs/plasma-core';
|
7
|
+
import { cx, getSizeValueFromProp, safeUseId } from "../../utils";
|
7
8
|
import { usePopupContext } from "../Popup";
|
8
9
|
import { Overlay } from "../Overlay";
|
9
10
|
import { DEFAULT_Z_INDEX } from "../Popup/utils";
|
10
|
-
import { cx, getSizeValueFromProp } from "../../utils";
|
11
11
|
import { useFocusTrap } from "../../hooks";
|
12
12
|
import { classes, tokens } from "./Drawer.tokens";
|
13
13
|
import { base as viewCSS } from "./variations/_view/base";
|
@@ -74,7 +74,7 @@ export var drawerRoot = function drawerRoot(Root) {
|
|
74
74
|
}),
|
75
75
|
drawerInfo = _useDrawer.drawerInfo;
|
76
76
|
var transparent = useMemo(function () {
|
77
|
-
return getIdLastDrawer(popupController.items) !== innerId;
|
77
|
+
return getIdLastDrawer(Array.from(popupController.items.values())) !== innerId;
|
78
78
|
}, [innerId, popupController.items]);
|
79
79
|
var onDrawerOverlayKeyDown = function onDrawerOverlayKeyDown(event) {
|
80
80
|
if (onOverlayClick) {
|
@@ -27,7 +27,7 @@ export var useDrawer = function useDrawer(_ref) {
|
|
27
27
|
if (!closeOnEsc) {
|
28
28
|
return;
|
29
29
|
}
|
30
|
-
if (event.keyCode === ESCAPE_KEYCODE && getIdLastDrawer(popupController.items) === id) {
|
30
|
+
if (event.keyCode === ESCAPE_KEYCODE && getIdLastDrawer(Array.from(popupController.items.values())) === id) {
|
31
31
|
if (onEscKeyDown) {
|
32
32
|
onEscKeyDown(event);
|
33
33
|
return;
|
@@ -58,7 +58,7 @@ export var useDrawer = function useDrawer(_ref) {
|
|
58
58
|
if (!canUseDOM) {
|
59
59
|
return;
|
60
60
|
}
|
61
|
-
if (!isOpen && !hasDrawers(popupController.items)) {
|
61
|
+
if (!isOpen && !hasDrawers(Array.from(popupController.items.values()))) {
|
62
62
|
document.body.style.overflow = overflow.current;
|
63
63
|
}
|
64
64
|
}, [isOpen, popupController.items]);
|
@@ -11,11 +11,11 @@ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t =
|
|
11
11
|
import React, { forwardRef, useImperativeHandle, useState } from 'react';
|
12
12
|
import maskInputCompose from '@salutejs/react-maskinput';
|
13
13
|
var defaultFormatChars = [{
|
14
|
-
str: '0',
|
15
|
-
regexp: /[0-9]/
|
16
|
-
}, {
|
17
14
|
str: '*',
|
18
15
|
regexp: /./
|
16
|
+
}, {
|
17
|
+
str: '0',
|
18
|
+
regexp: /[0-9]/
|
19
19
|
}, {
|
20
20
|
str: 'a',
|
21
21
|
regexp: /[a-zA-Z]/
|
@@ -4,12 +4,13 @@ function _extends() { return _extends = Object.assign ? Object.assign.bind() : f
|
|
4
4
|
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
5
5
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
6
6
|
import React, { forwardRef, useCallback, useMemo } from 'react';
|
7
|
-
import { useForkRef
|
7
|
+
import { useForkRef } from '@salutejs/plasma-core';
|
8
|
+
import { safeUseId } from "../../utils";
|
8
9
|
import { component } from "../../engines";
|
10
|
+
import { useFocusTrap } from "../../hooks";
|
9
11
|
import { popupConfig, usePopupContext } from "../Popup";
|
10
12
|
import { Overlay } from "../Overlay";
|
11
13
|
import { DEFAULT_Z_INDEX } from "../Popup/utils";
|
12
|
-
import { useFocusTrap } from "../../hooks";
|
13
14
|
import { IconClose } from "../_Icon/Icons/IconClose";
|
14
15
|
import { classes, tokens } from "./Modal.tokens";
|
15
16
|
import { useModal } from "./hooks";
|
@@ -65,7 +66,7 @@ export var modalRoot = function modalRoot(Root) {
|
|
65
66
|
}),
|
66
67
|
modalInfo = _useModal.modalInfo;
|
67
68
|
var transparent = useMemo(function () {
|
68
|
-
return getIdLastModal(popupController.items) !== innerId;
|
69
|
+
return getIdLastModal(Array.from(popupController.items.values())) !== innerId;
|
69
70
|
}, [innerId, popupController.items]);
|
70
71
|
var onModalOverlayKeyDown = useCallback(function (event) {
|
71
72
|
if (onOverlayClick) {
|
@@ -22,7 +22,7 @@ export var useModal = function useModal(_ref) {
|
|
22
22
|
if (!closeOnEsc) {
|
23
23
|
return;
|
24
24
|
}
|
25
|
-
if (event.keyCode === ESCAPE_KEYCODE && getIdLastModal(popupController.items) === id) {
|
25
|
+
if (event.keyCode === ESCAPE_KEYCODE && getIdLastModal(Array.from(popupController.items.values())) === id) {
|
26
26
|
if (onEscKeyDown) {
|
27
27
|
onEscKeyDown(event);
|
28
28
|
return;
|
@@ -9,8 +9,8 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length)
|
|
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(r) { if (Array.isArray(r)) return r; }
|
11
11
|
import React, { forwardRef, useRef } from 'react';
|
12
|
-
import { useForkRef
|
13
|
-
import { canUseDOM, cx } from "../../utils";
|
12
|
+
import { useForkRef } from '@salutejs/plasma-core';
|
13
|
+
import { canUseDOM, cx, safeUseId } from "../../utils";
|
14
14
|
import { Portal } from "../Portal";
|
15
15
|
import { PopupRoot } from "./PopupRoot";
|
16
16
|
import { usePopup } from "./hooks";
|
@@ -1,7 +1,3 @@
|
|
1
|
-
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
2
|
-
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
3
|
-
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
4
|
-
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
|
5
1
|
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
6
2
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
7
3
|
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
@@ -9,15 +5,15 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length)
|
|
9
5
|
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
6
|
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
11
7
|
import React, { createContext, useState, useContext, useRef } from 'react';
|
8
|
+
import { canUseDOM, safeUseId } from "../../utils";
|
12
9
|
import { Portal } from "../Portal";
|
13
10
|
import { hasModals } from "../Modal/ModalContext";
|
14
|
-
import { canUseDOM, safeUseId } from "../../utils";
|
15
11
|
import { ClientOnlyPortal } from "./ClientOnlyPortal";
|
16
12
|
import { StyledPortal } from "./Popup.styles";
|
17
13
|
export var POPUP_PORTAL_ID = 'plasma-popup-root';
|
18
|
-
var
|
14
|
+
var initialItems = /*#__PURE__*/new Map();
|
19
15
|
var PopupContext = /*#__PURE__*/createContext({
|
20
|
-
items:
|
16
|
+
items: initialItems,
|
21
17
|
rootId: POPUP_PORTAL_ID,
|
22
18
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
23
19
|
register: function register(_info) {
|
@@ -37,7 +33,7 @@ export var PopupProvider = function PopupProvider(_ref) {
|
|
37
33
|
var children = _ref.children,
|
38
34
|
UNSAFE_SSR_ENABLED = _ref.UNSAFE_SSR_ENABLED;
|
39
35
|
var prevBodyOverflowY = useRef(canUseDOM ? document.body.style.overflowY : '');
|
40
|
-
var _useState = useState(
|
36
|
+
var _useState = useState(initialItems),
|
41
37
|
_useState2 = _slicedToArray(_useState, 2),
|
42
38
|
items = _useState2[0],
|
43
39
|
setItems = _useState2[1];
|
@@ -49,11 +45,13 @@ export var PopupProvider = function PopupProvider(_ref) {
|
|
49
45
|
}
|
50
46
|
setItems(function (prevItems) {
|
51
47
|
var _info$info;
|
52
|
-
|
48
|
+
var newItems = new Map(prevItems);
|
49
|
+
if ((_info$info = info.info) !== null && _info$info !== void 0 && _info$info.isModal && !hasModals(Array.from(prevItems.values()))) {
|
53
50
|
prevBodyOverflowY.current = document.body.style.overflowY;
|
54
51
|
document.body.style.overflowY = 'hidden';
|
55
52
|
}
|
56
|
-
|
53
|
+
newItems.set(info.id, info);
|
54
|
+
return newItems;
|
57
55
|
});
|
58
56
|
};
|
59
57
|
var unregister = function unregister(id) {
|
@@ -61,20 +59,16 @@ export var PopupProvider = function PopupProvider(_ref) {
|
|
61
59
|
return;
|
62
60
|
}
|
63
61
|
setItems(function (prevItems) {
|
64
|
-
|
65
|
-
return id === item.id;
|
66
|
-
});
|
67
|
-
if (index === -1) {
|
62
|
+
if (!prevItems.has(id)) {
|
68
63
|
return prevItems;
|
69
64
|
}
|
70
|
-
var
|
71
|
-
|
72
|
-
|
65
|
+
var newItems = new Map(prevItems);
|
66
|
+
var prevHasModals = hasModals(Array.from(newItems.values()));
|
67
|
+
newItems["delete"](id);
|
68
|
+
if (prevHasModals && !hasModals(Array.from(newItems.values()))) {
|
73
69
|
document.body.style.overflowY = prevBodyOverflowY.current;
|
74
70
|
}
|
75
|
-
|
76
|
-
// при return prevItems не обновится контекст
|
77
|
-
return _toConsumableArray(prevItems);
|
71
|
+
return newItems;
|
78
72
|
});
|
79
73
|
};
|
80
74
|
var context = {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"CalendarBase.d.ts","sourceRoot":"","sources":["../../../../src/components/Calendar/CalendarBase/CalendarBase.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAMV,cAAc,EAGjB,MAAM,OAAO,CAAC;AAGf,OAAO,KAAK,EAAE,QAAQ,EAAE,mBAAmB,EAAc,MAAM,mBAAmB,CAAC;AAMnF,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAO7C,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,mBAAmB,CAAC;AAE/D;;GAEG;AACH,eAAO,MAAM,gBAAgB,SAAU,SAAS,CAAC,cAAc,EAAE,cAAc,CAAC,cAAc,CAAC,CAAC,
|
1
|
+
{"version":3,"file":"CalendarBase.d.ts","sourceRoot":"","sources":["../../../../src/components/Calendar/CalendarBase/CalendarBase.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAMV,cAAc,EAGjB,MAAM,OAAO,CAAC;AAGf,OAAO,KAAK,EAAE,QAAQ,EAAE,mBAAmB,EAAc,MAAM,mBAAmB,CAAC;AAMnF,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAO7C,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,mBAAmB,CAAC;AAE/D;;GAEG;AACH,eAAO,MAAM,gBAAgB,SAAU,SAAS,CAAC,cAAc,EAAE,cAAc,CAAC,cAAc,CAAC,CAAC,0GA6N3F,CAAC;AAEN,eAAO,MAAM,kBAAkB;;;mBA/NQ,SAAS,CAAC,cAAc,EAAE,cAAc,CAAC,cAAc,CAAC,CAAC;;;;;;;;;;;;;;CAgP/F,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"CalendarDouble.d.ts","sourceRoot":"","sources":["../../../../src/components/Calendar/CalendarDouble/CalendarDouble.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAKV,cAAc,EAIjB,MAAM,OAAO,CAAC;AAGf,OAAO,KAAK,EAAE,QAAQ,EAAE,mBAAmB,EAAc,MAAM,mBAAmB,CAAC;AAInF,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AASnD,MAAM,MAAM,mBAAmB,GAAG,QAAQ,GAAG,mBAAmB,CAAC;AAEjE;;GAEG;AACH,eAAO,MAAM,kBAAkB,SAAU,SAAS,CAAC,cAAc,EAAE,cAAc,CAAC,cAAc,CAAC,CAAC,
|
1
|
+
{"version":3,"file":"CalendarDouble.d.ts","sourceRoot":"","sources":["../../../../src/components/Calendar/CalendarDouble/CalendarDouble.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAKV,cAAc,EAIjB,MAAM,OAAO,CAAC;AAGf,OAAO,KAAK,EAAE,QAAQ,EAAE,mBAAmB,EAAc,MAAM,mBAAmB,CAAC;AAInF,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AASnD,MAAM,MAAM,mBAAmB,GAAG,QAAQ,GAAG,mBAAmB,CAAC;AAEjE;;GAEG;AACH,eAAO,MAAM,kBAAkB,SAAU,SAAS,CAAC,cAAc,EAAE,cAAc,CAAC,cAAc,CAAC,CAAC,0GAuW7F,CAAC;AAEN,eAAO,MAAM,oBAAoB;;;mBAzWQ,SAAS,CAAC,cAAc,EAAE,cAAc,CAAC,cAAc,CAAC,CAAC;;;;;;;;;;;CAuXjG,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"CalendarDays.d.ts","sourceRoot":"","sources":["../../../../../src/components/Calendar/ui/CalendarDays/CalendarDays.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAmBxE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE9D;;GAEG;AACH,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,
|
1
|
+
{"version":3,"file":"CalendarDays.d.ts","sourceRoot":"","sources":["../../../../../src/components/Calendar/ui/CalendarDays/CalendarDays.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAmBxE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE9D;;GAEG;AACH,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAiLpD,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"CalendarMonths.d.ts","sourceRoot":"","sources":["../../../../../src/components/Calendar/ui/CalendarMonths/CalendarMonths.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAOxE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAGlE;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,
|
1
|
+
{"version":3,"file":"CalendarMonths.d.ts","sourceRoot":"","sources":["../../../../../src/components/Calendar/ui/CalendarMonths/CalendarMonths.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAOxE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAGlE;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA2LxD,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"CalendarQuarters.d.ts","sourceRoot":"","sources":["../../../../../src/components/Calendar/ui/CalendarQuarters/CalendarQuarters.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAOxE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAGtE;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,
|
1
|
+
{"version":3,"file":"CalendarQuarters.d.ts","sourceRoot":"","sources":["../../../../../src/components/Calendar/ui/CalendarQuarters/CalendarQuarters.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAOxE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAGtE;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAuL5D,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"CalendarYears.d.ts","sourceRoot":"","sources":["../../../../../src/components/Calendar/ui/CalendarYears/CalendarYears.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAOxE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAGhE;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,
|
1
|
+
{"version":3,"file":"CalendarYears.d.ts","sourceRoot":"","sources":["../../../../../src/components/Calendar/ui/CalendarYears/CalendarYears.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAOxE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAGhE;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA4LtD,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Dots.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Carousel/CarouselNew/ui/Dots/Dots.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwC,MAAM,OAAO,CAAC;AAM7D,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAOzC,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,
|
1
|
+
{"version":3,"file":"Dots.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Carousel/CarouselNew/ui/Dots/Dots.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwC,MAAM,OAAO,CAAC;AAM7D,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAOzC,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CA8PpC,CAAC"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import type { RootProps } from '
|
2
|
+
import type { RootProps } from '../../../src/engines';
|
3
3
|
import type { DrawerProps } from './Drawer.types';
|
4
4
|
export declare const drawerRoot: (Root: RootProps<HTMLDivElement, DrawerProps>) => React.ForwardRefExoticComponent<import("../Popup").PopupProps & import("../Panel").PanelProps & {
|
5
5
|
placement?: import("./Drawer.types").DrawerPlacement;
|
@@ -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,
|
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;;;;;;;;;6BAiC1D,MACD,UAAE;sBAGF,MAAM,SAAS;oBAMZ,MAAO,SAAS;;wCAmF1B,CAAC;AAEN,eAAO,MAAM,YAAY;;;mBAhIQ,SAAS,CAAC,cAAc,EAAE,WAAW,CAAC;;;;;;;;;iCAiC1D,MACD,UAAE;0BAGF,MAAM,SAAS;wBAMZ,MAAO,SAAS;;;;;;;;;;;;;;;;;;;;CA0G9B,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useDrawer.d.ts","sourceRoot":"","sources":["../../../../src/components/Drawer/hooks/useDrawer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAA+B,MAAM,kBAAkB,CAAC;AAC3E,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAMjD,eAAO,MAAM,SAAS,iFAQnB,cAAc;;
|
1
|
+
{"version":3,"file":"useDrawer.d.ts","sourceRoot":"","sources":["../../../../src/components/Drawer/hooks/useDrawer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAA+B,MAAM,kBAAkB,CAAC;AAC3E,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAMjD,eAAO,MAAM,SAAS,iFAQnB,cAAc;;CAkEhB,CAAC"}
|
@@ -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,
|
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,sFA6GhE,CAAC;AAEN,eAAO,MAAM,WAAW;;;mBA/GQ,SAAS,CAAC,cAAc,EAAE,UAAU,CAAC;;;;;;;;;;CA4HpE,CAAC"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import { RootProps } from '
|
2
|
+
import { RootProps } from 'src/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
|
/**
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Popup.d.ts","sourceRoot":"","sources":["../../../src/components/Popup/Popup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAGlD,OAAO,EAAE,SAAS,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"Popup.d.ts","sourceRoot":"","sources":["../../../src/components/Popup/Popup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAGlD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAI9C,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,sFAwFhE,CAAC;AAEN,eAAO,MAAM,WAAW;;;mBA1FQ,SAAS,CAAC,cAAc,EAAE,UAAU,CAAC;;;;CAiGpE,CAAC"}
|