@semcore/core 16.0.0-prerelease.6 → 16.0.0-prerelease.7
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/lib/LastInteractionType.mjs +16 -14
- package/lib/core-types/Component.mjs +22 -25
- package/lib/core-types/symbols.mjs +20 -10
- package/lib/coreFactory.mjs +154 -173
- package/lib/enhancement/Children.mjs +30 -45
- package/lib/enhancement/Root.mjs +22 -32
- package/lib/enhancement/bindHandler.mjs +10 -9
- package/lib/enhancement/dataName.mjs +4 -3
- package/lib/enhancement/enhance.mjs +4 -3
- package/lib/enhancement/functionDefaultProps.mjs +5 -5
- package/lib/enhancement/hoistProps.mjs +18 -28
- package/lib/enhancement/i18n.mjs +6 -6
- package/lib/enhancement/inheritedName.mjs +3 -2
- package/lib/enhancement/staticChildren.mjs +32 -35
- package/lib/enhancement/style.mjs +13 -14
- package/lib/enhancement/uncontrolledProps.mjs +21 -37
- package/lib/esm/LastInteractionType.mjs +51 -0
- package/lib/esm/core-types/Component.mjs +51 -0
- package/lib/esm/core-types/symbols.mjs +20 -0
- package/lib/esm/coreFactory.mjs +324 -0
- package/lib/esm/enhancement/Children.mjs +96 -0
- package/lib/esm/enhancement/Root.mjs +60 -0
- package/lib/esm/enhancement/bindHandler.mjs +48 -0
- package/lib/esm/enhancement/dataName.mjs +13 -0
- package/lib/esm/enhancement/enhance.mjs +16 -0
- package/lib/esm/enhancement/functionDefaultProps.mjs +29 -0
- package/lib/esm/enhancement/hoistProps.mjs +78 -0
- package/lib/esm/enhancement/i18n.mjs +20 -0
- package/lib/esm/enhancement/inheritedName.mjs +16 -0
- package/lib/esm/enhancement/staticChildren.mjs +120 -0
- package/lib/esm/enhancement/style.mjs +50 -0
- package/lib/esm/enhancement/uncontrolledProps.mjs +107 -0
- package/lib/esm/index.mjs +23 -0
- package/lib/esm/register.mjs +31 -0
- package/lib/esm/styled/reshadow-core.mjs +18 -0
- package/lib/esm/styled/sstyled.mjs +121 -0
- package/lib/esm/utils/assignProps.mjs +76 -0
- package/lib/esm/utils/canUseDOM.mjs +6 -0
- package/lib/esm/utils/capitalizeFirstLetter.mjs +6 -0
- package/lib/esm/utils/enhances/WithI18n.mjs +54 -0
- package/lib/esm/utils/logger.mjs +35 -0
- package/lib/esm/utils/pick.mjs +15 -0
- package/lib/esm/utils/ref.mjs +43 -0
- package/lib/esm/utils/use/useEnhancedEffect.mjs +6 -0
- package/lib/index.mjs +22 -8
- package/lib/register.mjs +10 -8
- package/lib/styled/reshadow-core.mjs +8 -233
- package/lib/styled/sstyled.mjs +38 -59
- package/lib/utils/assignProps.mjs +25 -33
- package/lib/utils/canUseDOM.mjs +5 -3
- package/lib/utils/capitalizeFirstLetter.mjs +4 -2
- package/lib/utils/enhances/WithI18n.mjs +22 -51
- package/lib/utils/logger.mjs +16 -13
- package/lib/utils/pick.mjs +4 -2
- package/lib/utils/ref.mjs +19 -59
- package/lib/utils/use/useEnhancedEffect.mjs +4 -3
- package/package.json +2 -2
- package/vite.config.ts +8 -0
- package/lib/LastInteractionType.mjs.map +0 -1
- package/lib/core-types/Component.mjs.map +0 -1
- package/lib/core-types/UnknownProperties.mjs +0 -2
- package/lib/core-types/UnknownProperties.mjs.map +0 -1
- package/lib/core-types/reshadow.d.mjs +0 -2
- package/lib/core-types/reshadow.d.mjs.map +0 -1
- package/lib/core-types/symbols.mjs.map +0 -1
- package/lib/coreFactory.mjs.map +0 -1
- package/lib/enhancement/Children.mjs.map +0 -1
- package/lib/enhancement/Root.mjs.map +0 -1
- package/lib/enhancement/bindHandler.mjs.map +0 -1
- package/lib/enhancement/dataName.mjs.map +0 -1
- package/lib/enhancement/enhance.mjs.map +0 -1
- package/lib/enhancement/functionDefaultProps.mjs.map +0 -1
- package/lib/enhancement/hoistProps.mjs.map +0 -1
- package/lib/enhancement/i18n.mjs.map +0 -1
- package/lib/enhancement/inheritedName.mjs.map +0 -1
- package/lib/enhancement/staticChildren.mjs.map +0 -1
- package/lib/enhancement/style.mjs.map +0 -1
- package/lib/enhancement/uncontrolledProps.mjs.map +0 -1
- package/lib/index.mjs.map +0 -1
- package/lib/register.mjs.map +0 -1
- package/lib/styled/index.mjs +0 -6
- package/lib/styled/index.mjs.map +0 -1
- package/lib/styled/reshadow-core.mjs.map +0 -1
- package/lib/styled/sstyled.mjs.map +0 -1
- package/lib/theme/processor.mjs +0 -307
- package/lib/theme/processor.mjs.map +0 -1
- package/lib/theme/themes/dark.mjs +0 -378
- package/lib/theme/themes/dark.mjs.map +0 -1
- package/lib/theme/themes/default.mjs +0 -387
- package/lib/theme/themes/default.mjs.map +0 -1
- package/lib/theme/themes/light.mjs +0 -387
- package/lib/theme/themes/light.mjs.map +0 -1
- package/lib/theme/utils.mjs +0 -286
- package/lib/theme/utils.mjs.map +0 -1
- package/lib/utils/CSSinJS.mjs +0 -28
- package/lib/utils/CSSinJS.mjs.map +0 -1
- package/lib/utils/ScreenReaderOnly.mjs +0 -24
- package/lib/utils/ScreenReaderOnly.mjs.map +0 -1
- package/lib/utils/ThemeProvider.mjs +0 -71
- package/lib/utils/ThemeProvider.mjs.map +0 -1
- package/lib/utils/addonText.mjs +0 -11
- package/lib/utils/addonText.mjs.map +0 -1
- package/lib/utils/addonTextChildren.mjs +0 -37
- package/lib/utils/addonTextChildren.mjs.map +0 -1
- package/lib/utils/ariaProps.mjs +0 -16
- package/lib/utils/ariaProps.mjs.map +0 -1
- package/lib/utils/assignProps.mjs.map +0 -1
- package/lib/utils/canUseDOM.mjs.map +0 -1
- package/lib/utils/capitalizeFirstLetter.mjs.map +0 -1
- package/lib/utils/color.mjs +0 -196
- package/lib/utils/color.mjs.map +0 -1
- package/lib/utils/compose.mjs +0 -15
- package/lib/utils/compose.mjs.map +0 -1
- package/lib/utils/createHoc.mjs +0 -46
- package/lib/utils/createHoc.mjs.map +0 -1
- package/lib/utils/createUUID.mjs +0 -9
- package/lib/utils/createUUID.mjs.map +0 -1
- package/lib/utils/cssToIntDefault.mjs +0 -16
- package/lib/utils/cssToIntDefault.mjs.map +0 -1
- package/lib/utils/enhances/WithAutoFocus.mjs +0 -67
- package/lib/utils/enhances/WithAutoFocus.mjs.map +0 -1
- package/lib/utils/enhances/WithCSS.mjs +0 -79
- package/lib/utils/enhances/WithCSS.mjs.map +0 -1
- package/lib/utils/enhances/WithI18n.mjs.map +0 -1
- package/lib/utils/enhances/WithKeyboardFocus.mjs +0 -84
- package/lib/utils/enhances/WithKeyboardFocus.mjs.map +0 -1
- package/lib/utils/enhances/WithRef.mjs +0 -18
- package/lib/utils/enhances/WithRef.mjs.map +0 -1
- package/lib/utils/enhances/a11yEnhance.mjs +0 -66
- package/lib/utils/enhances/a11yEnhance.mjs.map +0 -1
- package/lib/utils/enhances/animatedSizeEnhance.mjs +0 -90
- package/lib/utils/enhances/animatedSizeEnhance.mjs.map +0 -1
- package/lib/utils/enhances/autoFocusEnhance.mjs +0 -38
- package/lib/utils/enhances/autoFocusEnhance.mjs.map +0 -1
- package/lib/utils/enhances/contextEnhance.mjs +0 -14
- package/lib/utils/enhances/contextEnhance.mjs.map +0 -1
- package/lib/utils/enhances/i18nEnhance.mjs +0 -92
- package/lib/utils/enhances/i18nEnhance.mjs.map +0 -1
- package/lib/utils/enhances/keyboardFocusEnhance.mjs +0 -57
- package/lib/utils/enhances/keyboardFocusEnhance.mjs.map +0 -1
- package/lib/utils/enhances/resolveColorEnhance.mjs +0 -17
- package/lib/utils/enhances/resolveColorEnhance.mjs.map +0 -1
- package/lib/utils/eventEmitter.mjs +0 -34
- package/lib/utils/eventEmitter.mjs.map +0 -1
- package/lib/utils/findComponent.mjs +0 -95
- package/lib/utils/findComponent.mjs.map +0 -1
- package/lib/utils/fire.mjs +0 -15
- package/lib/utils/fire.mjs.map +0 -1
- package/lib/utils/focus-lock/focusBorders.mjs +0 -62
- package/lib/utils/focus-lock/focusBorders.mjs.map +0 -1
- package/lib/utils/focus-lock/getFocusableIn.mjs +0 -19
- package/lib/utils/focus-lock/getFocusableIn.mjs.map +0 -1
- package/lib/utils/focus-lock/isFocusInside.mjs +0 -9
- package/lib/utils/focus-lock/isFocusInside.mjs.map +0 -1
- package/lib/utils/focus-lock/isFocusable.mjs +0 -43
- package/lib/utils/focus-lock/isFocusable.mjs.map +0 -1
- package/lib/utils/focus-lock/setFocus.mjs +0 -55
- package/lib/utils/focus-lock/setFocus.mjs.map +0 -1
- package/lib/utils/getAccessibleName.mjs +0 -49
- package/lib/utils/getAccessibleName.mjs.map +0 -1
- package/lib/utils/getDisplayName.mjs +0 -4
- package/lib/utils/getDisplayName.mjs.map +0 -1
- package/lib/utils/getEventTarget.mjs +0 -45
- package/lib/utils/getEventTarget.mjs.map +0 -1
- package/lib/utils/getOriginChildren.mjs +0 -10
- package/lib/utils/getOriginChildren.mjs.map +0 -1
- package/lib/utils/getRandomInt.mjs +0 -5
- package/lib/utils/getRandomInt.mjs.map +0 -1
- package/lib/utils/getValue.mjs +0 -10
- package/lib/utils/getValue.mjs.map +0 -1
- package/lib/utils/hasLabels.mjs +0 -39
- package/lib/utils/hasLabels.mjs.map +0 -1
- package/lib/utils/hasParent.mjs +0 -7
- package/lib/utils/hasParent.mjs.map +0 -1
- package/lib/utils/if.mjs +0 -9
- package/lib/utils/if.mjs.map +0 -1
- package/lib/utils/ifChildren.mjs +0 -10
- package/lib/utils/ifChildren.mjs.map +0 -1
- package/lib/utils/injectStyle.mjs +0 -41
- package/lib/utils/injectStyle.mjs.map +0 -1
- package/lib/utils/inputProps.mjs +0 -14
- package/lib/utils/inputProps.mjs.map +0 -1
- package/lib/utils/isNode.mjs +0 -21
- package/lib/utils/isNode.mjs.map +0 -1
- package/lib/utils/isPromise.mjs +0 -4
- package/lib/utils/isPromise.mjs.map +0 -1
- package/lib/utils/isRetina.mjs +0 -9
- package/lib/utils/isRetina.mjs.map +0 -1
- package/lib/utils/logger.mjs.map +0 -1
- package/lib/utils/numericChecker.mjs +0 -27
- package/lib/utils/numericChecker.mjs.map +0 -1
- package/lib/utils/ownerDocument.mjs +0 -4
- package/lib/utils/ownerDocument.mjs.map +0 -1
- package/lib/utils/pick.mjs.map +0 -1
- package/lib/utils/propsForElement.mjs +0 -50
- package/lib/utils/propsForElement.mjs.map +0 -1
- package/lib/utils/rafTrottle.mjs +0 -26
- package/lib/utils/rafTrottle.mjs.map +0 -1
- package/lib/utils/reactToText.mjs +0 -26
- package/lib/utils/reactToText.mjs.map +0 -1
- package/lib/utils/ref.mjs.map +0 -1
- package/lib/utils/setRef.mjs +0 -3
- package/lib/utils/setRef.mjs.map +0 -1
- package/lib/utils/syncScroll.mjs +0 -54
- package/lib/utils/syncScroll.mjs.map +0 -1
- package/lib/utils/uncontroll.mjs +0 -38
- package/lib/utils/uncontroll.mjs.map +0 -1
- package/lib/utils/uniqueID.mjs +0 -33
- package/lib/utils/uniqueID.mjs.map +0 -1
- package/lib/utils/use/useColorResolver.mjs +0 -200
- package/lib/utils/use/useColorResolver.mjs.map +0 -1
- package/lib/utils/use/useCss.mjs +0 -12
- package/lib/utils/use/useCss.mjs.map +0 -1
- package/lib/utils/use/useEnhancedEffect.mjs.map +0 -1
- package/lib/utils/use/useEventCallback.mjs +0 -19
- package/lib/utils/use/useEventCallback.mjs.map +0 -1
- package/lib/utils/use/useEventListener.mjs +0 -25
- package/lib/utils/use/useEventListener.mjs.map +0 -1
- package/lib/utils/use/useFocusLock.mjs +0 -266
- package/lib/utils/use/useFocusLock.mjs.map +0 -1
- package/lib/utils/use/usePreventScroll.mjs +0 -70
- package/lib/utils/use/usePreventScroll.mjs.map +0 -1
- package/lib/utils/useCssVariable.mjs +0 -46
- package/lib/utils/useCssVariable.mjs.map +0 -1
- package/lib/utils/zIndexStacking.mjs +0 -38
- package/lib/utils/zIndexStacking.mjs.map +0 -1
package/lib/styled/sstyled.mjs
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
3
|
-
import _cn from
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var getStyles = function getStyles() {
|
|
3
|
+
import _cn from "classnames";
|
|
4
|
+
import { getStyles as getStyles$1 } from "./reshadow-core.mjs";
|
|
5
|
+
var RESHADOW_ID = "__reshadow__";
|
|
6
|
+
var isSSR = !(typeof window !== "undefined" && window.document && window.document.createElement);
|
|
7
|
+
var serverMap = getStyles$1().map;
|
|
8
|
+
var getStyles = function getStyles2() {
|
|
10
9
|
return {
|
|
11
10
|
map: serverMap,
|
|
12
11
|
get css() {
|
|
13
|
-
var serverStyles =
|
|
12
|
+
var serverStyles = "";
|
|
14
13
|
for (var id in serverMap) {
|
|
15
14
|
serverStyles += "<style type='text/css' id='".concat(id, "'>").concat(serverMap[id], "</style>");
|
|
16
15
|
}
|
|
@@ -19,41 +18,38 @@ var getStyles = function getStyles() {
|
|
|
19
18
|
};
|
|
20
19
|
};
|
|
21
20
|
function insert(code, hash) {
|
|
22
|
-
var id =
|
|
21
|
+
var id = "reshadow-".concat(hash);
|
|
23
22
|
if (isSSR) {
|
|
24
23
|
serverMap[id] = code;
|
|
25
24
|
return;
|
|
26
25
|
}
|
|
27
26
|
var container = document.getElementById(RESHADOW_ID);
|
|
28
27
|
if (!container) {
|
|
29
|
-
container = document.createElement(
|
|
28
|
+
container = document.createElement("object");
|
|
30
29
|
container.id = RESHADOW_ID;
|
|
31
30
|
if (document.head) {
|
|
32
31
|
document.head.appendChild(container);
|
|
33
32
|
} else {
|
|
34
|
-
document.addEventListener(
|
|
33
|
+
document.addEventListener("DOMContentLoaded", function() {
|
|
35
34
|
document.head.appendChild(container);
|
|
36
35
|
});
|
|
37
36
|
}
|
|
38
37
|
}
|
|
39
38
|
var css = document.getElementById(id);
|
|
40
39
|
if (!css) {
|
|
41
|
-
css = document.createElement(
|
|
40
|
+
css = document.createElement("style");
|
|
42
41
|
css.id = id;
|
|
43
|
-
|
|
44
|
-
css.type = 'text/css';
|
|
42
|
+
css.type = "text/css";
|
|
45
43
|
container.appendChild(css);
|
|
46
44
|
}
|
|
47
45
|
css.innerHTML = code;
|
|
48
46
|
}
|
|
49
47
|
function merge() {
|
|
50
|
-
var s1 = arguments.length > 0 && arguments[0] !==
|
|
51
|
-
var s2 = arguments.length > 1 && arguments[1] !==
|
|
52
|
-
return Object.entries(s2).reduce(function
|
|
53
|
-
var _ref2 = _slicedToArray(_ref, 2),
|
|
54
|
-
|
|
55
|
-
value = _ref2[1];
|
|
56
|
-
if (key.startsWith('@') || key.startsWith('--')) {
|
|
48
|
+
var s1 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
49
|
+
var s2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
50
|
+
return Object.entries(s2).reduce(function(acc, _ref) {
|
|
51
|
+
var _ref2 = _slicedToArray(_ref, 2), key = _ref2[0], value = _ref2[1];
|
|
52
|
+
if (key.startsWith("@") || key.startsWith("--")) {
|
|
57
53
|
acc[key] = value;
|
|
58
54
|
} else {
|
|
59
55
|
acc[key] = _cn(acc[key], value);
|
|
@@ -62,32 +58,22 @@ function merge() {
|
|
|
62
58
|
}, Object.assign({}, s1));
|
|
63
59
|
}
|
|
64
60
|
function getClassAndVars(styles, name, props) {
|
|
65
|
-
function getPropValue(key,
|
|
61
|
+
function getPropValue(key, props2) {
|
|
66
62
|
var _props;
|
|
67
|
-
return (_props =
|
|
63
|
+
return (_props = props2["use:".concat(key)]) !== null && _props !== void 0 ? _props : props2[key];
|
|
68
64
|
}
|
|
69
|
-
return Object.entries(styles).reduce(function
|
|
70
|
-
var _ref4 = _slicedToArray(_ref3, 2),
|
|
71
|
-
|
|
72
|
-
value = _ref4[1];
|
|
73
|
-
if (key.startsWith('--')) {
|
|
74
|
-
// @ts-ignore
|
|
65
|
+
return Object.entries(styles).reduce(function(acc, _ref3) {
|
|
66
|
+
var _ref4 = _slicedToArray(_ref3, 2), key = _ref4[0], value = _ref4[1];
|
|
67
|
+
if (key.startsWith("--")) {
|
|
75
68
|
acc[1][value] = getPropValue(key.substring(2), props);
|
|
76
69
|
} else if (name === key) {
|
|
77
|
-
// @ts-ignore
|
|
78
70
|
acc[0][value] = true;
|
|
79
71
|
} else {
|
|
80
|
-
var _key$split = key.split(
|
|
81
|
-
_key$split2 = _slicedToArray(_key$split, 2),
|
|
82
|
-
mod = _key$split2[0],
|
|
83
|
-
modValue = _key$split2[1];
|
|
72
|
+
var _key$split = key.split("="), _key$split2 = _slicedToArray(_key$split, 2), mod = _key$split2[0], modValue = _key$split2[1];
|
|
84
73
|
var propValue = getPropValue(mod, props);
|
|
85
|
-
if (modValue ===
|
|
86
|
-
// @ts-ignore
|
|
74
|
+
if (modValue === void 0) {
|
|
87
75
|
acc[0][value] = Boolean(propValue !== null && propValue !== void 0 ? propValue : false);
|
|
88
76
|
} else {
|
|
89
|
-
// @ts-ignore
|
|
90
|
-
// biome-ignore lint/suspicious/noDoubleEquals:
|
|
91
77
|
acc[0][value] = propValue == modValue;
|
|
92
78
|
}
|
|
93
79
|
}
|
|
@@ -95,48 +81,41 @@ function getClassAndVars(styles, name, props) {
|
|
|
95
81
|
}, [{}, {}]);
|
|
96
82
|
}
|
|
97
83
|
function reshadowToShadow(obj) {
|
|
98
|
-
return Object.entries(obj).reduce(function
|
|
99
|
-
var _ref6 = _slicedToArray(_ref5, 2),
|
|
100
|
-
name = _ref6[0],
|
|
101
|
-
value = _ref6[1];
|
|
84
|
+
return Object.entries(obj).reduce(function(style, _ref5) {
|
|
85
|
+
var _ref6 = _slicedToArray(_ref5, 2), name = _ref6[0], value = _ref6[1];
|
|
102
86
|
var n = name;
|
|
103
|
-
if (name.startsWith(
|
|
104
|
-
n = name.replace(/^__/,
|
|
105
|
-
} else if (name.startsWith(
|
|
106
|
-
n = name.replace(/^_/,
|
|
87
|
+
if (name.startsWith("__")) {
|
|
88
|
+
n = name.replace(/^__/, "");
|
|
89
|
+
} else if (name.startsWith("_")) {
|
|
90
|
+
n = name.replace(/^_/, "").replace("_", "=");
|
|
107
91
|
}
|
|
108
92
|
style[n] = value;
|
|
109
93
|
return style;
|
|
110
94
|
}, {});
|
|
111
95
|
}
|
|
112
96
|
function sstyled() {
|
|
113
|
-
var styles = arguments.length > 0 && arguments[0] !==
|
|
114
|
-
// @ts-ignore
|
|
97
|
+
var styles = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
115
98
|
return {
|
|
116
99
|
cn: function cn(name, props) {
|
|
117
|
-
var _getClassAndVars = getClassAndVars(reshadowToShadow(styles), name, props),
|
|
118
|
-
_getClassAndVars2 = _slicedToArray(_getClassAndVars, 2),
|
|
119
|
-
classes = _getClassAndVars2[0],
|
|
120
|
-
style = _getClassAndVars2[1];
|
|
100
|
+
var _getClassAndVars = getClassAndVars(reshadowToShadow(styles), name, props), _getClassAndVars2 = _slicedToArray(_getClassAndVars, 2), classes = _getClassAndVars2[0], style = _getClassAndVars2[1];
|
|
121
101
|
var extraProps = {};
|
|
122
102
|
if (Object.keys(classes).length) {
|
|
123
|
-
// @ts-ignore
|
|
124
103
|
extraProps.className = _cn(props.className, classes);
|
|
125
104
|
}
|
|
126
105
|
if (Object.keys(style).length) {
|
|
127
|
-
// @ts-ignore
|
|
128
106
|
extraProps.style = Object.assign(style, props.style);
|
|
129
107
|
}
|
|
130
108
|
return _objectSpread(_objectSpread({}, props), extraProps);
|
|
131
109
|
}
|
|
132
110
|
};
|
|
133
111
|
}
|
|
134
|
-
sstyled.css = function
|
|
135
|
-
throw new Error(
|
|
112
|
+
sstyled.css = function(css) {
|
|
113
|
+
throw new Error("Enable babel plugin");
|
|
136
114
|
};
|
|
137
115
|
sstyled.insert = insert;
|
|
138
116
|
sstyled.merge = merge;
|
|
139
117
|
sstyled.getStyles = getStyles;
|
|
140
|
-
sstyled.SHADOW_STYLES = Symbol(
|
|
141
|
-
export {
|
|
142
|
-
|
|
118
|
+
sstyled.SHADOW_STYLES = Symbol("SHADOW_STYLES");
|
|
119
|
+
export {
|
|
120
|
+
sstyled
|
|
121
|
+
};
|
|
@@ -1,68 +1,57 @@
|
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
-
import
|
|
3
|
-
import { sstyled } from "../styled/index.mjs";
|
|
2
|
+
import _cn from "classnames";
|
|
4
3
|
import { forkRef } from "./ref.mjs";
|
|
5
|
-
|
|
4
|
+
import { sstyled } from "../styled/sstyled.mjs";
|
|
5
|
+
function callAllEventHandlers() {
|
|
6
6
|
for (var _len = arguments.length, fns = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
7
7
|
fns[_key] = arguments[_key];
|
|
8
8
|
}
|
|
9
|
-
return function
|
|
9
|
+
return function() {
|
|
10
10
|
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
11
11
|
args[_key2] = arguments[_key2];
|
|
12
12
|
}
|
|
13
|
-
return !fns.some(function
|
|
13
|
+
return !fns.some(function(fn) {
|
|
14
14
|
var result;
|
|
15
15
|
if (fn) {
|
|
16
16
|
result = fn.apply(void 0, args);
|
|
17
17
|
}
|
|
18
|
-
return typeof result ===
|
|
18
|
+
return typeof result === "boolean" && !result;
|
|
19
19
|
});
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
|
-
export function assignHandlers(props, source) {
|
|
23
|
-
return Object.keys(source).reduce(function (proxySource, propName) {
|
|
24
|
-
if (typeof source[propName] === 'function' && propName.startsWith('on')) {
|
|
25
|
-
proxySource[propName] = callAllEventHandlers(props[propName], source[propName]);
|
|
26
|
-
}
|
|
27
|
-
return proxySource;
|
|
28
|
-
}, {});
|
|
29
|
-
}
|
|
30
22
|
function assignHandlersInner(props, source) {
|
|
31
|
-
return Object.keys(source).reduce(function
|
|
32
|
-
if (propName !==
|
|
33
|
-
if (typeof source[propName] ===
|
|
23
|
+
return Object.keys(source).reduce(function(proxySource, propName) {
|
|
24
|
+
if (propName !== "ref" && propName.startsWith("on")) {
|
|
25
|
+
if (typeof source[propName] === "function" && typeof props[propName] === "function") {
|
|
34
26
|
proxySource[propName] = callAllEventHandlers(props[propName], source[propName]);
|
|
35
|
-
} else if (typeof source[propName] ===
|
|
27
|
+
} else if (typeof source[propName] === "function") {
|
|
36
28
|
proxySource[propName] = source[propName];
|
|
37
|
-
} else if (typeof props[propName] ===
|
|
29
|
+
} else if (typeof props[propName] === "function") {
|
|
38
30
|
proxySource[propName] = props[propName];
|
|
39
31
|
}
|
|
40
32
|
}
|
|
41
33
|
return proxySource;
|
|
42
34
|
}, {});
|
|
43
35
|
}
|
|
44
|
-
|
|
45
|
-
var props = arguments.length > 0 && arguments[0] !==
|
|
46
|
-
var source = arguments.length > 1 && arguments[1] !==
|
|
47
|
-
// @ts-ignore
|
|
36
|
+
function assignProps() {
|
|
37
|
+
var props = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
38
|
+
var source = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
48
39
|
if (props === source) return props;
|
|
49
40
|
var newProps = _objectSpread(_objectSpread(_objectSpread({}, source), props), assignHandlersInner(props, source));
|
|
50
41
|
for (var _key3 in source) {
|
|
51
|
-
if (_key3.startsWith(
|
|
52
|
-
var originalKey = _key3.slice(
|
|
42
|
+
if (_key3.startsWith("use:")) {
|
|
43
|
+
var originalKey = _key3.slice("use:".length);
|
|
53
44
|
newProps[originalKey] = source[_key3];
|
|
54
45
|
}
|
|
55
46
|
}
|
|
56
47
|
for (var _key4 in props) {
|
|
57
|
-
if (_key4.startsWith(
|
|
58
|
-
var _originalKey = _key4.slice(
|
|
48
|
+
if (_key4.startsWith("use:")) {
|
|
49
|
+
var _originalKey = _key4.slice("use:".length);
|
|
59
50
|
newProps[_originalKey] = props[_key4];
|
|
60
51
|
}
|
|
61
52
|
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
var sourceDescriptorRef = Object.getOwnPropertyDescriptor(source, 'ref');
|
|
65
|
-
var propsDescriptorRef = Object.getOwnPropertyDescriptor(props, 'ref');
|
|
53
|
+
var sourceDescriptorRef = Object.getOwnPropertyDescriptor(source, "ref");
|
|
54
|
+
var propsDescriptorRef = Object.getOwnPropertyDescriptor(props, "ref");
|
|
66
55
|
if (sourceDescriptorRef !== null && sourceDescriptorRef !== void 0 && sourceDescriptorRef.configurable && propsDescriptorRef !== null && propsDescriptorRef !== void 0 && propsDescriptorRef.configurable) {
|
|
67
56
|
newProps.ref = forkRef(source.ref, props.ref);
|
|
68
57
|
}
|
|
@@ -74,11 +63,14 @@ export default function assignProps() {
|
|
|
74
63
|
newProps.style = _objectSpread(_objectSpread({}, source.style), props.style);
|
|
75
64
|
}
|
|
76
65
|
if (source.className) {
|
|
77
|
-
newProps.className =
|
|
66
|
+
newProps.className = _cn(props.className, source.className);
|
|
78
67
|
}
|
|
79
68
|
if (source.styles && props.styles) {
|
|
80
69
|
newProps.styles = sstyled.merge(source.styles, props.styles);
|
|
81
70
|
}
|
|
82
71
|
return newProps;
|
|
83
72
|
}
|
|
84
|
-
|
|
73
|
+
export {
|
|
74
|
+
callAllEventHandlers,
|
|
75
|
+
assignProps as default
|
|
76
|
+
};
|
package/lib/utils/canUseDOM.mjs
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
return !!(typeof window !==
|
|
1
|
+
function canUseDOM() {
|
|
2
|
+
return !!(typeof window !== "undefined" && window.document && window.document.createElement);
|
|
3
3
|
}
|
|
4
|
-
|
|
4
|
+
export {
|
|
5
|
+
canUseDOM as default
|
|
6
|
+
};
|
|
@@ -4,80 +4,51 @@ import _assertThisInitialized from "@babel/runtime/helpers/esm/assertThisInitial
|
|
|
4
4
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
5
5
|
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
6
6
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
I18nConsumer = Context.Consumer;
|
|
14
|
-
var messagesCache = createIntlCache();
|
|
7
|
+
import { createContext, Component } from "react";
|
|
8
|
+
import { createIntlCache } from "@formatjs/intl";
|
|
9
|
+
var Context = /* @__PURE__ */ createContext(void 0);
|
|
10
|
+
Context.Provider;
|
|
11
|
+
Context.Consumer;
|
|
12
|
+
createIntlCache();
|
|
15
13
|
function getText(dictionaries, locale) {
|
|
16
|
-
return function
|
|
14
|
+
return function(key) {
|
|
17
15
|
var dictionary = dictionaries[locale];
|
|
18
|
-
return dictionary ? dictionary[key] : dictionaries[
|
|
16
|
+
return dictionary ? dictionary[key] : dictionaries["en"][key];
|
|
19
17
|
};
|
|
20
18
|
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
*/
|
|
26
|
-
var WithI18n = /*#__PURE__*/function (_Component) {
|
|
27
|
-
_inherits(WithI18n, _Component);
|
|
28
|
-
var _super = _createSuper(WithI18n);
|
|
29
|
-
function WithI18n() {
|
|
19
|
+
var WithI18n = /* @__PURE__ */ function(_Component) {
|
|
20
|
+
_inherits(WithI18n2, _Component);
|
|
21
|
+
var _super = _createSuper(WithI18n2);
|
|
22
|
+
function WithI18n2() {
|
|
30
23
|
var _this;
|
|
31
|
-
_classCallCheck(this,
|
|
24
|
+
_classCallCheck(this, WithI18n2);
|
|
32
25
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
33
26
|
args[_key] = arguments[_key];
|
|
34
27
|
}
|
|
35
28
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
36
|
-
/* @ts-ignore */
|
|
37
29
|
_defineProperty(_assertThisInitialized(_this), "context", void 0);
|
|
38
|
-
_defineProperty(_assertThisInitialized(_this), "getText", function
|
|
39
|
-
var _this$props = _this.props,
|
|
40
|
-
locale = _this$props.locale,
|
|
41
|
-
getText = _this$props.getText;
|
|
30
|
+
_defineProperty(_assertThisInitialized(_this), "getText", function(dictionary, selfLocale) {
|
|
31
|
+
var _this$props = _this.props, locale = _this$props.locale, getText2 = _this$props.getText;
|
|
42
32
|
var contextLocale = _this.context;
|
|
43
|
-
return
|
|
33
|
+
return getText2(dictionary, selfLocale || locale || contextLocale);
|
|
44
34
|
});
|
|
45
35
|
return _this;
|
|
46
36
|
}
|
|
47
|
-
_createClass(
|
|
37
|
+
_createClass(WithI18n2, [{
|
|
48
38
|
key: "render",
|
|
49
39
|
value: function render() {
|
|
50
|
-
var _ref = this.props,
|
|
51
|
-
children = _ref.children;
|
|
40
|
+
var _ref = this.props, children = _ref.children;
|
|
52
41
|
return children({
|
|
53
42
|
getText: this.getText
|
|
54
43
|
});
|
|
55
44
|
}
|
|
56
45
|
}]);
|
|
57
|
-
return
|
|
46
|
+
return WithI18n2;
|
|
58
47
|
}(Component);
|
|
59
48
|
_defineProperty(WithI18n, "contextType", Context);
|
|
60
49
|
_defineProperty(WithI18n, "defaultProps", {
|
|
61
|
-
getText
|
|
50
|
+
getText
|
|
62
51
|
});
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
var locale = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'en';
|
|
66
|
-
var fallbackDictionary = arguments.length > 2 ? arguments[2] : undefined;
|
|
67
|
-
var lang = (_React$useContext = React.useContext(Context)) !== null && _React$useContext !== void 0 ? _React$useContext : locale;
|
|
68
|
-
var resolvedDictionary = useAsyncI18nMessages(dictionary, lang, fallbackDictionary);
|
|
69
|
-
var intl = React.useMemo(function () {
|
|
70
|
-
return createIntl({
|
|
71
|
-
locale: lang,
|
|
72
|
-
messages: resolvedDictionary
|
|
73
|
-
}, messagesCache);
|
|
74
|
-
}, [resolvedDictionary, lang]);
|
|
75
|
-
return React.useCallback(function (messageId, variables) {
|
|
76
|
-
return intl.formatMessage({
|
|
77
|
-
id: messageId !== null && messageId !== void 0 ? messageId : ''
|
|
78
|
-
}, variables);
|
|
79
|
-
}, [intl]);
|
|
52
|
+
export {
|
|
53
|
+
Context
|
|
80
54
|
};
|
|
81
|
-
export default createHoc(WithI18n);
|
|
82
|
-
export { useI18n, I18nProvider, I18nConsumer };
|
|
83
|
-
//# sourceMappingURL=WithI18n.mjs.map
|
package/lib/utils/logger.mjs
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
2
2
|
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
4
|
-
var DEV = process.env.NODE_ENV !==
|
|
5
|
-
var Logger =
|
|
6
|
-
function
|
|
7
|
-
_classCallCheck(this,
|
|
4
|
+
var DEV = process.env.NODE_ENV !== "production";
|
|
5
|
+
var Logger = /* @__PURE__ */ function() {
|
|
6
|
+
function Logger2(logger2) {
|
|
7
|
+
_classCallCheck(this, Logger2);
|
|
8
8
|
_defineProperty(this, "logger", void 0);
|
|
9
|
-
this.logger =
|
|
10
|
-
warn: function warn() {
|
|
9
|
+
this.logger = logger2 || {
|
|
10
|
+
warn: function warn() {
|
|
11
|
+
}
|
|
11
12
|
};
|
|
12
13
|
}
|
|
13
|
-
_createClass(
|
|
14
|
+
_createClass(Logger2, [{
|
|
14
15
|
key: "console",
|
|
15
|
-
value: function
|
|
16
|
+
value: function console2(level, msg, component) {
|
|
16
17
|
this.logger[level](component ? "[".concat(component, "]: ").concat(msg) : msg);
|
|
17
18
|
}
|
|
18
19
|
}, {
|
|
@@ -20,13 +21,15 @@ var Logger = /*#__PURE__*/function () {
|
|
|
20
21
|
value: function warn(condition, msg, component) {
|
|
21
22
|
if (DEV) {
|
|
22
23
|
if (condition) {
|
|
23
|
-
this.console(
|
|
24
|
+
this.console("warn", msg, component);
|
|
24
25
|
}
|
|
25
26
|
}
|
|
26
27
|
}
|
|
27
28
|
}]);
|
|
28
|
-
return
|
|
29
|
+
return Logger2;
|
|
29
30
|
}();
|
|
30
|
-
|
|
31
|
-
export
|
|
32
|
-
|
|
31
|
+
const logger = new Logger(console);
|
|
32
|
+
export {
|
|
33
|
+
Logger,
|
|
34
|
+
logger as default
|
|
35
|
+
};
|
package/lib/utils/pick.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
function pick(obj, keys) {
|
|
2
2
|
var res = {};
|
|
3
3
|
var len = keys.length;
|
|
4
4
|
var idx = -1;
|
|
@@ -10,4 +10,6 @@ export default function pick(obj, keys) {
|
|
|
10
10
|
}
|
|
11
11
|
return res;
|
|
12
12
|
}
|
|
13
|
-
|
|
13
|
+
export {
|
|
14
|
+
pick as default
|
|
15
|
+
};
|
package/lib/utils/ref.mjs
CHANGED
|
@@ -1,83 +1,43 @@
|
|
|
1
1
|
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
2
|
-
import
|
|
3
|
-
import React from
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
if (typeof ref ===
|
|
2
|
+
import "@babel/runtime/helpers/esm/slicedToArray";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import "react-dom";
|
|
5
|
+
function setRef(ref, value) {
|
|
6
|
+
if (typeof ref === "function") {
|
|
7
7
|
ref(value);
|
|
8
|
-
} else if (ref !== null && ref !== void 0 && ref.hasOwnProperty(
|
|
9
|
-
|
|
10
|
-
ref['current'] = value;
|
|
8
|
+
} else if (ref !== null && ref !== void 0 && ref.hasOwnProperty("current")) {
|
|
9
|
+
ref["current"] = value;
|
|
11
10
|
}
|
|
12
11
|
}
|
|
13
|
-
|
|
14
|
-
if (!ref) return null;
|
|
15
|
-
return 'current' in ref ? ref.current : ref;
|
|
16
|
-
}
|
|
17
|
-
export function useCallbackRef(initialValue, callback) {
|
|
18
|
-
var _React$useState = React.useState(function () {
|
|
19
|
-
return {
|
|
20
|
-
// value
|
|
21
|
-
value: initialValue,
|
|
22
|
-
// last callback
|
|
23
|
-
callback: callback,
|
|
24
|
-
// "memoized" public interface
|
|
25
|
-
facade: {
|
|
26
|
-
get current() {
|
|
27
|
-
return ref.value;
|
|
28
|
-
},
|
|
29
|
-
set current(value) {
|
|
30
|
-
var last = ref.value;
|
|
31
|
-
if (last !== value) {
|
|
32
|
-
ref.value = value;
|
|
33
|
-
ref.callback(value, last);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
}),
|
|
39
|
-
_React$useState2 = _slicedToArray(_React$useState, 1),
|
|
40
|
-
ref = _React$useState2[0];
|
|
41
|
-
// update callback
|
|
42
|
-
ref.callback = callback;
|
|
43
|
-
return ref.facade;
|
|
44
|
-
}
|
|
45
|
-
export function useForkRef() {
|
|
12
|
+
function useForkRef() {
|
|
46
13
|
for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
47
14
|
refs[_key] = arguments[_key];
|
|
48
15
|
}
|
|
49
|
-
return React.useCallback(function
|
|
16
|
+
return React.useCallback(function(refValue) {
|
|
50
17
|
var uniqueRefs = _toConsumableArray(new Set(refs));
|
|
51
|
-
uniqueRefs.forEach(function
|
|
18
|
+
uniqueRefs.forEach(function(ref) {
|
|
52
19
|
return setRef(ref, refValue);
|
|
53
20
|
});
|
|
54
21
|
}, refs);
|
|
55
22
|
}
|
|
56
|
-
|
|
23
|
+
function forkRef() {
|
|
57
24
|
for (var _len2 = arguments.length, refs = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
58
25
|
refs[_key2] = arguments[_key2];
|
|
59
26
|
}
|
|
60
|
-
if (refs.every(function
|
|
27
|
+
if (refs.every(function(ref) {
|
|
61
28
|
return ref == null;
|
|
62
29
|
})) {
|
|
63
30
|
return null;
|
|
64
31
|
}
|
|
65
|
-
return function
|
|
32
|
+
return function(refValue) {
|
|
66
33
|
var uniqueRefs = _toConsumableArray(new Set(refs));
|
|
67
|
-
uniqueRefs.forEach(function
|
|
34
|
+
uniqueRefs.forEach(function(ref) {
|
|
68
35
|
return setRef(ref, refValue);
|
|
69
36
|
});
|
|
70
37
|
};
|
|
71
38
|
}
|
|
72
|
-
export
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
var node = getRef(ref);
|
|
78
|
-
if (!node) return null;
|
|
79
|
-
if (node.nodeType === 1) return node;
|
|
80
|
-
if (Object.keys(node).length === 1 && 'getBoundingClientRect' in node) return null;
|
|
81
|
-
return findDOMNode(node);
|
|
82
|
-
}
|
|
83
|
-
//# sourceMappingURL=ref.mjs.map
|
|
39
|
+
export {
|
|
40
|
+
forkRef,
|
|
41
|
+
setRef,
|
|
42
|
+
useForkRef
|
|
43
|
+
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import React from
|
|
1
|
+
import React from "react";
|
|
2
2
|
import canUseDOM from "../canUseDOM.mjs";
|
|
3
3
|
var useEnhancedEffect = canUseDOM() ? React.useLayoutEffect : React.useEffect;
|
|
4
|
-
export
|
|
5
|
-
|
|
4
|
+
export {
|
|
5
|
+
useEnhancedEffect as default
|
|
6
|
+
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semcore/core",
|
|
3
3
|
"description": "Semrush Core Component",
|
|
4
|
-
"version": "16.0.0-prerelease.
|
|
4
|
+
"version": "16.0.0-prerelease.7",
|
|
5
5
|
"main": "lib/index.cjs",
|
|
6
6
|
"module": "lib/index.mjs",
|
|
7
7
|
"typings": "lib/index.d.ts",
|
|
@@ -292,6 +292,6 @@
|
|
|
292
292
|
"@types/react-dom": "18.0.6"
|
|
293
293
|
},
|
|
294
294
|
"scripts": {
|
|
295
|
-
"build": "pnpm semcore-builder --coreUtils"
|
|
295
|
+
"build": "pnpm semcore-builder --coreUtils && pnpm vite build"
|
|
296
296
|
}
|
|
297
297
|
}
|
package/vite.config.ts
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LastInteractionType.mjs","names":["canUseDOM","LastInteractionType","_classCallCheck","_defineProperty","handleKeyDown","bind","handleMouseDown","document","addEventListener","capture","_createClass","key","get","lastFocusSource","value","isKeyboard","isMouse","lastInteraction"],"sources":["../src/LastInteractionType.ts"],"sourcesContent":["import canUseDOM from './utils/canUseDOM';\n\nclass LastInteractionType {\n private lastFocusSource: 'mouse' | 'keyboard' | 'none' = 'none';\n\n constructor() {\n this.handleKeyDown = this.handleKeyDown.bind(this);\n this.handleMouseDown = this.handleMouseDown.bind(this);\n\n if (canUseDOM()) {\n document.addEventListener('mousedown', this.handleMouseDown, { capture: true });\n document.addEventListener('keydown', this.handleKeyDown, { capture: true });\n }\n }\n\n public get type() {\n return this.lastFocusSource;\n }\n\n public isKeyboard() {\n return this.lastFocusSource === 'keyboard';\n }\n\n public isMouse() {\n return this.lastFocusSource === 'mouse';\n }\n\n private handleMouseDown() {\n this.lastFocusSource = 'mouse';\n }\n\n private handleKeyDown() {\n this.lastFocusSource = 'keyboard';\n }\n}\n\nexport const lastInteraction = new LastInteractionType();\n"],"mappings":";;;AAAA,OAAOA,SAAS,MAAM,uBAAmB;AAAC,IAEpCC,mBAAmB;EAGvB,SAAAA,oBAAA,EAAc;IAAAC,eAAA,OAAAD,mBAAA;IAAAE,eAAA,0BAF2C,MAAM;IAG7D,IAAI,CAACC,aAAa,GAAG,IAAI,CAACA,aAAa,CAACC,IAAI,CAAC,IAAI,CAAC;IAClD,IAAI,CAACC,eAAe,GAAG,IAAI,CAACA,eAAe,CAACD,IAAI,CAAC,IAAI,CAAC;IAEtD,IAAIL,SAAS,EAAE,EAAE;MACfO,QAAQ,CAACC,gBAAgB,CAAC,WAAW,EAAE,IAAI,CAACF,eAAe,EAAE;QAAEG,OAAO,EAAE;MAAK,CAAC,CAAC;MAC/EF,QAAQ,CAACC,gBAAgB,CAAC,SAAS,EAAE,IAAI,CAACJ,aAAa,EAAE;QAAEK,OAAO,EAAE;MAAK,CAAC,CAAC;IAC7E;EACF;EAACC,YAAA,CAAAT,mBAAA;IAAAU,GAAA;IAAAC,GAAA,EAED,SAAAA,IAAA,EAAkB;MAChB,OAAO,IAAI,CAACC,eAAe;IAC7B;EAAC;IAAAF,GAAA;IAAAG,KAAA,EAED,SAAAC,WAAA,EAAoB;MAClB,OAAO,IAAI,CAACF,eAAe,KAAK,UAAU;IAC5C;EAAC;IAAAF,GAAA;IAAAG,KAAA,EAED,SAAAE,QAAA,EAAiB;MACf,OAAO,IAAI,CAACH,eAAe,KAAK,OAAO;IACzC;EAAC;IAAAF,GAAA;IAAAG,KAAA,EAED,SAAAR,gBAAA,EAA0B;MACxB,IAAI,CAACO,eAAe,GAAG,OAAO;IAChC;EAAC;IAAAF,GAAA;IAAAG,KAAA,EAED,SAAAV,cAAA,EAAwB;MACtB,IAAI,CAACS,eAAe,GAAG,UAAU;IACnC;EAAC;EAAA,OAAAZ,mBAAA;AAAA;AAGH,OAAO,IAAMgB,eAAe,GAAG,IAAIhB,mBAAmB,EAAE"}
|