@semcore/core 17.0.0-prerelease.20 → 17.0.0-prerelease.20-prerelease.20
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.js +36 -22
- package/lib/LastInteractionType.js.map +1 -1
- package/lib/LastInteractionType.mjs +33 -19
- package/lib/LastInteractionType.mjs.map +1 -1
- package/lib/core-types/Component.js +41 -25
- package/lib/core-types/Component.js.map +1 -1
- package/lib/core-types/Component.mjs +38 -18
- package/lib/core-types/Component.mjs.map +1 -1
- package/lib/core-types/symbols.js +9 -9
- package/lib/core-types/symbols.js.map +1 -1
- package/lib/core-types/symbols.mjs +9 -9
- package/lib/core-types/symbols.mjs.map +1 -1
- package/lib/coreFactory.js +205 -143
- package/lib/coreFactory.js.map +1 -1
- package/lib/coreFactory.mjs +164 -118
- package/lib/coreFactory.mjs.map +1 -1
- package/lib/decorators/propsObserver.js +64 -36
- package/lib/decorators/propsObserver.js.map +1 -1
- package/lib/decorators/propsObserver.mjs +61 -33
- package/lib/decorators/propsObserver.mjs.map +1 -1
- package/lib/decorators/reactive.js +17 -17
- package/lib/decorators/reactive.js.map +1 -1
- package/lib/decorators/reactive.mjs +15 -15
- package/lib/decorators/reactive.mjs.map +1 -1
- package/lib/enhancement/Children.js +59 -51
- package/lib/enhancement/Children.js.map +1 -1
- package/lib/enhancement/Children.mjs +41 -47
- package/lib/enhancement/Children.mjs.map +1 -1
- package/lib/enhancement/Root.js +37 -36
- package/lib/enhancement/Root.js.map +1 -1
- package/lib/enhancement/Root.mjs +18 -28
- package/lib/enhancement/Root.mjs.map +1 -1
- package/lib/enhancement/dataName.js +8 -7
- package/lib/enhancement/dataName.js.map +1 -1
- package/lib/enhancement/dataName.mjs +5 -5
- package/lib/enhancement/dataName.mjs.map +1 -1
- package/lib/enhancement/enhance.js +9 -6
- package/lib/enhancement/enhance.js.map +1 -1
- package/lib/enhancement/enhance.mjs +7 -5
- package/lib/enhancement/enhance.mjs.map +1 -1
- package/lib/enhancement/functionDefaultProps.js +6 -6
- package/lib/enhancement/functionDefaultProps.js.map +1 -1
- package/lib/enhancement/functionDefaultProps.mjs +4 -4
- package/lib/enhancement/functionDefaultProps.mjs.map +1 -1
- package/lib/enhancement/i18n.js +13 -13
- package/lib/enhancement/i18n.js.map +1 -1
- package/lib/enhancement/i18n.mjs +9 -10
- package/lib/enhancement/i18n.mjs.map +1 -1
- package/lib/enhancement/inheritedName.js +8 -7
- package/lib/enhancement/inheritedName.js.map +1 -1
- package/lib/enhancement/inheritedName.mjs +5 -5
- package/lib/enhancement/inheritedName.mjs.map +1 -1
- package/lib/enhancement/staticChildren.js +56 -47
- package/lib/enhancement/staticChildren.js.map +1 -1
- package/lib/enhancement/staticChildren.mjs +48 -43
- package/lib/enhancement/staticChildren.mjs.map +1 -1
- package/lib/enhancement/style.js +27 -29
- package/lib/enhancement/style.js.map +1 -1
- package/lib/enhancement/style.mjs +20 -26
- package/lib/enhancement/style.mjs.map +1 -1
- package/lib/enhancement/uncontrolledProps.js +65 -46
- package/lib/enhancement/uncontrolledProps.js.map +1 -1
- package/lib/enhancement/uncontrolledProps.mjs +52 -43
- package/lib/enhancement/uncontrolledProps.mjs.map +1 -1
- package/lib/esm/LastInteractionType.mjs +33 -19
- package/lib/esm/core-types/Component.mjs +38 -18
- package/lib/esm/core-types/symbols.mjs +9 -9
- package/lib/esm/coreFactory.mjs +164 -118
- package/lib/esm/enhancement/Children.mjs +41 -47
- package/lib/esm/enhancement/Root.mjs +18 -28
- package/lib/esm/enhancement/dataName.mjs +5 -5
- package/lib/esm/enhancement/enhance.mjs +7 -5
- package/lib/esm/enhancement/functionDefaultProps.mjs +4 -4
- package/lib/esm/enhancement/i18n.mjs +9 -10
- package/lib/esm/enhancement/inheritedName.mjs +5 -5
- package/lib/esm/enhancement/staticChildren.mjs +48 -43
- package/lib/esm/enhancement/style.mjs +20 -26
- package/lib/esm/enhancement/uncontrolledProps.mjs +52 -43
- package/lib/esm/register.mjs +20 -12
- package/lib/esm/styled/reshadow-core.mjs +111 -98
- package/lib/esm/styled/sstyled.mjs +41 -31
- package/lib/esm/utils/assignProps.mjs +36 -32
- package/lib/esm/utils/enhances/WithI18n.mjs +17 -15
- package/lib/esm/utils/enhances/i18nEnhance.mjs +61 -47
- package/lib/esm/utils/logger.mjs +21 -13
- package/lib/esm/utils/pick.mjs +4 -4
- package/lib/esm/utils/ref.mjs +43 -27
- package/lib/esm/utils/use/useEnhancedEffect.mjs +1 -1
- package/lib/index.js +17 -17
- package/lib/register.js +24 -17
- package/lib/register.js.map +1 -1
- package/lib/register.mjs +20 -12
- package/lib/register.mjs.map +1 -1
- package/lib/styled/index.js +4 -4
- package/lib/styled/reshadow-core.js +104 -102
- package/lib/styled/reshadow-core.js.map +1 -1
- package/lib/styled/reshadow-core.mjs +111 -98
- package/lib/styled/reshadow-core.mjs.map +1 -1
- package/lib/styled/sstyled.js +53 -31
- package/lib/styled/sstyled.js.map +1 -1
- package/lib/styled/sstyled.mjs +41 -31
- package/lib/styled/sstyled.mjs.map +1 -1
- package/lib/theme/processor.js +222 -150
- package/lib/theme/processor.js.map +1 -1
- package/lib/theme/processor.mjs +221 -148
- package/lib/theme/processor.mjs.map +1 -1
- package/lib/theme/themes/dark.js +2 -2
- package/lib/theme/themes/dark.js.map +1 -1
- package/lib/theme/themes/default.js +2 -2
- package/lib/theme/themes/default.js.map +1 -1
- package/lib/theme/themes/highlights-dark.js +2 -2
- package/lib/theme/themes/highlights-dark.js.map +1 -1
- package/lib/theme/themes/highlights-light.js +2 -2
- package/lib/theme/themes/highlights-light.js.map +1 -1
- package/lib/theme/themes/light.js +2 -2
- package/lib/theme/themes/light.js.map +1 -1
- package/lib/theme/utils.js +215 -140
- package/lib/theme/utils.js.map +1 -1
- package/lib/theme/utils.mjs +214 -135
- package/lib/theme/utils.mjs.map +1 -1
- package/lib/utils/CSSinJS.js +10 -8
- package/lib/utils/CSSinJS.js.map +1 -1
- package/lib/utils/CSSinJS.mjs +7 -6
- package/lib/utils/CSSinJS.mjs.map +1 -1
- package/lib/utils/ThemeProvider.js +51 -44
- package/lib/utils/ThemeProvider.js.map +1 -1
- package/lib/utils/ThemeProvider.mjs +47 -36
- package/lib/utils/ThemeProvider.mjs.map +1 -1
- package/lib/utils/addonText.js +7 -4
- package/lib/utils/addonText.js.map +1 -1
- package/lib/utils/addonText.mjs +5 -2
- package/lib/utils/addonText.mjs.map +1 -1
- package/lib/utils/addonTextChildren.js +21 -15
- package/lib/utils/addonTextChildren.js.map +1 -1
- package/lib/utils/addonTextChildren.mjs +13 -7
- package/lib/utils/addonTextChildren.mjs.map +1 -1
- package/lib/utils/ariaProps.js +5 -7
- package/lib/utils/ariaProps.js.map +1 -1
- package/lib/utils/ariaProps.mjs +5 -7
- package/lib/utils/ariaProps.mjs.map +1 -1
- package/lib/utils/assignProps.js +37 -33
- package/lib/utils/assignProps.js.map +1 -1
- package/lib/utils/assignProps.mjs +36 -32
- package/lib/utils/assignProps.mjs.map +1 -1
- package/lib/utils/canUseDOM.js +1 -1
- package/lib/utils/capitalizeFirstLetter.js +1 -1
- package/lib/utils/color.js +95 -72
- package/lib/utils/color.js.map +1 -1
- package/lib/utils/color.mjs +94 -71
- package/lib/utils/color.mjs.map +1 -1
- package/lib/utils/compose.js +12 -3
- package/lib/utils/compose.js.map +1 -1
- package/lib/utils/compose.mjs +11 -2
- package/lib/utils/compose.mjs.map +1 -1
- package/lib/utils/createUUID.js +5 -5
- package/lib/utils/createUUID.js.map +1 -1
- package/lib/utils/createUUID.mjs +4 -4
- package/lib/utils/createUUID.mjs.map +1 -1
- package/lib/utils/cssToIntDefault.js +4 -3
- package/lib/utils/cssToIntDefault.js.map +1 -1
- package/lib/utils/cssToIntDefault.mjs +3 -2
- package/lib/utils/cssToIntDefault.mjs.map +1 -1
- package/lib/utils/enhances/WithCSS.js +8 -10
- package/lib/utils/enhances/WithCSS.js.map +1 -1
- package/lib/utils/enhances/WithCSS.mjs +6 -7
- package/lib/utils/enhances/WithCSS.mjs.map +1 -1
- package/lib/utils/enhances/WithI18n.js +19 -19
- package/lib/utils/enhances/WithI18n.js.map +1 -1
- package/lib/utils/enhances/WithI18n.mjs +17 -15
- package/lib/utils/enhances/WithI18n.mjs.map +1 -1
- package/lib/utils/enhances/a11yEnhance.js +39 -34
- package/lib/utils/enhances/a11yEnhance.js.map +1 -1
- package/lib/utils/enhances/a11yEnhance.mjs +36 -32
- package/lib/utils/enhances/a11yEnhance.mjs.map +1 -1
- package/lib/utils/enhances/animatedSizeEnhance.js +63 -55
- package/lib/utils/enhances/animatedSizeEnhance.js.map +1 -1
- package/lib/utils/enhances/animatedSizeEnhance.mjs +58 -50
- package/lib/utils/enhances/animatedSizeEnhance.mjs.map +1 -1
- package/lib/utils/enhances/contextEnhance.js +11 -12
- package/lib/utils/enhances/contextEnhance.js.map +1 -1
- package/lib/utils/enhances/contextEnhance.mjs +8 -9
- package/lib/utils/enhances/contextEnhance.mjs.map +1 -1
- package/lib/utils/enhances/i18nEnhance.js +67 -51
- package/lib/utils/enhances/i18nEnhance.js.map +1 -1
- package/lib/utils/enhances/i18nEnhance.mjs +61 -47
- package/lib/utils/enhances/i18nEnhance.mjs.map +1 -1
- package/lib/utils/enhances/resolveColorEnhance.js +10 -12
- package/lib/utils/enhances/resolveColorEnhance.js.map +1 -1
- package/lib/utils/enhances/resolveColorEnhance.mjs +6 -8
- package/lib/utils/enhances/resolveColorEnhance.mjs.map +1 -1
- package/lib/utils/eventEmitter.js +57 -30
- package/lib/utils/eventEmitter.js.map +1 -1
- package/lib/utils/eventEmitter.mjs +55 -26
- package/lib/utils/eventEmitter.mjs.map +1 -1
- package/lib/utils/findComponent.js +42 -35
- package/lib/utils/findComponent.js.map +1 -1
- package/lib/utils/findComponent.mjs +33 -26
- package/lib/utils/findComponent.mjs.map +1 -1
- package/lib/utils/fire.js +13 -7
- package/lib/utils/fire.js.map +1 -1
- package/lib/utils/fire.mjs +11 -5
- package/lib/utils/fire.mjs.map +1 -1
- package/lib/utils/focus-lock/focusBorders.js +32 -28
- package/lib/utils/focus-lock/focusBorders.js.map +1 -1
- package/lib/utils/focus-lock/focusBorders.mjs +32 -26
- package/lib/utils/focus-lock/focusBorders.mjs.map +1 -1
- package/lib/utils/focus-lock/getFocusableIn.js +6 -4
- package/lib/utils/focus-lock/getFocusableIn.js.map +1 -1
- package/lib/utils/focus-lock/getFocusableIn.mjs +6 -3
- package/lib/utils/focus-lock/getFocusableIn.mjs.map +1 -1
- package/lib/utils/focus-lock/isFocusInside.js +6 -5
- package/lib/utils/focus-lock/isFocusInside.js.map +1 -1
- package/lib/utils/focus-lock/isFocusInside.mjs +6 -4
- package/lib/utils/focus-lock/isFocusInside.mjs.map +1 -1
- package/lib/utils/focus-lock/isFocusable.js +12 -9
- package/lib/utils/focus-lock/isFocusable.js.map +1 -1
- package/lib/utils/focus-lock/isFocusable.mjs +11 -8
- package/lib/utils/focus-lock/isFocusable.mjs.map +1 -1
- package/lib/utils/focus-lock/setFocus.js +27 -21
- package/lib/utils/focus-lock/setFocus.js.map +1 -1
- package/lib/utils/focus-lock/setFocus.mjs +25 -19
- package/lib/utils/focus-lock/setFocus.mjs.map +1 -1
- package/lib/utils/getAccessibleName.js +22 -10
- package/lib/utils/getAccessibleName.js.map +1 -1
- package/lib/utils/getAccessibleName.mjs +21 -10
- package/lib/utils/getAccessibleName.mjs.map +1 -1
- package/lib/utils/getDisplayName.js +1 -1
- package/lib/utils/getEventTarget.js +32 -13
- package/lib/utils/getEventTarget.js.map +1 -1
- package/lib/utils/getEventTarget.mjs +31 -12
- package/lib/utils/getEventTarget.mjs.map +1 -1
- package/lib/utils/getOriginChildren.js +4 -4
- package/lib/utils/getOriginChildren.js.map +1 -1
- package/lib/utils/getRandomInt.js +1 -1
- package/lib/utils/getValue.js +6 -4
- package/lib/utils/getValue.js.map +1 -1
- package/lib/utils/getValue.mjs +5 -3
- package/lib/utils/getValue.mjs.map +1 -1
- package/lib/utils/hasLabels.js +27 -16
- package/lib/utils/hasLabels.js.map +1 -1
- package/lib/utils/hasLabels.mjs +24 -14
- package/lib/utils/hasLabels.mjs.map +1 -1
- package/lib/utils/hasParent.js +2 -3
- package/lib/utils/hasParent.js.map +1 -1
- package/lib/utils/hasParent.mjs +3 -2
- package/lib/utils/hasParent.mjs.map +1 -1
- package/lib/utils/ifChildren.js +4 -6
- package/lib/utils/ifChildren.js.map +1 -1
- package/lib/utils/ifChildren.mjs +2 -4
- package/lib/utils/ifChildren.mjs.map +1 -1
- package/lib/utils/injectStyle.js +13 -11
- package/lib/utils/injectStyle.js.map +1 -1
- package/lib/utils/injectStyle.mjs +10 -9
- package/lib/utils/injectStyle.mjs.map +1 -1
- package/lib/utils/inputProps.js +5 -5
- package/lib/utils/inputProps.js.map +1 -1
- package/lib/utils/inputProps.mjs +4 -4
- package/lib/utils/inputProps.mjs.map +1 -1
- package/lib/utils/isInteractiveElement.js +9 -7
- package/lib/utils/isInteractiveElement.js.map +1 -1
- package/lib/utils/isInteractiveElement.mjs +9 -7
- package/lib/utils/isInteractiveElement.mjs.map +1 -1
- package/lib/utils/isNode.js +5 -4
- package/lib/utils/isNode.js.map +1 -1
- package/lib/utils/isNode.mjs +2 -1
- package/lib/utils/isNode.mjs.map +1 -1
- package/lib/utils/isPromise.js +1 -1
- package/lib/utils/isRetina.js +2 -7
- package/lib/utils/isRetina.js.map +1 -1
- package/lib/utils/isRetina.mjs +1 -6
- package/lib/utils/isRetina.mjs.map +1 -1
- package/lib/utils/logger.js +25 -18
- package/lib/utils/logger.js.map +1 -1
- package/lib/utils/logger.mjs +21 -13
- package/lib/utils/logger.mjs.map +1 -1
- package/lib/utils/numericChecker.js +18 -11
- package/lib/utils/numericChecker.js.map +1 -1
- package/lib/utils/numericChecker.mjs +17 -10
- package/lib/utils/numericChecker.mjs.map +1 -1
- package/lib/utils/ownerDocument.js +2 -2
- package/lib/utils/ownerDocument.js.map +1 -1
- package/lib/utils/ownerDocument.mjs +1 -1
- package/lib/utils/ownerDocument.mjs.map +1 -1
- package/lib/utils/pick.js +5 -5
- package/lib/utils/pick.js.map +1 -1
- package/lib/utils/pick.mjs +4 -4
- package/lib/utils/pick.mjs.map +1 -1
- package/lib/utils/propsForElement.js +12 -10
- package/lib/utils/propsForElement.js.map +1 -1
- package/lib/utils/propsForElement.mjs +10 -8
- package/lib/utils/propsForElement.mjs.map +1 -1
- package/lib/utils/rafTrottle.js +14 -9
- package/lib/utils/rafTrottle.js.map +1 -1
- package/lib/utils/rafTrottle.mjs +12 -7
- package/lib/utils/rafTrottle.mjs.map +1 -1
- package/lib/utils/reactToText.js +8 -5
- package/lib/utils/reactToText.js.map +1 -1
- package/lib/utils/reactToText.mjs +6 -3
- package/lib/utils/reactToText.mjs.map +1 -1
- package/lib/utils/ref.js +47 -29
- package/lib/utils/ref.js.map +1 -1
- package/lib/utils/ref.mjs +43 -27
- package/lib/utils/ref.mjs.map +1 -1
- package/lib/utils/setRef.js +2 -2
- package/lib/utils/setRef.js.map +1 -1
- package/lib/utils/syncScroll.js +24 -24
- package/lib/utils/syncScroll.js.map +1 -1
- package/lib/utils/syncScroll.mjs +21 -21
- package/lib/utils/syncScroll.mjs.map +1 -1
- package/lib/utils/uncontroll.js +18 -8
- package/lib/utils/uncontroll.js.map +1 -1
- package/lib/utils/uncontroll.mjs +17 -8
- package/lib/utils/uncontroll.mjs.map +1 -1
- package/lib/utils/uniqueID.js +27 -22
- package/lib/utils/uniqueID.js.map +1 -1
- package/lib/utils/uniqueID.mjs +25 -18
- package/lib/utils/uniqueID.mjs.map +1 -1
- package/lib/utils/use/useColorResolver.js +21 -20
- package/lib/utils/use/useColorResolver.js.map +1 -1
- package/lib/utils/use/useColorResolver.mjs +18 -16
- package/lib/utils/use/useColorResolver.mjs.map +1 -1
- package/lib/utils/use/useEnhancedEffect.js +4 -4
- package/lib/utils/use/useEnhancedEffect.js.map +1 -1
- package/lib/utils/use/useEnhancedEffect.mjs +1 -1
- package/lib/utils/use/useEnhancedEffect.mjs.map +1 -1
- package/lib/utils/use/useEventCallback.js +10 -5
- package/lib/utils/use/useEventCallback.js.map +1 -1
- package/lib/utils/use/useEventCallback.mjs +8 -3
- package/lib/utils/use/useEventCallback.mjs.map +1 -1
- package/lib/utils/use/useEventListener.js +15 -11
- package/lib/utils/use/useEventListener.js.map +1 -1
- package/lib/utils/use/useEventListener.mjs +11 -7
- package/lib/utils/use/useEventListener.mjs.map +1 -1
- package/lib/utils/use/useFocusLock.js +94 -80
- package/lib/utils/use/useFocusLock.js.map +1 -1
- package/lib/utils/use/useFocusLock.mjs +88 -71
- package/lib/utils/use/useFocusLock.mjs.map +1 -1
- package/lib/utils/use/usePreventScroll.js +28 -26
- package/lib/utils/use/usePreventScroll.js.map +1 -1
- package/lib/utils/use/usePreventScroll.mjs +23 -21
- package/lib/utils/use/usePreventScroll.mjs.map +1 -1
- package/lib/utils/use/useScrollBarWidth.js +14 -8
- package/lib/utils/use/useScrollBarWidth.js.map +1 -1
- package/lib/utils/use/useScrollBarWidth.mjs +13 -8
- package/lib/utils/use/useScrollBarWidth.mjs.map +1 -1
- package/lib/utils/useCssVariable.js +37 -32
- package/lib/utils/useCssVariable.js.map +1 -1
- package/lib/utils/useCssVariable.mjs +34 -27
- package/lib/utils/useCssVariable.mjs.map +1 -1
- package/lib/utils/zIndexStacking.js +24 -28
- package/lib/utils/zIndexStacking.js.map +1 -1
- package/lib/utils/zIndexStacking.mjs +22 -23
- package/lib/utils/zIndexStacking.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1,75 +1,89 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
|
+
import _typeof from "@babel/runtime/helpers/esm/typeof";
|
|
3
|
+
import _regenerator from "@babel/runtime/helpers/esm/regenerator";
|
|
4
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
5
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
6
|
+
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
1
7
|
import React from "react";
|
|
2
8
|
import { useI18n } from "./WithI18n.mjs";
|
|
3
|
-
|
|
4
|
-
|
|
9
|
+
var useAsyncI18nMessages = function useAsyncI18nMessages2(primaryContainer, locale, fallbackContainer) {
|
|
10
|
+
var _store$locale;
|
|
11
|
+
var container = React.useMemo(function() {
|
|
5
12
|
if (!fallbackContainer) return primaryContainer;
|
|
6
13
|
if (!primaryContainer) return fallbackContainer;
|
|
7
14
|
if (primaryContainer === fallbackContainer) return primaryContainer;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
if (typeof primaryContainer[
|
|
11
|
-
container2[
|
|
12
|
-
|
|
13
|
-
return {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
var container2 = {};
|
|
16
|
+
var _loop = function _loop2(_locale2) {
|
|
17
|
+
if (typeof primaryContainer[_locale2] === "function" || typeof fallbackContainer[_locale2] === "function") {
|
|
18
|
+
container2[_locale2] = /* @__PURE__ */ _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee() {
|
|
19
|
+
var _yield$Promise$all, _yield$Promise$all2, primary, fallback;
|
|
20
|
+
return _regenerator().w(function(_context) {
|
|
21
|
+
while (1) switch (_context.n) {
|
|
22
|
+
case 0:
|
|
23
|
+
_context.n = 1;
|
|
24
|
+
return Promise.all([primaryContainer[_locale2], fallbackContainer[_locale2]]);
|
|
25
|
+
case 1:
|
|
26
|
+
_yield$Promise$all = _context.v;
|
|
27
|
+
_yield$Promise$all2 = _slicedToArray(_yield$Promise$all, 2);
|
|
28
|
+
primary = _yield$Promise$all2[0];
|
|
29
|
+
fallback = _yield$Promise$all2[1];
|
|
30
|
+
return _context.a(2, _objectSpread(_objectSpread({}, primary), fallback));
|
|
31
|
+
}
|
|
32
|
+
}, _callee);
|
|
33
|
+
}));
|
|
18
34
|
} else {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
...fallbackContainer[locale2] ?? {}
|
|
22
|
-
};
|
|
35
|
+
var _primaryContainer$_lo, _fallbackContainer$_l;
|
|
36
|
+
container2[_locale2] = _objectSpread(_objectSpread({}, (_primaryContainer$_lo = primaryContainer[_locale2]) !== null && _primaryContainer$_lo !== void 0 ? _primaryContainer$_lo : {}), (_fallbackContainer$_l = fallbackContainer[_locale2]) !== null && _fallbackContainer$_l !== void 0 ? _fallbackContainer$_l : {});
|
|
23
37
|
}
|
|
38
|
+
};
|
|
39
|
+
for (var _locale in primaryContainer) {
|
|
40
|
+
_loop(_locale);
|
|
24
41
|
}
|
|
25
42
|
return container2;
|
|
26
43
|
}, [primaryContainer, fallbackContainer]);
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
for (
|
|
30
|
-
if (
|
|
31
|
-
store2[
|
|
44
|
+
var initStore = React.useMemo(function() {
|
|
45
|
+
var store2 = {};
|
|
46
|
+
for (var _locale2 in container) {
|
|
47
|
+
if (_typeof(container[_locale2]) === "object") {
|
|
48
|
+
store2[_locale2] = container[_locale2];
|
|
32
49
|
}
|
|
33
50
|
}
|
|
34
51
|
return store2;
|
|
35
52
|
}, [container]);
|
|
36
|
-
|
|
37
|
-
|
|
53
|
+
var _React$useState = React.useState(initStore), _React$useState2 = _slicedToArray(_React$useState, 2), store = _React$useState2[0], setStore = _React$useState2[1];
|
|
54
|
+
var lastLoadedLocaleRef = React.useRef(null);
|
|
38
55
|
if (store[locale]) lastLoadedLocaleRef.current = locale;
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
56
|
+
var fallbackMessages = React.useMemo(function() {
|
|
57
|
+
return Object.values(store)[0];
|
|
58
|
+
}, [store]);
|
|
59
|
+
var loadingLocaleRef = React.useRef(null);
|
|
60
|
+
React.useEffect(function() {
|
|
42
61
|
loadingLocaleRef.current = locale;
|
|
43
|
-
|
|
62
|
+
var asyncMessages = container[locale];
|
|
44
63
|
if (typeof asyncMessages === "function") {
|
|
45
|
-
asyncMessages().then((module)
|
|
64
|
+
asyncMessages().then(function(module) {
|
|
46
65
|
if (loadingLocaleRef.current !== locale) return;
|
|
47
|
-
|
|
48
|
-
if ("default" in module &&
|
|
49
|
-
setStore((store2)
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}).catch((err) => {
|
|
66
|
+
var messages = module;
|
|
67
|
+
if ("default" in module && _typeof(module["default"]) === "object") messages = module["default"];
|
|
68
|
+
setStore(function(store2) {
|
|
69
|
+
return _objectSpread(_objectSpread({}, store2), {}, _defineProperty({}, locale, messages));
|
|
70
|
+
});
|
|
71
|
+
})["catch"](function(err) {
|
|
54
72
|
console.error(err);
|
|
55
73
|
});
|
|
56
74
|
}
|
|
57
75
|
}, [container, locale]);
|
|
58
|
-
return store[locale]
|
|
76
|
+
return (_store$locale = store[locale]) !== null && _store$locale !== void 0 ? _store$locale : fallbackMessages;
|
|
59
77
|
};
|
|
60
|
-
const i18nEnhance = (container)
|
|
61
|
-
return (props)
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
} = props;
|
|
66
|
-
const getI18nText = useI18n(i18n, locale, container);
|
|
67
|
-
return {
|
|
68
|
-
...props,
|
|
78
|
+
const i18nEnhance = (function(container) {
|
|
79
|
+
return function(props) {
|
|
80
|
+
var i18n = props.i18n, locale = props.locale;
|
|
81
|
+
var getI18nText = useI18n(i18n, locale, container);
|
|
82
|
+
return _objectSpread(_objectSpread({}, props), {}, {
|
|
69
83
|
getI18nText
|
|
70
|
-
};
|
|
84
|
+
});
|
|
71
85
|
};
|
|
72
|
-
};
|
|
86
|
+
});
|
|
73
87
|
export {
|
|
74
88
|
i18nEnhance as default,
|
|
75
89
|
useAsyncI18nMessages
|
package/lib/esm/utils/logger.mjs
CHANGED
|
@@ -1,24 +1,32 @@
|
|
|
1
|
+
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
2
|
+
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
1
3
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
4
|
+
var DEV = process.env.NODE_ENV !== "production";
|
|
5
|
+
var Logger = /* @__PURE__ */ (function() {
|
|
6
|
+
function Logger2(logger2) {
|
|
7
|
+
_classCallCheck(this, Logger2);
|
|
5
8
|
_defineProperty(this, "logger", void 0);
|
|
6
9
|
this.logger = logger2 || {
|
|
7
|
-
warn: ()
|
|
10
|
+
warn: function warn() {
|
|
8
11
|
}
|
|
9
12
|
};
|
|
10
13
|
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
return _createClass(Logger2, [{
|
|
15
|
+
key: "console",
|
|
16
|
+
value: function console2(level, msg, component) {
|
|
17
|
+
this.logger[level](component ? "[".concat(component, "]: ").concat(msg) : msg);
|
|
18
|
+
}
|
|
19
|
+
}, {
|
|
20
|
+
key: "warn",
|
|
21
|
+
value: function warn(condition, msg, component) {
|
|
22
|
+
if (DEV) {
|
|
23
|
+
if (condition) {
|
|
24
|
+
this.console("warn", msg, component);
|
|
25
|
+
}
|
|
18
26
|
}
|
|
19
27
|
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
28
|
+
}]);
|
|
29
|
+
})();
|
|
22
30
|
const logger = new Logger(console);
|
|
23
31
|
export {
|
|
24
32
|
Logger,
|
package/lib/esm/utils/pick.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
function pick(obj, keys) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
var res = {};
|
|
3
|
+
var len = keys.length;
|
|
4
|
+
var idx = -1;
|
|
5
5
|
while (++idx < len) {
|
|
6
|
-
|
|
6
|
+
var key = keys[idx];
|
|
7
7
|
if (key in obj) {
|
|
8
8
|
res[key] = obj[key];
|
|
9
9
|
}
|
package/lib/esm/utils/ref.mjs
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
2
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
1
3
|
import React from "react";
|
|
2
4
|
function setRef(ref, value) {
|
|
3
5
|
if (typeof ref === "function") {
|
|
4
6
|
ref(value);
|
|
5
|
-
} else if (ref
|
|
7
|
+
} else if (ref !== null && ref !== void 0 && ref.hasOwnProperty("current")) {
|
|
6
8
|
ref["current"] = value;
|
|
7
9
|
}
|
|
8
10
|
}
|
|
@@ -11,41 +13,55 @@ function getRef(ref) {
|
|
|
11
13
|
return "current" in ref ? ref.current : ref;
|
|
12
14
|
}
|
|
13
15
|
function useCallbackRef(initialValue, callback) {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
16
|
+
var _React$useState = React.useState(function() {
|
|
17
|
+
return {
|
|
18
|
+
// value
|
|
19
|
+
value: initialValue,
|
|
20
|
+
// last callback
|
|
21
|
+
callback,
|
|
22
|
+
// "memoized" public interface
|
|
23
|
+
facade: {
|
|
24
|
+
get current() {
|
|
25
|
+
return ref.value;
|
|
26
|
+
},
|
|
27
|
+
set current(value) {
|
|
28
|
+
var last = ref.value;
|
|
29
|
+
if (last !== value) {
|
|
30
|
+
ref.value = value;
|
|
31
|
+
ref.callback(value, last);
|
|
32
|
+
}
|
|
29
33
|
}
|
|
30
34
|
}
|
|
31
|
-
}
|
|
32
|
-
}));
|
|
35
|
+
};
|
|
36
|
+
}), _React$useState2 = _slicedToArray(_React$useState, 1), ref = _React$useState2[0];
|
|
33
37
|
ref.callback = callback;
|
|
34
38
|
return ref.facade;
|
|
35
39
|
}
|
|
36
|
-
function useForkRef(
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
+
function useForkRef() {
|
|
41
|
+
for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
42
|
+
refs[_key] = arguments[_key];
|
|
43
|
+
}
|
|
44
|
+
return React.useCallback(function(refValue) {
|
|
45
|
+
var uniqueRefs = _toConsumableArray(new Set(refs));
|
|
46
|
+
uniqueRefs.forEach(function(ref) {
|
|
47
|
+
return setRef(ref, refValue);
|
|
48
|
+
});
|
|
40
49
|
}, refs);
|
|
41
50
|
}
|
|
42
|
-
function forkRef(
|
|
43
|
-
|
|
51
|
+
function forkRef() {
|
|
52
|
+
for (var _len2 = arguments.length, refs = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
53
|
+
refs[_key2] = arguments[_key2];
|
|
54
|
+
}
|
|
55
|
+
if (refs.every(function(ref) {
|
|
56
|
+
return ref == null;
|
|
57
|
+
})) {
|
|
44
58
|
return null;
|
|
45
59
|
}
|
|
46
|
-
return (refValue)
|
|
47
|
-
|
|
48
|
-
uniqueRefs.forEach((ref)
|
|
60
|
+
return function(refValue) {
|
|
61
|
+
var uniqueRefs = _toConsumableArray(new Set(refs));
|
|
62
|
+
uniqueRefs.forEach(function(ref) {
|
|
63
|
+
return setRef(ref, refValue);
|
|
64
|
+
});
|
|
49
65
|
};
|
|
50
66
|
}
|
|
51
67
|
export {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import canUseDOM from "../canUseDOM.mjs";
|
|
3
|
-
|
|
3
|
+
var useEnhancedEffect = canUseDOM() ? React.useLayoutEffect : React.useEffect;
|
|
4
4
|
export {
|
|
5
5
|
useEnhancedEffect as default
|
|
6
6
|
};
|
package/lib/index.js
CHANGED
|
@@ -1,96 +1,96 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
Object.defineProperty(exports, "CHILDREN_COMPONENT", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () {
|
|
9
|
+
get: function get() {
|
|
10
10
|
return _symbols.CHILDREN_COMPONENT;
|
|
11
11
|
}
|
|
12
12
|
});
|
|
13
13
|
Object.defineProperty(exports, "CONTEXT_COMPONENT", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () {
|
|
15
|
+
get: function get() {
|
|
16
16
|
return _symbols.CONTEXT_COMPONENT;
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "CORE_INSTANCE", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () {
|
|
21
|
+
get: function get() {
|
|
22
22
|
return _symbols.CORE_INSTANCE;
|
|
23
23
|
}
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "CREATE_COMPONENT", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () {
|
|
27
|
+
get: function get() {
|
|
28
28
|
return _symbols.CREATE_COMPONENT;
|
|
29
29
|
}
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "Component", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () {
|
|
33
|
+
get: function get() {
|
|
34
34
|
return _Component.Component;
|
|
35
35
|
}
|
|
36
36
|
});
|
|
37
37
|
Object.defineProperty(exports, "INHERITED_NAME", {
|
|
38
38
|
enumerable: true,
|
|
39
|
-
get: function () {
|
|
39
|
+
get: function get() {
|
|
40
40
|
return _symbols.INHERITED_NAME;
|
|
41
41
|
}
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "Intergalactic", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () {
|
|
45
|
+
get: function get() {
|
|
46
46
|
return _Component.Intergalactic;
|
|
47
47
|
}
|
|
48
48
|
});
|
|
49
49
|
Object.defineProperty(exports, "Root", {
|
|
50
50
|
enumerable: true,
|
|
51
|
-
get: function () {
|
|
51
|
+
get: function get() {
|
|
52
52
|
return _Component.Root;
|
|
53
53
|
}
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "assignProps", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () {
|
|
57
|
+
get: function get() {
|
|
58
58
|
return _coreFactory.assignProps;
|
|
59
59
|
}
|
|
60
60
|
});
|
|
61
61
|
Object.defineProperty(exports, "createBaseComponent", {
|
|
62
62
|
enumerable: true,
|
|
63
|
-
get: function () {
|
|
63
|
+
get: function get() {
|
|
64
64
|
return _coreFactory.createBaseComponent;
|
|
65
65
|
}
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "createComponent", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () {
|
|
69
|
+
get: function get() {
|
|
70
70
|
return _coreFactory.createComponent;
|
|
71
71
|
}
|
|
72
72
|
});
|
|
73
73
|
Object.defineProperty(exports, "lastInteraction", {
|
|
74
74
|
enumerable: true,
|
|
75
|
-
get: function () {
|
|
75
|
+
get: function get() {
|
|
76
76
|
return _LastInteractionType.lastInteraction;
|
|
77
77
|
}
|
|
78
78
|
});
|
|
79
79
|
Object.defineProperty(exports, "register", {
|
|
80
80
|
enumerable: true,
|
|
81
|
-
get: function () {
|
|
82
|
-
return _register
|
|
81
|
+
get: function get() {
|
|
82
|
+
return _register["default"];
|
|
83
83
|
}
|
|
84
84
|
});
|
|
85
85
|
Object.defineProperty(exports, "sstyled", {
|
|
86
86
|
enumerable: true,
|
|
87
|
-
get: function () {
|
|
87
|
+
get: function get() {
|
|
88
88
|
return _styled.sstyled;
|
|
89
89
|
}
|
|
90
90
|
});
|
|
91
91
|
Object.defineProperty(exports, "wrapIntergalacticComponent", {
|
|
92
92
|
enumerable: true,
|
|
93
|
-
get: function () {
|
|
93
|
+
get: function get() {
|
|
94
94
|
return _Component.wrapIntergalacticComponent;
|
|
95
95
|
}
|
|
96
96
|
});
|
package/lib/register.js
CHANGED
|
@@ -1,27 +1,34 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports
|
|
7
|
+
exports["default"] = exports.Register = void 0;
|
|
8
|
+
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
9
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
8
10
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
(0,
|
|
11
|
+
var Register = exports.Register = /*#__PURE__*/function () {
|
|
12
|
+
function Register() {
|
|
13
|
+
(0, _classCallCheck2["default"])(this, Register);
|
|
14
|
+
(0, _defineProperty2["default"])(this, "data", {});
|
|
12
15
|
}
|
|
13
|
-
|
|
14
|
-
|
|
16
|
+
return (0, _createClass2["default"])(Register, [{
|
|
17
|
+
key: "get",
|
|
18
|
+
value: function get(name, defaultValue) {
|
|
19
|
+
if (name in this.data) {
|
|
20
|
+
return this.data[name];
|
|
21
|
+
} else {
|
|
22
|
+
return this.set(name, defaultValue);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}, {
|
|
26
|
+
key: "set",
|
|
27
|
+
value: function set(name, value) {
|
|
28
|
+
this.data[name] = value;
|
|
15
29
|
return this.data[name];
|
|
16
|
-
} else {
|
|
17
|
-
return this.set(name, defaultValue);
|
|
18
30
|
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
return this.data[name];
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
exports.Register = Register;
|
|
26
|
-
var _default = exports.default = new Register();
|
|
31
|
+
}]);
|
|
32
|
+
}();
|
|
33
|
+
var _default = exports["default"] = new Register();
|
|
27
34
|
//# sourceMappingURL=register.js.map
|
package/lib/register.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"register.js","names":["Register","
|
|
1
|
+
{"version":3,"file":"register.js","names":["Register","exports","_classCallCheck2","_defineProperty2","_createClass2","key","value","get","name","defaultValue","data","set","_default"],"sources":["../src/register.tsx"],"sourcesContent":["class Register {\n data: any = {};\n\n get<D>(name: string, defaultValue?: D): D {\n if (name in this.data) {\n return this.data[name];\n } else {\n return this.set(name, defaultValue) as any;\n }\n }\n\n set<D>(name: string, value: D): D {\n this.data[name] = value;\n return this.data[name];\n }\n}\n\nexport { Register };\nexport default new Register();\n"],"mappings":";;;;;;;;;;IAAMA,QAAQ,GAAAC,OAAA,CAAAD,QAAA;EAAA,SAAAA,SAAA;IAAA,IAAAE,gBAAA,mBAAAF,QAAA;IAAA,IAAAG,gBAAA,2BACA,CAAC,CAAC;EAAA;EAAA,WAAAC,aAAA,aAAAJ,QAAA;IAAAK,GAAA;IAAAC,KAAA,EAEd,SAAAC,GAAGA,CAAIC,IAAY,EAAEC,YAAgB,EAAK;MACxC,IAAID,IAAI,IAAI,IAAI,CAACE,IAAI,EAAE;QACrB,OAAO,IAAI,CAACA,IAAI,CAACF,IAAI,CAAC;MACxB,CAAC,MAAM;QACL,OAAO,IAAI,CAACG,GAAG,CAACH,IAAI,EAAEC,YAAY,CAAC;MACrC;IACF;EAAC;IAAAJ,GAAA;IAAAC,KAAA,EAED,SAAAK,GAAGA,CAAIH,IAAY,EAAEF,KAAQ,EAAK;MAChC,IAAI,CAACI,IAAI,CAACF,IAAI,CAAC,GAAGF,KAAK;MACvB,OAAO,IAAI,CAACI,IAAI,CAACF,IAAI,CAAC;IACxB;EAAC;AAAA;AAAA,IAAAI,QAAA,GAAAX,OAAA,cAIY,IAAID,QAAQ,CAAC,CAAC","ignoreList":[]}
|
package/lib/register.mjs
CHANGED
|
@@ -1,20 +1,28 @@
|
|
|
1
|
+
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
2
|
+
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
1
3
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
+
var Register = /* @__PURE__ */ (function() {
|
|
5
|
+
function Register2() {
|
|
6
|
+
_classCallCheck(this, Register2);
|
|
4
7
|
_defineProperty(this, "data", {});
|
|
5
8
|
}
|
|
6
|
-
|
|
7
|
-
|
|
9
|
+
return _createClass(Register2, [{
|
|
10
|
+
key: "get",
|
|
11
|
+
value: function get(name, defaultValue) {
|
|
12
|
+
if (name in this.data) {
|
|
13
|
+
return this.data[name];
|
|
14
|
+
} else {
|
|
15
|
+
return this.set(name, defaultValue);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}, {
|
|
19
|
+
key: "set",
|
|
20
|
+
value: function set(name, value) {
|
|
21
|
+
this.data[name] = value;
|
|
8
22
|
return this.data[name];
|
|
9
|
-
} else {
|
|
10
|
-
return this.set(name, defaultValue);
|
|
11
23
|
}
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
this.data[name] = value;
|
|
15
|
-
return this.data[name];
|
|
16
|
-
}
|
|
17
|
-
}
|
|
24
|
+
}]);
|
|
25
|
+
})();
|
|
18
26
|
const register = new Register();
|
|
19
27
|
export {
|
|
20
28
|
Register,
|
package/lib/register.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"register.mjs","names":["Register","
|
|
1
|
+
{"version":3,"file":"register.mjs","names":["Register","_classCallCheck","_defineProperty","_createClass","key","value","get","name","defaultValue","data","set"],"sources":["../src/register.tsx"],"sourcesContent":["class Register {\n data: any = {};\n\n get<D>(name: string, defaultValue?: D): D {\n if (name in this.data) {\n return this.data[name];\n } else {\n return this.set(name, defaultValue) as any;\n }\n }\n\n set<D>(name: string, value: D): D {\n this.data[name] = value;\n return this.data[name];\n }\n}\n\nexport { Register };\nexport default new Register();\n"],"mappings":";;;IAAMA,QAAQ;EAAA,SAAAA,SAAA;IAAAC,eAAA,OAAAD,QAAA;IAAAE,eAAA,eACA,CAAC,CAAC;EAAA;EAAA,OAAAC,YAAA,CAAAH,QAAA;IAAAI,GAAA;IAAAC,KAAA,EAEd,SAAAC,GAAGA,CAAIC,IAAY,EAAEC,YAAgB,EAAK;MACxC,IAAID,IAAI,IAAI,IAAI,CAACE,IAAI,EAAE;QACrB,OAAO,IAAI,CAACA,IAAI,CAACF,IAAI,CAAC;MACxB,CAAC,MAAM;QACL,OAAO,IAAI,CAACG,GAAG,CAACH,IAAI,EAAEC,YAAY,CAAC;MACrC;IACF;EAAC;IAAAJ,GAAA;IAAAC,KAAA,EAED,SAAAK,GAAGA,CAAIH,IAAY,EAAEF,KAAQ,EAAK;MAChC,IAAI,CAACI,IAAI,CAACF,IAAI,CAAC,GAAGF,KAAK;MACvB,OAAO,IAAI,CAACI,IAAI,CAACF,IAAI,CAAC;IACxB;EAAC;AAAA;AAGH,SAASP,QAAQ;AACjB,eAAe,IAAIA,QAAQ,CAAC,CAAC","ignoreList":[]}
|
package/lib/styled/index.js
CHANGED
|
@@ -5,25 +5,25 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
Object.defineProperty(exports, "css", {
|
|
7
7
|
enumerable: true,
|
|
8
|
-
get: function () {
|
|
8
|
+
get: function get() {
|
|
9
9
|
return _reshadowCore.css;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "sstyled", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () {
|
|
14
|
+
get: function get() {
|
|
15
15
|
return _sstyled.sstyled;
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "styled", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function () {
|
|
20
|
+
get: function get() {
|
|
21
21
|
return _reshadowCore.styled;
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "use", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () {
|
|
26
|
+
get: function get() {
|
|
27
27
|
return _reshadowCore.use;
|
|
28
28
|
}
|
|
29
29
|
});
|