@dr.pogodin/react-utils 1.53.1 → 1.54.1
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/build/development/client/index.js +2 -0
- package/build/development/client/index.js.map +1 -1
- package/build/development/index.js +2 -2
- package/build/development/index.js.map +1 -1
- package/build/development/shared/components/Button/index.js +149 -71
- package/build/development/shared/components/Button/index.js.map +1 -1
- package/build/development/shared/components/Checkbox/index.js +77 -24
- package/build/development/shared/components/Checkbox/index.js.map +1 -1
- package/build/development/shared/components/GenericLink/index.js +133 -54
- package/build/development/shared/components/GenericLink/index.js.map +1 -1
- package/build/development/shared/components/Input/index.js +168 -45
- package/build/development/shared/components/Input/index.js.map +1 -1
- package/build/development/shared/components/Link.js +23 -13
- package/build/development/shared/components/Link.js.map +1 -1
- package/build/development/shared/components/Modal/index.js +203 -87
- package/build/development/shared/components/Modal/index.js.map +1 -1
- package/build/development/shared/components/NavLink.js +16 -7
- package/build/development/shared/components/NavLink.js.map +1 -1
- package/build/development/shared/components/PageLayout/index.js +77 -15
- package/build/development/shared/components/PageLayout/index.js.map +1 -1
- package/build/development/shared/components/TextArea/index.js +169 -68
- package/build/development/shared/components/TextArea/index.js.map +1 -1
- package/build/development/shared/components/Throbber/index.js +51 -13
- package/build/development/shared/components/Throbber/index.js.map +1 -1
- package/build/development/shared/components/WithTooltip/Tooltip.js +73 -34
- package/build/development/shared/components/WithTooltip/Tooltip.js.map +1 -1
- package/build/development/shared/components/WithTooltip/index.js +19 -19
- package/build/development/shared/components/WithTooltip/index.js.map +1 -1
- package/build/development/shared/components/YouTubeVideo/index.js +66 -23
- package/build/development/shared/components/YouTubeVideo/index.js.map +1 -1
- package/build/development/shared/components/selectors/CustomDropdown/Options/index.js +104 -56
- package/build/development/shared/components/selectors/CustomDropdown/Options/index.js.map +1 -1
- package/build/development/shared/components/selectors/CustomDropdown/index.js +173 -75
- package/build/development/shared/components/selectors/CustomDropdown/index.js.map +1 -1
- package/build/development/shared/components/selectors/Switch/index.js +86 -36
- package/build/development/shared/components/selectors/Switch/index.js.map +1 -1
- package/build/development/shared/utils/globalState.js +2 -2
- package/build/development/shared/utils/globalState.js.map +1 -1
- package/build/development/shared/utils/index.js +2 -2
- package/build/development/shared/utils/index.js.map +1 -1
- package/build/development/shared/utils/jest/index.js +19 -7
- package/build/development/shared/utils/jest/index.js.map +1 -1
- package/build/development/shared/utils/splitComponent.js +125 -55
- package/build/development/shared/utils/splitComponent.js.map +1 -1
- package/build/development/shared/utils/time.js +55 -20
- package/build/development/shared/utils/time.js.map +1 -1
- package/build/production/client/index.js +2 -2
- package/build/production/client/index.js.map +1 -1
- package/build/production/index.js +1 -1
- package/build/production/index.js.map +1 -1
- package/build/production/shared/components/Button/index.js +2 -13
- package/build/production/shared/components/Button/index.js.map +1 -1
- package/build/production/shared/components/Checkbox/index.js +1 -1
- package/build/production/shared/components/Checkbox/index.js.map +1 -1
- package/build/production/shared/components/GenericLink/index.js +2 -15
- package/build/production/shared/components/GenericLink/index.js.map +1 -1
- package/build/production/shared/components/Input/index.js +2 -11
- package/build/production/shared/components/Input/index.js.map +1 -1
- package/build/production/shared/components/Link.js +2 -4
- package/build/production/shared/components/Link.js.map +1 -1
- package/build/production/shared/components/Modal/index.js +2 -10
- package/build/production/shared/components/Modal/index.js.map +1 -1
- package/build/production/shared/components/NavLink.js +1 -4
- package/build/production/shared/components/NavLink.js.map +1 -1
- package/build/production/shared/components/PageLayout/index.js +2 -2
- package/build/production/shared/components/PageLayout/index.js.map +1 -1
- package/build/production/shared/components/TextArea/index.js +1 -21
- package/build/production/shared/components/TextArea/index.js.map +1 -1
- package/build/production/shared/components/Throbber/index.js +2 -2
- package/build/production/shared/components/Throbber/index.js.map +1 -1
- package/build/production/shared/components/WithTooltip/Tooltip.js +2 -7
- package/build/production/shared/components/WithTooltip/Tooltip.js.map +1 -1
- package/build/production/shared/components/WithTooltip/index.js +3 -3
- package/build/production/shared/components/WithTooltip/index.js.map +1 -1
- package/build/production/shared/components/YouTubeVideo/index.js +2 -5
- package/build/production/shared/components/YouTubeVideo/index.js.map +1 -1
- package/build/production/shared/components/selectors/CustomDropdown/Options/index.js +1 -6
- package/build/production/shared/components/selectors/CustomDropdown/Options/index.js.map +1 -1
- package/build/production/shared/components/selectors/CustomDropdown/index.js +1 -7
- package/build/production/shared/components/selectors/CustomDropdown/index.js.map +1 -1
- package/build/production/shared/components/selectors/Switch/index.js +1 -1
- package/build/production/shared/components/selectors/Switch/index.js.map +1 -1
- package/build/production/shared/utils/globalState.js +1 -1
- package/build/production/shared/utils/globalState.js.map +1 -1
- package/build/production/shared/utils/index.js +1 -1
- package/build/production/shared/utils/index.js.map +1 -1
- package/build/production/shared/utils/jest/index.js +10 -3
- package/build/production/shared/utils/jest/index.js.map +1 -1
- package/build/production/shared/utils/splitComponent.js +3 -10
- package/build/production/shared/utils/splitComponent.js.map +1 -1
- package/build/production/shared/utils/time.js +2 -2
- package/build/production/shared/utils/time.js.map +1 -1
- package/build/types-code/index.d.ts +2 -2
- package/build/types-code/shared/utils/globalState.d.ts +2 -2
- package/build/types-code/shared/utils/index.d.ts +2 -2
- package/build/types-code/shared/utils/splitComponent.d.ts +1 -0
- package/build/web/client/index.js +2 -2
- package/build/web/client/index.js.map +1 -1
- package/build/web/index.js +1 -1
- package/build/web/index.js.map +1 -1
- package/build/web/shared/components/Button/index.js +2 -13
- package/build/web/shared/components/Button/index.js.map +1 -1
- package/build/web/shared/components/Checkbox/index.js +1 -1
- package/build/web/shared/components/Checkbox/index.js.map +1 -1
- package/build/web/shared/components/GenericLink/index.js +2 -15
- package/build/web/shared/components/GenericLink/index.js.map +1 -1
- package/build/web/shared/components/Input/index.js +2 -11
- package/build/web/shared/components/Input/index.js.map +1 -1
- package/build/web/shared/components/Link.js +2 -4
- package/build/web/shared/components/Link.js.map +1 -1
- package/build/web/shared/components/Modal/index.js +2 -10
- package/build/web/shared/components/Modal/index.js.map +1 -1
- package/build/web/shared/components/NavLink.js +1 -4
- package/build/web/shared/components/NavLink.js.map +1 -1
- package/build/web/shared/components/PageLayout/index.js +2 -2
- package/build/web/shared/components/PageLayout/index.js.map +1 -1
- package/build/web/shared/components/TextArea/index.js +1 -21
- package/build/web/shared/components/TextArea/index.js.map +1 -1
- package/build/web/shared/components/Throbber/index.js +2 -2
- package/build/web/shared/components/Throbber/index.js.map +1 -1
- package/build/web/shared/components/WithTooltip/Tooltip.js +2 -7
- package/build/web/shared/components/WithTooltip/Tooltip.js.map +1 -1
- package/build/web/shared/components/WithTooltip/index.js +3 -3
- package/build/web/shared/components/WithTooltip/index.js.map +1 -1
- package/build/web/shared/components/YouTubeVideo/index.js +2 -5
- package/build/web/shared/components/YouTubeVideo/index.js.map +1 -1
- package/build/web/shared/components/selectors/CustomDropdown/Options/index.js +1 -6
- package/build/web/shared/components/selectors/CustomDropdown/Options/index.js.map +1 -1
- package/build/web/shared/components/selectors/CustomDropdown/index.js +1 -7
- package/build/web/shared/components/selectors/CustomDropdown/index.js.map +1 -1
- package/build/web/shared/components/selectors/Switch/index.js +1 -1
- package/build/web/shared/components/selectors/Switch/index.js.map +1 -1
- package/build/web/shared/utils/globalState.js +1 -1
- package/build/web/shared/utils/globalState.js.map +1 -1
- package/build/web/shared/utils/index.js +1 -1
- package/build/web/shared/utils/index.js.map +1 -1
- package/build/web/shared/utils/jest/index.js +10 -3
- package/build/web/shared/utils/jest/index.js.map +1 -1
- package/build/web/shared/utils/splitComponent.js +3 -10
- package/build/web/shared/utils/splitComponent.js.map +1 -1
- package/build/web/shared/utils/time.js +2 -2
- package/build/web/shared/utils/time.js.map +1 -1
- package/config/babel/webpack.d.ts +1 -0
- package/config/babel/webpack.js +10 -12
- package/package.json +6 -4
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { c as _c } from "react/compiler-runtime";
|
|
1
2
|
import { useEffect, useMemo, useRef } from "react";
|
|
2
3
|
import { createPortal } from "react-dom";
|
|
3
4
|
import { useTheme } from "@dr.pogodin/react-themes";
|
|
@@ -22,116 +23,231 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; /**
|
|
|
22
23
|
* modal.
|
|
23
24
|
* @param {ModalTheme} [props.theme] _Ad hoc_ theme.
|
|
24
25
|
*/
|
|
25
|
-
const BaseModal =
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
26
|
+
const BaseModal = t0 => {
|
|
27
|
+
const $ = _c(27);
|
|
28
|
+
const {
|
|
29
|
+
cancelOnScrolling,
|
|
30
|
+
children,
|
|
31
|
+
containerStyle,
|
|
32
|
+
dontDisableScrolling,
|
|
33
|
+
onCancel,
|
|
34
|
+
overlayStyle,
|
|
35
|
+
style,
|
|
36
|
+
testId,
|
|
37
|
+
testIdForOverlay,
|
|
38
|
+
theme
|
|
39
|
+
} = t0;
|
|
37
40
|
const containerRef = useRef(null);
|
|
38
|
-
const overlayRef = useRef(null);
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}
|
|
44
|
-
return () => {
|
|
41
|
+
const overlayRef = useRef(null);
|
|
42
|
+
let t1;
|
|
43
|
+
let t2;
|
|
44
|
+
if ($[0] !== cancelOnScrolling || $[1] !== onCancel) {
|
|
45
|
+
t1 = () => {
|
|
45
46
|
if (cancelOnScrolling && onCancel) {
|
|
46
|
-
window.
|
|
47
|
-
window.
|
|
47
|
+
window.addEventListener("scroll", onCancel);
|
|
48
|
+
window.addEventListener("wheel", onCancel);
|
|
48
49
|
}
|
|
50
|
+
return () => {
|
|
51
|
+
if (cancelOnScrolling && onCancel) {
|
|
52
|
+
window.removeEventListener("scroll", onCancel);
|
|
53
|
+
window.removeEventListener("wheel", onCancel);
|
|
54
|
+
}
|
|
55
|
+
};
|
|
49
56
|
};
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
57
|
+
t2 = [cancelOnScrolling, onCancel];
|
|
58
|
+
$[0] = cancelOnScrolling;
|
|
59
|
+
$[1] = onCancel;
|
|
60
|
+
$[2] = t1;
|
|
61
|
+
$[3] = t2;
|
|
62
|
+
} else {
|
|
63
|
+
t1 = $[2];
|
|
64
|
+
t2 = $[3];
|
|
65
|
+
}
|
|
66
|
+
useEffect(t1, t2);
|
|
67
|
+
let t3;
|
|
68
|
+
let t4;
|
|
69
|
+
if ($[4] !== dontDisableScrolling) {
|
|
70
|
+
t3 = () => {
|
|
56
71
|
if (!dontDisableScrolling) {
|
|
57
|
-
document.body.classList.
|
|
72
|
+
document.body.classList.add(S.scrollingDisabledByModal);
|
|
73
|
+
}
|
|
74
|
+
return () => {
|
|
75
|
+
if (!dontDisableScrolling) {
|
|
76
|
+
document.body.classList.remove(S.scrollingDisabledByModal);
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
t4 = [dontDisableScrolling];
|
|
81
|
+
$[4] = dontDisableScrolling;
|
|
82
|
+
$[5] = t3;
|
|
83
|
+
$[6] = t4;
|
|
84
|
+
} else {
|
|
85
|
+
t3 = $[5];
|
|
86
|
+
t4 = $[6];
|
|
87
|
+
}
|
|
88
|
+
useEffect(t3, t4);
|
|
89
|
+
let t5;
|
|
90
|
+
if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
|
|
91
|
+
t5 = /*#__PURE__*/_jsx("div", {
|
|
92
|
+
onFocus: () => {
|
|
93
|
+
const elems = containerRef.current.querySelectorAll("*");
|
|
94
|
+
for (let i = elems.length - 1; i >= 0; --i) {
|
|
95
|
+
elems[i].focus();
|
|
96
|
+
if (document.activeElement === elems[i]) {
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
overlayRef.current?.focus();
|
|
101
|
+
},
|
|
102
|
+
tabIndex: 0
|
|
103
|
+
});
|
|
104
|
+
$[7] = t5;
|
|
105
|
+
} else {
|
|
106
|
+
t5 = $[7];
|
|
107
|
+
}
|
|
108
|
+
const focusLast = t5;
|
|
109
|
+
const t6 = process.env.NODE_ENV === "production" ? undefined : testIdForOverlay;
|
|
110
|
+
let t7;
|
|
111
|
+
let t8;
|
|
112
|
+
if ($[8] !== onCancel) {
|
|
113
|
+
t7 = e => {
|
|
114
|
+
if (onCancel) {
|
|
115
|
+
onCancel();
|
|
116
|
+
e.stopPropagation();
|
|
117
|
+
}
|
|
118
|
+
};
|
|
119
|
+
t8 = e_0 => {
|
|
120
|
+
if (e_0.key === "Escape" && onCancel) {
|
|
121
|
+
onCancel();
|
|
122
|
+
e_0.stopPropagation();
|
|
58
123
|
}
|
|
59
124
|
};
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
125
|
+
$[8] = onCancel;
|
|
126
|
+
$[9] = t7;
|
|
127
|
+
$[10] = t8;
|
|
128
|
+
} else {
|
|
129
|
+
t7 = $[9];
|
|
130
|
+
t8 = $[10];
|
|
131
|
+
}
|
|
132
|
+
let t9;
|
|
133
|
+
if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
|
|
134
|
+
t9 = node => {
|
|
135
|
+
if (node && node !== overlayRef.current) {
|
|
136
|
+
overlayRef.current = node;
|
|
137
|
+
node.focus();
|
|
67
138
|
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
139
|
+
};
|
|
140
|
+
$[11] = t9;
|
|
141
|
+
} else {
|
|
142
|
+
t9 = $[11];
|
|
143
|
+
}
|
|
144
|
+
let t10;
|
|
145
|
+
if ($[12] !== overlayStyle || $[13] !== t6 || $[14] !== t7 || $[15] !== t8 || $[16] !== theme.overlay) {
|
|
146
|
+
t10 = /*#__PURE__*/_jsx("div", {
|
|
76
147
|
"aria-label": "Cancel",
|
|
77
148
|
className: theme.overlay,
|
|
78
|
-
"data-testid":
|
|
79
|
-
onClick:
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
e.stopPropagation();
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
|
-
onKeyDown: e => {
|
|
86
|
-
if (e.key === "Escape" && onCancel) {
|
|
87
|
-
onCancel();
|
|
88
|
-
e.stopPropagation();
|
|
89
|
-
}
|
|
90
|
-
},
|
|
91
|
-
ref: node => {
|
|
92
|
-
if (node && node !== overlayRef.current) {
|
|
93
|
-
overlayRef.current = node;
|
|
94
|
-
node.focus();
|
|
95
|
-
}
|
|
96
|
-
},
|
|
149
|
+
"data-testid": t6,
|
|
150
|
+
onClick: t7,
|
|
151
|
+
onKeyDown: t8,
|
|
152
|
+
ref: t9,
|
|
97
153
|
role: "button",
|
|
98
154
|
style: overlayStyle,
|
|
99
155
|
tabIndex: 0
|
|
100
|
-
})
|
|
101
|
-
|
|
156
|
+
});
|
|
157
|
+
$[12] = overlayStyle;
|
|
158
|
+
$[13] = t6;
|
|
159
|
+
$[14] = t7;
|
|
160
|
+
$[15] = t8;
|
|
161
|
+
$[16] = theme.overlay;
|
|
162
|
+
$[17] = t10;
|
|
163
|
+
} else {
|
|
164
|
+
t10 = $[17];
|
|
165
|
+
}
|
|
166
|
+
const t11 = process.env.NODE_ENV === "production" ? undefined : testId;
|
|
167
|
+
const t12 = style ?? containerStyle;
|
|
168
|
+
let t13;
|
|
169
|
+
if ($[18] !== children || $[19] !== t11 || $[20] !== t12 || $[21] !== theme.container) {
|
|
170
|
+
t13 = /*#__PURE__*/_jsx("div", {
|
|
102
171
|
"aria-modal": "true",
|
|
103
172
|
className: theme.container,
|
|
104
|
-
"data-testid":
|
|
105
|
-
onClick:
|
|
106
|
-
|
|
107
|
-
},
|
|
108
|
-
onWheel: event => {
|
|
109
|
-
event.stopPropagation();
|
|
110
|
-
},
|
|
173
|
+
"data-testid": t11,
|
|
174
|
+
onClick: _temp,
|
|
175
|
+
onWheel: _temp2,
|
|
111
176
|
ref: containerRef,
|
|
112
177
|
role: "dialog",
|
|
113
|
-
style:
|
|
178
|
+
style: t12,
|
|
114
179
|
children: children
|
|
115
|
-
})
|
|
180
|
+
});
|
|
181
|
+
$[18] = children;
|
|
182
|
+
$[19] = t11;
|
|
183
|
+
$[20] = t12;
|
|
184
|
+
$[21] = theme.container;
|
|
185
|
+
$[22] = t13;
|
|
186
|
+
} else {
|
|
187
|
+
t13 = $[22];
|
|
188
|
+
}
|
|
189
|
+
let t14;
|
|
190
|
+
if ($[23] === Symbol.for("react.memo_cache_sentinel")) {
|
|
191
|
+
t14 = /*#__PURE__*/_jsx("div", {
|
|
116
192
|
onFocus: () => {
|
|
117
193
|
overlayRef.current?.focus();
|
|
118
|
-
}
|
|
119
|
-
// eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex
|
|
120
|
-
,
|
|
194
|
+
},
|
|
121
195
|
tabIndex: 0
|
|
122
|
-
})
|
|
123
|
-
|
|
196
|
+
});
|
|
197
|
+
$[23] = t14;
|
|
198
|
+
} else {
|
|
199
|
+
t14 = $[23];
|
|
200
|
+
}
|
|
201
|
+
let t15;
|
|
202
|
+
if ($[24] !== t10 || $[25] !== t13) {
|
|
203
|
+
t15 = /*#__PURE__*/createPortal(/*#__PURE__*/_jsxs("div", {
|
|
204
|
+
children: [focusLast, t10, t13, t14, focusLast]
|
|
205
|
+
}), document.body);
|
|
206
|
+
$[24] = t10;
|
|
207
|
+
$[25] = t13;
|
|
208
|
+
$[26] = t15;
|
|
209
|
+
} else {
|
|
210
|
+
t15 = $[26];
|
|
211
|
+
}
|
|
212
|
+
return t15;
|
|
124
213
|
}; /* Non-themed version of the Modal. */
|
|
125
214
|
export { BaseModal };
|
|
126
|
-
const Modal =
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
215
|
+
const Modal = t0 => {
|
|
216
|
+
const $ = _c(6);
|
|
217
|
+
let rest;
|
|
218
|
+
let theme;
|
|
219
|
+
if ($[0] !== t0) {
|
|
220
|
+
({
|
|
221
|
+
theme,
|
|
222
|
+
...rest
|
|
223
|
+
} = t0);
|
|
224
|
+
$[0] = t0;
|
|
225
|
+
$[1] = rest;
|
|
226
|
+
$[2] = theme;
|
|
227
|
+
} else {
|
|
228
|
+
rest = $[1];
|
|
229
|
+
theme = $[2];
|
|
230
|
+
}
|
|
231
|
+
const composed = useTheme("Modal", defaultTheme, theme);
|
|
232
|
+
let t1;
|
|
233
|
+
if ($[3] !== composed || $[4] !== rest) {
|
|
234
|
+
t1 = /*#__PURE__*/_jsx(BaseModal, {
|
|
235
|
+
...rest,
|
|
236
|
+
theme: composed
|
|
237
|
+
});
|
|
238
|
+
$[3] = composed;
|
|
239
|
+
$[4] = rest;
|
|
240
|
+
$[5] = t1;
|
|
241
|
+
} else {
|
|
242
|
+
t1 = $[5];
|
|
243
|
+
}
|
|
244
|
+
return t1;
|
|
135
245
|
};
|
|
136
246
|
export default Modal;
|
|
247
|
+
function _temp(e_1) {
|
|
248
|
+
e_1.stopPropagation();
|
|
249
|
+
}
|
|
250
|
+
function _temp2(event) {
|
|
251
|
+
event.stopPropagation();
|
|
252
|
+
}
|
|
137
253
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["useEffect","useMemo","useRef","createPortal","useTheme","defaultTheme","S","jsx","_jsx","jsxs","_jsxs","BaseModal","cancelOnScrolling","children","containerStyle","dontDisableScrolling","onCancel","overlayStyle","style","testId","testIdForOverlay","theme","containerRef","overlayRef","window","addEventListener","removeEventListener","document","body","classList","add","scrollingDisabledByModal","remove","focusLast","onFocus","elems","current","querySelectorAll","i","length","focus","activeElement","tabIndex","className","overlay","process","env","NODE_ENV","undefined","onClick","e","stopPropagation","onKeyDown","key","ref","node","role","container","onWheel","event","Modal","rest","composed"],"sources":["../../../../../src/shared/components/Modal/index.tsx"],"sourcesContent":["import {\n type CSSProperties,\n type FunctionComponent,\n type ReactNode,\n useEffect,\n useMemo,\n useRef,\n} from 'react';\n\nimport { createPortal } from 'react-dom';\n\nimport { type Theme, useTheme } from '@dr.pogodin/react-themes';\n\nimport defaultTheme from './base-theme.scss';\nimport S from './styles.scss';\n\ntype ThemeT = Theme<'container' | 'overlay'>;\n\ntype PropsT = {\n cancelOnScrolling?: boolean;\n children?: ReactNode;\n dontDisableScrolling?: boolean;\n onCancel?: () => void;\n overlayStyle?: CSSProperties;\n style?: CSSProperties;\n testId?: string;\n testIdForOverlay?: string;\n theme: ThemeT;\n\n /** @deprecated */\n containerStyle?: CSSProperties;\n};\n\n/**\n * The `<Modal>` component implements a simple themeable modal window, wrapped\n * into the default theme. `<BaseModal>` exposes the base non-themed component.\n * **Children:** Component children are rendered as the modal content.\n * @param {object} props Component properties. Beside props documented below,\n * [Other theming properties](https://www.npmjs.com/package/@dr.pogodin/react-themes#themed-component-properties) are supported as well.\n * @param {function} [props.onCancel] The callback to trigger when user\n * clicks outside the modal, or presses Escape. It is expected to hide the\n * modal.\n * @param {ModalTheme} [props.theme] _Ad hoc_ theme.\n */\nconst BaseModal: FunctionComponent<PropsT> = ({\n cancelOnScrolling,\n children,\n containerStyle,\n dontDisableScrolling,\n onCancel,\n overlayStyle,\n style,\n testId,\n testIdForOverlay,\n theme,\n}) => {\n const containerRef = useRef<HTMLDivElement | null>(null);\n const overlayRef = useRef<HTMLDivElement | null>(null);\n\n // Sets up modal cancellation of scrolling, if opted-in.\n useEffect(() => {\n if (cancelOnScrolling && onCancel) {\n window.addEventListener('scroll', onCancel);\n window.addEventListener('wheel', onCancel);\n }\n return () => {\n if (cancelOnScrolling && onCancel) {\n window.removeEventListener('scroll', onCancel);\n window.removeEventListener('wheel', onCancel);\n }\n };\n }, [cancelOnScrolling, onCancel]);\n\n // Disables window scrolling, if it is not opted-out.\n useEffect(() => {\n if (!dontDisableScrolling) {\n document.body.classList.add(S.scrollingDisabledByModal);\n }\n return () => {\n if (!dontDisableScrolling) {\n document.body.classList.remove(S.scrollingDisabledByModal);\n }\n };\n }, [dontDisableScrolling]);\n\n const focusLast = useMemo(() => (\n <div\n onFocus={() => {\n const elems = containerRef.current!.querySelectorAll('*');\n for (let i = elems.length - 1; i >= 0; --i) {\n (elems[i] as HTMLElement).focus();\n if (document.activeElement === elems[i]) return;\n }\n overlayRef.current?.focus();\n }}\n // TODO: Have a look at this later.\n // eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex\n tabIndex={0}\n />\n ), []);\n\n return createPortal(\n (\n <div>\n {focusLast}\n <div\n aria-label=\"Cancel\"\n className={theme.overlay}\n data-testid={\n process.env.NODE_ENV === 'production'\n ? undefined : testIdForOverlay\n }\n onClick={(e) => {\n if (onCancel) {\n onCancel();\n e.stopPropagation();\n }\n }}\n onKeyDown={(e) => {\n if (e.key === 'Escape' && onCancel) {\n onCancel();\n e.stopPropagation();\n }\n }}\n ref={(node) => {\n if (node && node !== overlayRef.current) {\n overlayRef.current = node;\n node.focus();\n }\n }}\n role=\"button\"\n style={overlayStyle}\n tabIndex={0}\n />\n {\n // NOTE: These rules are disabled because our intention is to keep\n // the element non-interactive (thus not on the keyboard focus chain),\n // and it has `onClick` handler merely to stop propagation of click\n // events to its parent container. This is needed because, for example\n // when the modal is wrapped into an interactive element we don't want\n // any clicks inside the modal to bubble-up to that parent element\n // (because visually and logically the modal dialog does not belong\n // to its parent container, where it technically belongs from\n // the HTML mark-up perpective).\n }\n <div // eslint-disable-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-noninteractive-element-interactions\n aria-modal=\"true\"\n className={theme.container}\n data-testid={process.env.NODE_ENV === 'production' ? undefined : testId}\n onClick={(e) => {\n e.stopPropagation();\n }}\n onWheel={(event) => {\n event.stopPropagation();\n }}\n ref={containerRef}\n role=\"dialog\"\n style={style ?? containerStyle}\n >\n {children}\n </div>\n <div\n onFocus={() => {\n overlayRef.current?.focus();\n }}\n // TODO: Have a look at this later.\n // eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex\n tabIndex={0}\n />\n {focusLast}\n </div>\n ),\n document.body,\n );\n};\n\n/* Non-themed version of the Modal. */\nexport { BaseModal };\n\nconst Modal: FunctionComponent<\n Omit<PropsT, 'theme'> & { theme?: ThemeT }\n> = ({ theme, ...rest }) => {\n const composed = useTheme('Modal', defaultTheme, theme);\n\n // eslint-disable-next-line react/jsx-props-no-spreading\n return <BaseModal {...rest} theme={composed} />;\n};\n\nexport default Modal;\n"],"mappings":"AAAA,SAIEA,SAAS,EACTC,OAAO,EACPC,MAAM,QACD,OAAO;AAEd,SAASC,YAAY,QAAQ,WAAW;AAExC,SAAqBC,QAAQ,QAAQ,0BAA0B;AAE/D,MAAAC,YAAA;EAAA;EAAA;EAAA;EAAA;EAAA;AAAA;AAAA,MAAAC,CAAA;EAAA;AAAA;AAC8B,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA,4BAmB9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMC,SAAoC,GAAGA,CAAC;EAC5CC,iBAAiB;EACjBC,QAAQ;EACRC,cAAc;EACdC,oBAAoB;EACpBC,QAAQ;EACRC,YAAY;EACZC,KAAK;EACLC,MAAM;EACNC,gBAAgB;EAChBC;AACF,CAAC,KAAK;EACJ,MAAMC,YAAY,GAAGpB,MAAM,CAAwB,IAAI,CAAC;EACxD,MAAMqB,UAAU,GAAGrB,MAAM,CAAwB,IAAI,CAAC,CAEtD;EACAF,SAAS,CAAC,MAAM;IACd,IAAIY,iBAAiB,IAAII,QAAQ,EAAE;MACjCQ,MAAM,CAACC,gBAAgB,CAAC,QAAQ,EAAET,QAAQ,CAAC;MAC3CQ,MAAM,CAACC,gBAAgB,CAAC,OAAO,EAAET,QAAQ,CAAC;IAC5C;IACA,OAAO,MAAM;MACX,IAAIJ,iBAAiB,IAAII,QAAQ,EAAE;QACjCQ,MAAM,CAACE,mBAAmB,CAAC,QAAQ,EAAEV,QAAQ,CAAC;Q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,SAAS;EAAA,CACP,CAAC,EAERN,QAAQ,CAACC,IACX,CAAC;AACH,CAAC,CAED;AACA,SAASjB,SAAS;AAElB,MAAMiD,KAEL,GAAGA,CAAC;EAAEvC,KAAK;EAAE,GAAGwC;AAAK,CAAC,KAAK;EAC1B,MAAMC,QAAQ,GAAG1D,QAAQ,CAAC,OAAO,EAAEC,YAAY,EAAEgB,KAAK,CAAC,CAEvD;EACA,oBAAOb,IAAA,CAACG,SAAS;IAAA,GAAKkD,IAAI;IAAExC,KAAK,EAAEyC;EAAS,CAAE,CAAC;AACjD,CAAC;AAED,eAAeF,KAAK","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"index.js","names":["useEffect","useMemo","useRef","createPortal","useTheme","defaultTheme","S","jsx","_jsx","jsxs","_jsxs","BaseModal","t0","$","_c","cancelOnScrolling","children","containerStyle","dontDisableScrolling","onCancel","overlayStyle","style","testId","testIdForOverlay","theme","containerRef","overlayRef","t1","t2","window","addEventListener","removeEventListener","t3","t4","document","body","classList","add","scrollingDisabledByModal","remove","t5","Symbol","for","onFocus","elems","current","querySelectorAll","i","length","focus","activeElement","tabIndex","focusLast","t6","process","env","NODE_ENV","undefined","t7","t8","e","stopPropagation","e_0","key","t9","node","t10","overlay","className","onClick","onKeyDown","ref","role","t11","t12","t13","container","_temp","onWheel","_temp2","t14","t15","Modal","rest","composed","e_1","event"],"sources":["../../../../../src/shared/components/Modal/index.tsx"],"sourcesContent":["import {\n type CSSProperties,\n type FunctionComponent,\n type ReactNode,\n useEffect,\n useMemo,\n useRef,\n} from 'react';\n\nimport { createPortal } from 'react-dom';\n\nimport { type Theme, useTheme } from '@dr.pogodin/react-themes';\n\nimport defaultTheme from './base-theme.scss';\nimport S from './styles.scss';\n\ntype ThemeT = Theme<'container' | 'overlay'>;\n\ntype PropsT = {\n cancelOnScrolling?: boolean;\n children?: ReactNode;\n dontDisableScrolling?: boolean;\n onCancel?: () => void;\n overlayStyle?: CSSProperties;\n style?: CSSProperties;\n testId?: string;\n testIdForOverlay?: string;\n theme: ThemeT;\n\n /** @deprecated */\n containerStyle?: CSSProperties;\n};\n\n/**\n * The `<Modal>` component implements a simple themeable modal window, wrapped\n * into the default theme. `<BaseModal>` exposes the base non-themed component.\n * **Children:** Component children are rendered as the modal content.\n * @param {object} props Component properties. Beside props documented below,\n * [Other theming properties](https://www.npmjs.com/package/@dr.pogodin/react-themes#themed-component-properties) are supported as well.\n * @param {function} [props.onCancel] The callback to trigger when user\n * clicks outside the modal, or presses Escape. It is expected to hide the\n * modal.\n * @param {ModalTheme} [props.theme] _Ad hoc_ theme.\n */\nconst BaseModal: FunctionComponent<PropsT> = ({\n cancelOnScrolling,\n children,\n containerStyle,\n dontDisableScrolling,\n onCancel,\n overlayStyle,\n style,\n testId,\n testIdForOverlay,\n theme,\n}) => {\n const containerRef = useRef<HTMLDivElement | null>(null);\n const overlayRef = useRef<HTMLDivElement | null>(null);\n\n // Sets up modal cancellation of scrolling, if opted-in.\n useEffect(() => {\n if (cancelOnScrolling && onCancel) {\n window.addEventListener('scroll', onCancel);\n window.addEventListener('wheel', onCancel);\n }\n return () => {\n if (cancelOnScrolling && onCancel) {\n window.removeEventListener('scroll', onCancel);\n window.removeEventListener('wheel', onCancel);\n }\n };\n }, [cancelOnScrolling, onCancel]);\n\n // Disables window scrolling, if it is not opted-out.\n useEffect(() => {\n if (!dontDisableScrolling) {\n document.body.classList.add(S.scrollingDisabledByModal);\n }\n return () => {\n if (!dontDisableScrolling) {\n document.body.classList.remove(S.scrollingDisabledByModal);\n }\n };\n }, [dontDisableScrolling]);\n\n const focusLast = useMemo(() => (\n <div\n onFocus={() => {\n const elems = containerRef.current!.querySelectorAll('*');\n for (let i = elems.length - 1; i >= 0; --i) {\n (elems[i] as HTMLElement).focus();\n if (document.activeElement === elems[i]) return;\n }\n overlayRef.current?.focus();\n }}\n // TODO: Have a look at this later.\n // eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex\n tabIndex={0}\n />\n ), []);\n\n return createPortal(\n (\n <div>\n {focusLast}\n <div\n aria-label=\"Cancel\"\n className={theme.overlay}\n data-testid={\n process.env.NODE_ENV === 'production'\n ? undefined : testIdForOverlay\n }\n onClick={(e) => {\n if (onCancel) {\n onCancel();\n e.stopPropagation();\n }\n }}\n onKeyDown={(e) => {\n if (e.key === 'Escape' && onCancel) {\n onCancel();\n e.stopPropagation();\n }\n }}\n ref={(node) => {\n if (node && node !== overlayRef.current) {\n overlayRef.current = node;\n node.focus();\n }\n }}\n role=\"button\"\n style={overlayStyle}\n tabIndex={0}\n />\n {\n // NOTE: These rules are disabled because our intention is to keep\n // the element non-interactive (thus not on the keyboard focus chain),\n // and it has `onClick` handler merely to stop propagation of click\n // events to its parent container. This is needed because, for example\n // when the modal is wrapped into an interactive element we don't want\n // any clicks inside the modal to bubble-up to that parent element\n // (because visually and logically the modal dialog does not belong\n // to its parent container, where it technically belongs from\n // the HTML mark-up perpective).\n }\n <div // eslint-disable-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-noninteractive-element-interactions\n aria-modal=\"true\"\n className={theme.container}\n data-testid={process.env.NODE_ENV === 'production' ? undefined : testId}\n onClick={(e) => {\n e.stopPropagation();\n }}\n onWheel={(event) => {\n event.stopPropagation();\n }}\n ref={containerRef}\n role=\"dialog\"\n style={style ?? containerStyle}\n >\n {children}\n </div>\n <div\n onFocus={() => {\n overlayRef.current?.focus();\n }}\n // TODO: Have a look at this later.\n // eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex\n tabIndex={0}\n />\n {focusLast}\n </div>\n ),\n document.body,\n );\n};\n\n/* Non-themed version of the Modal. */\nexport { BaseModal };\n\nconst Modal: FunctionComponent<\n Omit<PropsT, 'theme'> & { theme?: ThemeT }\n> = ({ theme, ...rest }) => {\n const composed = useTheme('Modal', defaultTheme, theme);\n\n // eslint-disable-next-line react/jsx-props-no-spreading\n return <BaseModal {...rest} theme={composed} />;\n};\n\nexport default Modal;\n"],"mappings":";AAAA,SAIEA,SAAS,EACTC,OAA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AAA;EACrB,MAAAuE,QAAA,GAAiBhF,QAAQ,CAAC,OAAO,EAAEC,YAAY,EAAEmB,KAAK,CAAC;EAAC,IAAAG,EAAA;EAAA,IAAAd,CAAA,QAAAuE,QAAA,IAAAvE,CAAA,QAAAsE,IAAA;IAGjDxD,EAAA,gBAAAnB,IAAA,CAACG,SAAS;MAAA,GAAKwE,IAAI;MAAS3D,KAAQ,EAAR4D;IAAQ,CAAG,CAAC;IAAAvE,CAAA,MAAAuE,QAAA;IAAAvE,CAAA,MAAAsE,IAAA;IAAAtE,CAAA,MAAAc,EAAA;EAAA;IAAAA,EAAA,GAAAd,CAAA;EAAA;EAAA,OAAxCc,EAAwC;AAAA,CAChD;AAED,eAAeuD,KAAK;AAhJyB,SAAAL,MAAAQ,GAAA;EA0GjCA,GAAC,CAAAxB,eAAgB,CAAC,CAAC;AAAA;AA1Gc,SAAAkB,OAAAO,KAAA;EA6GjCA,KAAK,CAAAzB,eAAgB,CAAC,CAAC;AAAA","ignoreList":[]}
|
|
@@ -1,12 +1,21 @@
|
|
|
1
|
+
import { c as _c } from "react/compiler-runtime";
|
|
1
2
|
import { NavLink as RrNavLink } from "react-router";
|
|
2
3
|
import GenericLink from "./GenericLink/index.js";
|
|
3
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
|
-
const NavLink = props =>
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
const NavLink = props => {
|
|
6
|
+
const $ = _c(2);
|
|
7
|
+
let t0;
|
|
8
|
+
if ($[0] !== props) {
|
|
9
|
+
t0 = /*#__PURE__*/_jsx(GenericLink, {
|
|
10
|
+
...props,
|
|
11
|
+
routerLinkType: RrNavLink
|
|
12
|
+
});
|
|
13
|
+
$[0] = props;
|
|
14
|
+
$[1] = t0;
|
|
15
|
+
} else {
|
|
16
|
+
t0 = $[1];
|
|
17
|
+
}
|
|
18
|
+
return t0;
|
|
19
|
+
};
|
|
11
20
|
export default NavLink;
|
|
12
21
|
//# sourceMappingURL=NavLink.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavLink.js","names":["NavLink","RrNavLink","GenericLink","jsx","_jsx","props","routerLinkType"],"sources":["../../../../src/shared/components/NavLink.tsx"],"sourcesContent":["import { type NavLinkProps, NavLink as RrNavLink } from 'react-router';\n\nimport GenericLink, { type PropsT as GenericLinkPropsT } from './GenericLink';\n\ntype PropsT = NavLinkProps & Omit<GenericLinkPropsT, 'routerLinkType'>;\n\nconst NavLink: React.FunctionComponent<PropsT>\n = (props) => (\n <GenericLink\n // TODO: I guess, we better re-write it to avoid the props spreading,\n // but no need to spend time on it right now.\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...props}\n routerLinkType={RrNavLink}\n />\n );\n\nexport default NavLink;\n"],"mappings":"AAAA,SAA4BA,OAAO,IAAIC,SAAS,QAAQ,cAAc;AAEtE,OAAOC,WAAW;AAA4D,SAAAC,GAAA,IAAAC,IAAA;AAI9E,MAAMJ,OAAwC,
|
|
1
|
+
{"version":3,"file":"NavLink.js","names":["NavLink","RrNavLink","GenericLink","jsx","_jsx","props","$","_c","t0","routerLinkType"],"sources":["../../../../src/shared/components/NavLink.tsx"],"sourcesContent":["import { type NavLinkProps, NavLink as RrNavLink } from 'react-router';\n\nimport GenericLink, { type PropsT as GenericLinkPropsT } from './GenericLink';\n\ntype PropsT = NavLinkProps & Omit<GenericLinkPropsT, 'routerLinkType'>;\n\nconst NavLink: React.FunctionComponent<PropsT>\n = (props) => (\n <GenericLink\n // TODO: I guess, we better re-write it to avoid the props spreading,\n // but no need to spend time on it right now.\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...props}\n routerLinkType={RrNavLink}\n />\n );\n\nexport default NavLink;\n"],"mappings":";AAAA,SAA4BA,OAAO,IAAIC,SAAS,QAAQ,cAAc;AAEtE,OAAOC,WAAW;AAA4D,SAAAC,GAAA,IAAAC,IAAA;AAI9E,MAAMJ,OAAwC,GAC1CK,KAAA;EAAA,MAAAC,CAAA,GAAAC,EAAA;EAAA,IAAAC,EAAA;EAAA,IAAAF,CAAA,QAAAD,KAAA;IACAG,EAAA,gBAAAJ,IAAA,CAACF,WAAW;MAAA,GAING,KAAK;MACOI,cAAS,EAATR;IAAS,CAC1B,CAAC;IAAAK,CAAA,MAAAD,KAAA;IAAAC,CAAA,MAAAE,EAAA;EAAA;IAAAA,EAAA,GAAAF,CAAA;EAAA;EAAA,OANFE,EAME;AAAA,CACH;AAEH,eAAeR,OAAO","ignoreList":[]}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { c as _c } from "react/compiler-runtime";
|
|
1
2
|
import { useTheme } from "@dr.pogodin/react-themes";
|
|
2
3
|
const baseTheme = {
|
|
3
4
|
"context": "-dr-pogodin-react-utils___build-web-shared-components-PageLayout-base-theme___context___zv9tdn",
|
|
@@ -22,26 +23,87 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; /**
|
|
|
22
23
|
* @param {...any} [props....]
|
|
23
24
|
* [Other theming properties](https://www.npmjs.com/package/@dr.pogodin/react-themes#themed-component-properties)
|
|
24
25
|
*/
|
|
25
|
-
const PageLayout =
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
26
|
+
const PageLayout = t0 => {
|
|
27
|
+
const $ = _c(20);
|
|
28
|
+
const {
|
|
29
|
+
children,
|
|
30
|
+
leftSidePanelContent,
|
|
31
|
+
rightSidePanelContent,
|
|
32
|
+
theme
|
|
33
|
+
} = t0;
|
|
31
34
|
const composed = useTheme("PageLayout", baseTheme, theme);
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
35
|
+
const t1 = composed.container;
|
|
36
|
+
let t2;
|
|
37
|
+
if ($[0] !== composed.leftSidePanel || $[1] !== composed.sidePanel) {
|
|
38
|
+
t2 = [composed.sidePanel, composed.leftSidePanel];
|
|
39
|
+
$[0] = composed.leftSidePanel;
|
|
40
|
+
$[1] = composed.sidePanel;
|
|
41
|
+
$[2] = t2;
|
|
42
|
+
} else {
|
|
43
|
+
t2 = $[2];
|
|
44
|
+
}
|
|
45
|
+
const t3 = t2.join(" ");
|
|
46
|
+
let t4;
|
|
47
|
+
if ($[3] !== leftSidePanelContent || $[4] !== t3) {
|
|
48
|
+
t4 = /*#__PURE__*/_jsx("div", {
|
|
49
|
+
className: t3,
|
|
36
50
|
children: leftSidePanelContent
|
|
37
|
-
})
|
|
51
|
+
});
|
|
52
|
+
$[3] = leftSidePanelContent;
|
|
53
|
+
$[4] = t3;
|
|
54
|
+
$[5] = t4;
|
|
55
|
+
} else {
|
|
56
|
+
t4 = $[5];
|
|
57
|
+
}
|
|
58
|
+
let t5;
|
|
59
|
+
if ($[6] !== children || $[7] !== composed.mainPanel) {
|
|
60
|
+
t5 = /*#__PURE__*/_jsx("div", {
|
|
38
61
|
className: composed.mainPanel,
|
|
39
62
|
children: children
|
|
40
|
-
})
|
|
41
|
-
|
|
63
|
+
});
|
|
64
|
+
$[6] = children;
|
|
65
|
+
$[7] = composed.mainPanel;
|
|
66
|
+
$[8] = t5;
|
|
67
|
+
} else {
|
|
68
|
+
t5 = $[8];
|
|
69
|
+
}
|
|
70
|
+
let t6;
|
|
71
|
+
if ($[9] !== composed.rightSidePanel || $[10] !== composed.sidePanel) {
|
|
72
|
+
t6 = [composed.sidePanel, composed.rightSidePanel];
|
|
73
|
+
$[9] = composed.rightSidePanel;
|
|
74
|
+
$[10] = composed.sidePanel;
|
|
75
|
+
$[11] = t6;
|
|
76
|
+
} else {
|
|
77
|
+
t6 = $[11];
|
|
78
|
+
}
|
|
79
|
+
const t7 = t6.join(" ");
|
|
80
|
+
let t8;
|
|
81
|
+
if ($[12] !== rightSidePanelContent || $[13] !== t7) {
|
|
82
|
+
t8 = /*#__PURE__*/_jsx("div", {
|
|
83
|
+
className: t7,
|
|
42
84
|
children: rightSidePanelContent
|
|
43
|
-
})
|
|
44
|
-
|
|
85
|
+
});
|
|
86
|
+
$[12] = rightSidePanelContent;
|
|
87
|
+
$[13] = t7;
|
|
88
|
+
$[14] = t8;
|
|
89
|
+
} else {
|
|
90
|
+
t8 = $[14];
|
|
91
|
+
}
|
|
92
|
+
let t9;
|
|
93
|
+
if ($[15] !== composed.container || $[16] !== t4 || $[17] !== t5 || $[18] !== t8) {
|
|
94
|
+
t9 = /*#__PURE__*/_jsxs("div", {
|
|
95
|
+
className: t1,
|
|
96
|
+
children: [t4, t5, t8]
|
|
97
|
+
});
|
|
98
|
+
$[15] = composed.container;
|
|
99
|
+
$[16] = t4;
|
|
100
|
+
$[17] = t5;
|
|
101
|
+
$[18] = t8;
|
|
102
|
+
$[19] = t9;
|
|
103
|
+
} else {
|
|
104
|
+
t9 = $[19];
|
|
105
|
+
}
|
|
106
|
+
return t9;
|
|
45
107
|
};
|
|
46
108
|
export default PageLayout;
|
|
47
109
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["useTheme","baseTheme","jsx","_jsx","jsxs","_jsxs","PageLayout","children","leftSidePanelContent","rightSidePanelContent","theme","composed","
|
|
1
|
+
{"version":3,"file":"index.js","names":["useTheme","baseTheme","jsx","_jsx","jsxs","_jsxs","PageLayout","t0","$","_c","children","leftSidePanelContent","rightSidePanelContent","theme","composed","t1","container","t2","leftSidePanel","sidePanel","t3","join","t4","className","t5","mainPanel","t6","rightSidePanel","t7","t8","t9"],"sources":["../../../../../src/shared/components/PageLayout/index.tsx"],"sourcesContent":["import type { FunctionComponent, ReactNode } from 'react';\n\nimport { type Theme, useTheme } from '@dr.pogodin/react-themes';\n\nimport baseTheme from './base-theme.scss';\n\ntype ThemeKeyT = 'container' | 'leftSidePanel' | 'mainPanel' | 'rightSidePanel'\n | 'sidePanel';\n\ntype PropsT = {\n children?: ReactNode;\n leftSidePanelContent?: ReactNode;\n rightSidePanelContent?: ReactNode;\n theme?: Theme<ThemeKeyT>;\n};\n\n/**\n * Simple and themeable page layout. It keeps the main content centered in\n * a column of limited width, which fills entire viewport on small screens\n * (under `$screen-md = 1024px` size). At larger screens the column keeps\n * `$screen-md` size, and it is centered at the page, surrounded by side\n * panels, where additional content can be displayed.\n *\n * **Children:** Component children are rendered as the content of main panel.\n * @param {object} [props] Component properties.\n * @param {Node} [props.leftSidePanelContent] The content for left side panel.\n * @param {Node} [props.rightSidePanelContent] The content for right side panel.\n * @param {PageLayoutTheme} [props.theme] _Ad hoc_ theme.\n * @param {...any} [props....]\n * [Other theming properties](https://www.npmjs.com/package/@dr.pogodin/react-themes#themed-component-properties)\n */\nconst PageLayout: FunctionComponent<PropsT> = ({\n children,\n leftSidePanelContent,\n rightSidePanelContent,\n theme,\n}) => {\n const composed = useTheme('PageLayout', baseTheme, theme);\n return (\n <div className={composed.container}>\n <div className={[composed.sidePanel, composed.leftSidePanel].join(' ')}>\n {leftSidePanelContent}\n </div>\n <div className={composed.mainPanel}>\n {children}\n </div>\n <div className={[composed.sidePanel, composed.rightSidePanel].join(' ')}>\n {rightSidePanelContent}\n </div>\n </div>\n );\n};\n\nexport default PageLayout;\n"],"mappings":";AAEA,SAAqBA,QAAQ,QAAQ,0BAA0B;AAE/D,MAAAC,SAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;AAAA;AAA0C,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA,4BAY1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMC,UAAqC,GAAGC,EAAA;EAAA,MAAAC,CAAA,GAAAC,EAAA;EAAC;IAAAC,QAAA;IAAAC,oBAAA;IAAAC,qBAAA;IAAAC;EAAA,IAAAN,EAK9C;EACC,MAAAO,QAAA,GAAiBd,QAAQ,CAAC,YAAY,EAAEC,SAAS,EAAEY,KAAK,CAAC;EAEvC,MAAAE,EAAA,GAAAD,QAAQ,CAAAE,SAAU;EAAA,IAAAC,EAAA;E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