@tamagui/web 1.113.1 → 1.113.2
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/dist/esm/Tamagui.native.js +50 -41
- package/dist/esm/Tamagui.native.js.map +6 -1
- package/dist/esm/_withStableStyle.native.js +9 -11
- package/dist/esm/_withStableStyle.native.js.map +6 -1
- package/dist/esm/config.native.js +74 -75
- package/dist/esm/config.native.js.map +6 -1
- package/dist/esm/constants/accessibilityDirectMap.native.js +8 -6
- package/dist/esm/constants/accessibilityDirectMap.native.js.map +6 -1
- package/dist/esm/constants/constants.native.js +19 -17
- package/dist/esm/constants/constants.native.js.map +6 -1
- package/dist/esm/constants/isDevTools.native.js +10 -6
- package/dist/esm/constants/isDevTools.native.js.map +6 -1
- package/dist/esm/constants/webToNativeProps.native.js +162 -84
- package/dist/esm/constants/webToNativeProps.native.js.map +6 -1
- package/dist/esm/contexts/ComponentContext.native.js +5 -3
- package/dist/esm/contexts/ComponentContext.native.js.map +6 -1
- package/dist/esm/createComponent.native.js +300 -405
- package/dist/esm/createComponent.native.js.map +6 -1
- package/dist/esm/createFont.native.js +41 -24
- package/dist/esm/createFont.native.js.map +6 -1
- package/dist/esm/createShorthands.native.js +4 -2
- package/dist/esm/createShorthands.native.js.map +6 -1
- package/dist/esm/createTamagui.native.js +158 -177
- package/dist/esm/createTamagui.native.js.map +6 -1
- package/dist/esm/createTheme.native.js +5 -3
- package/dist/esm/createTheme.native.js.map +6 -1
- package/dist/esm/createTokens.native.js +5 -3
- package/dist/esm/createTokens.native.js.map +6 -1
- package/dist/esm/createVariable.native.js +35 -29
- package/dist/esm/createVariable.native.js.map +6 -1
- package/dist/esm/createVariables.native.js +29 -34
- package/dist/esm/createVariables.native.js.map +6 -1
- package/dist/esm/defaultComponentState.native.js +20 -18
- package/dist/esm/defaultComponentState.native.js.map +6 -1
- package/dist/esm/helpers/ThemeManager.native.js +101 -95
- package/dist/esm/helpers/ThemeManager.native.js.map +6 -1
- package/dist/esm/helpers/ThemeManagerContext.native.js +5 -3
- package/dist/esm/helpers/ThemeManagerContext.native.js.map +6 -1
- package/dist/esm/helpers/createMediaStyle.native.js +49 -64
- package/dist/esm/helpers/createMediaStyle.native.js.map +6 -1
- package/dist/esm/helpers/createShallowSetState.native.js +17 -9
- package/dist/esm/helpers/createShallowSetState.native.js.map +6 -1
- package/dist/esm/helpers/createStyledContext.native.js +25 -31
- package/dist/esm/helpers/createStyledContext.native.js.map +6 -1
- package/dist/esm/helpers/defaultOffset.native.js +4 -2
- package/dist/esm/helpers/defaultOffset.native.js.map +6 -1
- package/dist/esm/helpers/expandStyle.native.js +84 -39
- package/dist/esm/helpers/expandStyle.native.js.map +6 -1
- package/dist/esm/helpers/expandStyles.native.js +17 -15
- package/dist/esm/helpers/expandStyles.native.js.map +6 -1
- package/dist/esm/helpers/getExpandedShorthands.native.js +7 -4
- package/dist/esm/helpers/getExpandedShorthands.native.js.map +6 -1
- package/dist/esm/helpers/getFontLanguage.native.js +5 -3
- package/dist/esm/helpers/getFontLanguage.native.js.map +6 -1
- package/dist/esm/helpers/getGroupPropParts.native.js +6 -7
- package/dist/esm/helpers/getGroupPropParts.native.js.map +6 -1
- package/dist/esm/helpers/getSplitStyles.native.js +398 -436
- package/dist/esm/helpers/getSplitStyles.native.js.map +6 -1
- package/dist/esm/helpers/getStylesAtomic.native.js +8 -7
- package/dist/esm/helpers/getStylesAtomic.native.js.map +6 -1
- package/dist/esm/helpers/getThemeCSSRules.native.js +3 -1
- package/dist/esm/helpers/getThemeCSSRules.native.js.map +6 -1
- package/dist/esm/helpers/getVariantExtras.native.js +34 -33
- package/dist/esm/helpers/getVariantExtras.native.js.map +6 -1
- package/dist/esm/helpers/insertStyleRule.native.js +111 -123
- package/dist/esm/helpers/insertStyleRule.native.js.map +6 -1
- package/dist/esm/helpers/isActivePlatform.native.js +5 -4
- package/dist/esm/helpers/isActivePlatform.native.js.map +6 -1
- package/dist/esm/helpers/isObj.native.js +5 -3
- package/dist/esm/helpers/isObj.native.js.map +6 -1
- package/dist/esm/helpers/isTamaguiComponent.native.js +4 -2
- package/dist/esm/helpers/isTamaguiComponent.native.js.map +6 -1
- package/dist/esm/helpers/isTamaguiElement.native.js +7 -5
- package/dist/esm/helpers/isTamaguiElement.native.js.map +6 -1
- package/dist/esm/helpers/log.native.js +7 -4
- package/dist/esm/helpers/log.native.js.map +6 -1
- package/dist/esm/helpers/matchMedia.native.js +14 -9
- package/dist/esm/helpers/matchMedia.native.js.map +6 -1
- package/dist/esm/helpers/mergeProps.native.js +13 -9
- package/dist/esm/helpers/mergeProps.native.js.map +6 -1
- package/dist/esm/helpers/mergeVariants.native.js +7 -7
- package/dist/esm/helpers/mergeVariants.native.js.map +6 -1
- package/dist/esm/helpers/normalizeColor.native.js +24 -20
- package/dist/esm/helpers/normalizeColor.native.js.map +6 -1
- package/dist/esm/helpers/normalizeShadow.native.js +7 -15
- package/dist/esm/helpers/normalizeShadow.native.js.map +6 -1
- package/dist/esm/helpers/normalizeStyle.native.js +12 -13
- package/dist/esm/helpers/normalizeStyle.native.js.map +6 -1
- package/dist/esm/helpers/normalizeStylePropKeys.native.js +3 -1
- package/dist/esm/helpers/normalizeStylePropKeys.native.js.map +6 -1
- package/dist/esm/helpers/normalizeValueWithProperty.native.js +12 -9
- package/dist/esm/helpers/normalizeValueWithProperty.native.js.map +6 -1
- package/dist/esm/helpers/objectIdentityKey.native.js +11 -6
- package/dist/esm/helpers/objectIdentityKey.native.js.map +6 -1
- package/dist/esm/helpers/propMapper.native.js +206 -227
- package/dist/esm/helpers/propMapper.native.js.map +6 -1
- package/dist/esm/helpers/proxyThemeToParents.native.js +27 -39
- package/dist/esm/helpers/proxyThemeToParents.native.js.map +6 -1
- package/dist/esm/helpers/proxyThemeVariables.native.js +5 -3
- package/dist/esm/helpers/proxyThemeVariables.native.js.map +6 -1
- package/dist/esm/helpers/pseudoDescriptors.native.js +46 -44
- package/dist/esm/helpers/pseudoDescriptors.native.js.map +6 -1
- package/dist/esm/helpers/registerCSSVariable.native.js +13 -11
- package/dist/esm/helpers/registerCSSVariable.native.js.map +6 -1
- package/dist/esm/helpers/setElementProps.native.js +6 -3
- package/dist/esm/helpers/setElementProps.native.js.map +6 -1
- package/dist/esm/helpers/skipProps.native.js +5 -3
- package/dist/esm/helpers/skipProps.native.js.map +6 -1
- package/dist/esm/helpers/sortString.native.js +5 -3
- package/dist/esm/helpers/sortString.native.js.map +6 -1
- package/dist/esm/helpers/subscribeToContextGroup.native.js +18 -27
- package/dist/esm/helpers/subscribeToContextGroup.native.js.map +6 -1
- package/dist/esm/helpers/themeable.native.js +24 -31
- package/dist/esm/helpers/themeable.native.js.map +6 -1
- package/dist/esm/helpers/themes.native.js +5 -3
- package/dist/esm/helpers/themes.native.js.map +6 -1
- package/dist/esm/helpers/timer.native.js +5 -3
- package/dist/esm/helpers/timer.native.js.map +6 -1
- package/dist/esm/helpers/transformsToString.native.js +13 -11
- package/dist/esm/helpers/transformsToString.native.js.map +6 -1
- package/dist/esm/helpers/webPropsToSkip.native.js +3 -1
- package/dist/esm/helpers/webPropsToSkip.native.js.map +6 -1
- package/dist/esm/hooks/useComponentState.native.js +32 -66
- package/dist/esm/hooks/useComponentState.native.js.map +6 -1
- package/dist/esm/hooks/useConfiguration.native.js +8 -14
- package/dist/esm/hooks/useConfiguration.native.js.map +6 -1
- package/dist/esm/hooks/useDidHydrateOnce.native.js +15 -14
- package/dist/esm/hooks/useDidHydrateOnce.native.js.map +6 -1
- package/dist/esm/hooks/useDisableSSR.native.js +5 -3
- package/dist/esm/hooks/useDisableSSR.native.js.map +6 -1
- package/dist/esm/hooks/useIsTouchDevice.native.js +5 -3
- package/dist/esm/hooks/useIsTouchDevice.native.js.map +6 -1
- package/dist/esm/hooks/useMedia.native.js +104 -106
- package/dist/esm/hooks/useMedia.native.js.map +6 -1
- package/dist/esm/hooks/useProps.native.js +42 -41
- package/dist/esm/hooks/useProps.native.js.map +6 -1
- package/dist/esm/hooks/useTheme.native.js +231 -253
- package/dist/esm/hooks/useTheme.native.js.map +6 -1
- package/dist/esm/hooks/useThemeName.native.js +16 -12
- package/dist/esm/hooks/useThemeName.native.js.map +6 -1
- package/dist/esm/index.native.js +78 -61
- package/dist/esm/index.native.js.map +6 -1
- package/dist/esm/inject-styles.native.js +12 -15
- package/dist/esm/inject-styles.native.js.map +6 -1
- package/dist/esm/insertFont.native.js +32 -24
- package/dist/esm/insertFont.native.js.map +6 -1
- package/dist/esm/interfaces/CSSColorNames.native.js +1 -2
- package/dist/esm/interfaces/CSSColorNames.native.js.map +6 -1
- package/dist/esm/interfaces/GetRef.native.js +1 -2
- package/dist/esm/interfaces/GetRef.native.js.map +6 -1
- package/dist/esm/interfaces/KeyTypes.native.js +1 -2
- package/dist/esm/interfaces/KeyTypes.native.js.map +6 -1
- package/dist/esm/interfaces/RNExclusiveTypes.native.js +1 -2
- package/dist/esm/interfaces/RNExclusiveTypes.native.js.map +6 -1
- package/dist/esm/interfaces/Role.native.js +1 -2
- package/dist/esm/interfaces/Role.native.js.map +6 -1
- package/dist/esm/interfaces/TamaguiComponentEvents.native.js +1 -2
- package/dist/esm/interfaces/TamaguiComponentEvents.native.js.map +6 -1
- package/dist/esm/interfaces/TamaguiComponentPropsBaseBase.native.js +1 -2
- package/dist/esm/interfaces/TamaguiComponentPropsBaseBase.native.js.map +6 -1
- package/dist/esm/interfaces/TamaguiComponentState.native.js +1 -2
- package/dist/esm/interfaces/TamaguiComponentState.native.js.map +6 -1
- package/dist/esm/interfaces/WebOnlyPressEvents.native.js +1 -2
- package/dist/esm/interfaces/WebOnlyPressEvents.native.js.map +6 -1
- package/dist/esm/setupHooks.native.js +5 -2
- package/dist/esm/setupHooks.native.js.map +6 -1
- package/dist/esm/setupReactNative.native.js +13 -5
- package/dist/esm/setupReactNative.native.js.map +6 -1
- package/dist/esm/styled.native.js +50 -66
- package/dist/esm/styled.native.js.map +6 -1
- package/dist/esm/type-utils.native.js +1 -2
- package/dist/esm/type-utils.native.js.map +6 -1
- package/dist/esm/types.native.js +3 -3
- package/dist/esm/types.native.js.map +6 -1
- package/dist/esm/views/Configuration.native.js +7 -5
- package/dist/esm/views/Configuration.native.js.map +6 -1
- package/dist/esm/views/FontLanguage.native.js +11 -11
- package/dist/esm/views/FontLanguage.native.js.map +6 -1
- package/dist/esm/views/FontLanguage.types.native.js +1 -2
- package/dist/esm/views/FontLanguage.types.native.js.map +6 -1
- package/dist/esm/views/Slot.native.js +31 -33
- package/dist/esm/views/Slot.native.js.map +6 -1
- package/dist/esm/views/Stack.native.js +6 -4
- package/dist/esm/views/Stack.native.js.map +6 -1
- package/dist/esm/views/TamaguiProvider.native.js +39 -40
- package/dist/esm/views/TamaguiProvider.native.js.map +6 -1
- package/dist/esm/views/Text.native.js +30 -27
- package/dist/esm/views/Text.native.js.map +6 -1
- package/dist/esm/views/Theme.native.js +54 -76
- package/dist/esm/views/Theme.native.js.map +6 -1
- package/dist/esm/views/ThemeDebug.native.js +4 -6
- package/dist/esm/views/ThemeDebug.native.js.map +6 -1
- package/dist/esm/views/ThemeProvider.native.js +16 -12
- package/dist/esm/views/ThemeProvider.native.js.map +6 -1
- package/dist/esm/views/View.native.js +6 -4
- package/dist/esm/views/View.native.js.map +6 -1
- package/package.json +11 -11
|
@@ -1,18 +1,10 @@
|
|
|
1
|
-
import { getTokenObject } from "../config
|
|
1
|
+
import { getTokenObject } from "../config";
|
|
2
2
|
var themesRaw = {};
|
|
3
3
|
function proxyThemesToParents(dedupedThemes) {
|
|
4
|
-
var _iteratorNormalCompletion = !0,
|
|
5
|
-
_didIteratorError = !1,
|
|
6
|
-
_iteratorError = void 0;
|
|
4
|
+
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
7
5
|
try {
|
|
8
6
|
for (var _iterator = dedupedThemes[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
|
|
9
|
-
var {
|
|
10
|
-
names,
|
|
11
|
-
theme
|
|
12
|
-
} = _step.value,
|
|
13
|
-
_iteratorNormalCompletion1 = !0,
|
|
14
|
-
_didIteratorError1 = !1,
|
|
15
|
-
_iteratorError1 = void 0;
|
|
7
|
+
var { names, theme } = _step.value, _iteratorNormalCompletion1 = !0, _didIteratorError1 = !1, _iteratorError1 = void 0;
|
|
16
8
|
try {
|
|
17
9
|
for (var _iterator1 = names[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = !0) {
|
|
18
10
|
var name = _step1.value;
|
|
@@ -24,7 +16,8 @@ function proxyThemesToParents(dedupedThemes) {
|
|
|
24
16
|
try {
|
|
25
17
|
!_iteratorNormalCompletion1 && _iterator1.return != null && _iterator1.return();
|
|
26
18
|
} finally {
|
|
27
|
-
if (_didIteratorError1)
|
|
19
|
+
if (_didIteratorError1)
|
|
20
|
+
throw _iteratorError1;
|
|
28
21
|
}
|
|
29
22
|
}
|
|
30
23
|
}
|
|
@@ -34,26 +27,17 @@ function proxyThemesToParents(dedupedThemes) {
|
|
|
34
27
|
try {
|
|
35
28
|
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
36
29
|
} finally {
|
|
37
|
-
if (_didIteratorError)
|
|
30
|
+
if (_didIteratorError)
|
|
31
|
+
throw _iteratorError;
|
|
38
32
|
}
|
|
39
33
|
}
|
|
40
|
-
var themes = {},
|
|
41
|
-
_iteratorNormalCompletion2 = !0,
|
|
42
|
-
_didIteratorError2 = !1,
|
|
43
|
-
_iteratorError2 = void 0;
|
|
34
|
+
var themes = {}, _iteratorNormalCompletion2 = !0, _didIteratorError2 = !1, _iteratorError2 = void 0;
|
|
44
35
|
try {
|
|
45
36
|
for (var _iterator2 = dedupedThemes[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = !0) {
|
|
46
|
-
var {
|
|
47
|
-
names: names1,
|
|
48
|
-
theme: theme1
|
|
49
|
-
} = _step2.value,
|
|
50
|
-
_iteratorNormalCompletion3 = !0,
|
|
51
|
-
_didIteratorError3 = !1,
|
|
52
|
-
_iteratorError3 = void 0;
|
|
37
|
+
var { names: names1, theme: theme1 } = _step2.value, _iteratorNormalCompletion3 = !0, _didIteratorError3 = !1, _iteratorError3 = void 0;
|
|
53
38
|
try {
|
|
54
39
|
for (var _iterator3 = names1[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = !0) {
|
|
55
|
-
var themeName = _step3.value,
|
|
56
|
-
proxiedTheme = proxyThemeToParents(themeName, theme1);
|
|
40
|
+
var themeName = _step3.value, proxiedTheme = proxyThemeToParents(themeName, theme1);
|
|
57
41
|
themes[themeName] = proxiedTheme;
|
|
58
42
|
}
|
|
59
43
|
} catch (err) {
|
|
@@ -62,7 +46,8 @@ function proxyThemesToParents(dedupedThemes) {
|
|
|
62
46
|
try {
|
|
63
47
|
!_iteratorNormalCompletion3 && _iterator3.return != null && _iterator3.return();
|
|
64
48
|
} finally {
|
|
65
|
-
if (_didIteratorError3)
|
|
49
|
+
if (_didIteratorError3)
|
|
50
|
+
throw _iteratorError3;
|
|
66
51
|
}
|
|
67
52
|
}
|
|
68
53
|
}
|
|
@@ -72,30 +57,33 @@ function proxyThemesToParents(dedupedThemes) {
|
|
|
72
57
|
try {
|
|
73
58
|
!_iteratorNormalCompletion2 && _iterator2.return != null && _iterator2.return();
|
|
74
59
|
} finally {
|
|
75
|
-
if (_didIteratorError2)
|
|
60
|
+
if (_didIteratorError2)
|
|
61
|
+
throw _iteratorError2;
|
|
76
62
|
}
|
|
77
63
|
}
|
|
78
64
|
return themes;
|
|
79
65
|
}
|
|
80
66
|
function proxyThemeToParents(themeName, theme) {
|
|
81
|
-
var cur = [],
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
}),
|
|
85
|
-
numParents = parents.length;
|
|
67
|
+
var cur = [], parents = themeName.split("_").slice(0, -1).map(function(part) {
|
|
68
|
+
return cur.push(part), cur.join("_");
|
|
69
|
+
}), numParents = parents.length;
|
|
86
70
|
return new Proxy(theme, {
|
|
87
71
|
get(target, key) {
|
|
88
|
-
if (!key ||
|
|
89
|
-
// dont ask me, idk why but on hermes you can see that useTheme()[undefined] passes in STRING undefined to proxy
|
|
72
|
+
if (!key || // dont ask me, idk why but on hermes you can see that useTheme()[undefined] passes in STRING undefined to proxy
|
|
90
73
|
// if someone is crazy enough to use "undefined" as a theme key then this not working is on them
|
|
91
|
-
key == "undefined" || Reflect.has(target, key))
|
|
74
|
+
key == "undefined" || Reflect.has(target, key))
|
|
75
|
+
return Reflect.get(target, key);
|
|
92
76
|
for (var i = numParents - 1; i >= 0; i--) {
|
|
93
77
|
var parent = themesRaw[parents[i]];
|
|
94
|
-
if (parent && Reflect.has(parent, key))
|
|
78
|
+
if (parent && Reflect.has(parent, key))
|
|
79
|
+
return Reflect.get(parent, key);
|
|
95
80
|
}
|
|
96
81
|
return getTokenObject(key);
|
|
97
82
|
}
|
|
98
83
|
});
|
|
99
84
|
}
|
|
100
|
-
export {
|
|
101
|
-
|
|
85
|
+
export {
|
|
86
|
+
proxyThemeToParents,
|
|
87
|
+
proxyThemesToParents
|
|
88
|
+
};
|
|
89
|
+
//# sourceMappingURL=proxyThemeToParents.js.map
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/helpers/Users/n8/tamagui/code/core/web/src/helpers/proxyThemeToParents.ts"],
|
|
4
|
+
"mappings": "AAAA,SAASA,sBAAsB;AAG/B,IAAMC,YAAyC,CAAC;AAIzC,SAASC,qBACdC,eAA4B;MAGvB,4BAAA,IAAA,oBAAA,IAAA,iBAAA;;AAAL,aAAK,YAA0BA,cAAAA,OAAAA,QAAAA,EAAAA,GAA1B,OAAA,EAAA,6BAAA,QAAA,UAAA,KAAA,GAAA,OAAA,4BAAA,IAAyC;AAAzC,UAAM,EAAEC,OAAOC,MAAK,IAApB,MAAA,OACE,6BAAA,IAAA,qBAAA,IAAA,kBAAA;;AAAL,iBAAK,aAAcD,MAAAA,OAAAA,QAAAA,EAAAA,GAAd,QAAA,EAAA,8BAAA,SAAA,WAAA,KAAA,GAAA,OAAA,6BAAA,IAAqB;AAArB,cAAME,OAAN,OAAA;AACHL,oBAAUK,IAAAA,IAAQD;QACpB;;AAFK,6BAAA,IAAA,kBAAA;;;WAAA,8BAAA,WAAA,UAAA,QAAA,WAAA,OAAA;;cAAA;kBAAA;;;IAGP;;AAJK,wBAAA,IAAA,iBAAA;;;OAAA,6BAAA,UAAA,UAAA,QAAA,UAAA,OAAA;;UAAA;cAAA;;;AAML,MAAME,SAAsC,CAAC,GAMxC,6BAAA,IAAA,qBAAA,IAAA,kBAAA;;AAAL,aAAK,aAA0BJ,cAAAA,OAAAA,QAAAA,EAAAA,GAA1B,QAAA,EAAA,8BAAA,SAAA,WAAA,KAAA,GAAA,OAAA,6BAAA,IAAyC;AAAzC,UAAM,EAAEC,OAAAA,QAAOC,OAAAA,OAAK,IAApB,OAAA,OACE,6BAAA,IAAA,qBAAA,IAAA,kBAAA;;AAAL,iBAAK,aAAmBD,OAAAA,OAAAA,QAAAA,EAAAA,GAAnB,QAAA,EAAA,8BAAA,SAAA,WAAA,KAAA,GAAA,OAAA,6BAAA,IAA0B;AAA1B,cAAMI,YAAN,OAAA,OACGC,eAAeC,oBAAoBF,WAAWH,MAAAA;AACpDE,iBAAOC,SAAAA,IAAaC;QACtB;;AAHK,6BAAA,IAAA,kBAAA;;;WAAA,8BAAA,WAAA,UAAA,QAAA,WAAA,OAAA;;cAAA;kBAAA;;;IAIP;;AALK,yBAAA,IAAA,kBAAA;;;OAAA,8BAAA,WAAA,UAAA,QAAA,WAAA,OAAA;;UAAA;cAAA;;;AAOL,SAAOF;AACT;AAEO,SAASG,oBAAoBF,WAAmBH,OAAkB;AACvE,MAAMM,MAAgB,CAAA,GAIhBC,UAAUJ,UACbK,MAAM,GAAA,EACNC,MAAM,GAAG,EAAC,EACVC,IAAI,SAACC,MAAAA;AACJL,eAAIM,KAAKD,IAAAA,GACFL,IAAIO,KAAK,GAAA;EAClB,CAAA,GAEIC,aAAaP,QAAQQ;AAG3B,SAAO,IAAIC,MAAMhB,OAAO;IACtBiB,IAAIC,QAAQC,KAAG;AACb,UACE,CAACA;;MAGDA,OAAO,eACPC,QAAQC,IAAIH,QAAQC,GAAAA;AAEpB,eAAOC,QAAQH,IAAIC,QAAQC,GAAAA;AAG7B,eAASG,IAAIR,aAAa,GAAGQ,KAAK,GAAGA,KAAK;AACxC,YAAMC,SAAS3B,UAAUW,QAAQe,CAAAA,CAAE;AACnC,YAAIC,UAAUH,QAAQC,IAAIE,QAAQJ,GAAAA;AAChC,iBAAOC,QAAQH,IAAIM,QAAQJ,GAAAA;MAE/B;AACA,aAAOxB,eAAewB,GAAAA;IACxB;EACF,CAAA;AACF;",
|
|
5
|
+
"names": ["getTokenObject", "themesRaw", "proxyThemesToParents", "dedupedThemes", "names", "theme", "name", "themes", "themeName", "proxiedTheme", "proxyThemeToParents", "cur", "parents", "split", "slice", "map", "part", "push", "join", "numParents", "length", "Proxy", "get", "target", "key", "Reflect", "has", "i", "parent"]
|
|
6
|
+
}
|
|
@@ -8,8 +8,10 @@ function proxyThemeVariables(obj) {
|
|
|
8
8
|
}
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
|
-
var removeStarting$ = function
|
|
11
|
+
var removeStarting$ = function(str) {
|
|
12
12
|
return typeof str == "string" && str[0] === "$" ? str.slice(1) : str;
|
|
13
13
|
};
|
|
14
|
-
export {
|
|
15
|
-
|
|
14
|
+
export {
|
|
15
|
+
proxyThemeVariables
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=proxyThemeVariables.js.map
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/helpers/Users/n8/tamagui/code/core/web/src/helpers/proxyThemeVariables.tsx"],
|
|
4
|
+
"mappings": "AAAO,SAASA,oBAAsCC,KAAM;AAC1D,SAAO,IAAIC,MAASD,OAAO,CAAC,GAAG;IAC7BE,IAAIC,QAAQC,KAAG;AACb,aAAOC,QAAQH,IAAIC,QAAQG,gBAAgBF,GAAAA,CAAAA;IAC7C;IACAG,IAAIJ,QAAQC,KAAG;AACb,aAAOC,QAAQE,IAAIJ,QAAQG,gBAAgBF,GAAAA,CAAAA;IAC7C;EACF,CAAA;AACF;AAEA,IAAME,kBAAkB,SAACE,KAAAA;SACvB,OAAOA,OAAQ,YAAYA,IAAI,CAAA,MAAO,MAAMA,IAAIC,MAAM,CAAA,IAAKD;;",
|
|
5
|
+
"names": ["proxyThemeVariables", "obj", "Proxy", "has", "target", "key", "Reflect", "removeStarting$", "get", "str", "slice"]
|
|
6
|
+
}
|
|
@@ -1,47 +1,49 @@
|
|
|
1
1
|
var pseudoDescriptorsBase = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
},
|
|
7
|
-
pressStyle: {
|
|
8
|
-
name: "active",
|
|
9
|
-
stateKey: "press",
|
|
10
|
-
priority: 2
|
|
11
|
-
},
|
|
12
|
-
focusVisibleStyle: {
|
|
13
|
-
name: "focus-visible",
|
|
14
|
-
priority: 3,
|
|
15
|
-
stateKey: "focusVisible"
|
|
16
|
-
},
|
|
17
|
-
focusStyle: {
|
|
18
|
-
name: "focus",
|
|
19
|
-
priority: 3
|
|
20
|
-
},
|
|
21
|
-
disabledStyle: {
|
|
22
|
-
name: "disabled",
|
|
23
|
-
priority: 4,
|
|
24
|
-
stateKey: "disabled"
|
|
25
|
-
}
|
|
2
|
+
// order of keys here important! in priority order
|
|
3
|
+
hoverStyle: {
|
|
4
|
+
name: "hover",
|
|
5
|
+
priority: 1
|
|
26
6
|
},
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
focusVisible: 3,
|
|
32
|
-
disabled: 4
|
|
7
|
+
pressStyle: {
|
|
8
|
+
name: "active",
|
|
9
|
+
stateKey: "press",
|
|
10
|
+
priority: 2
|
|
33
11
|
},
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
12
|
+
focusVisibleStyle: {
|
|
13
|
+
name: "focus-visible",
|
|
14
|
+
priority: 3,
|
|
15
|
+
stateKey: "focusVisible"
|
|
16
|
+
},
|
|
17
|
+
focusStyle: {
|
|
18
|
+
name: "focus",
|
|
19
|
+
priority: 3
|
|
20
|
+
},
|
|
21
|
+
disabledStyle: {
|
|
22
|
+
name: "disabled",
|
|
23
|
+
priority: 4,
|
|
24
|
+
stateKey: "disabled"
|
|
25
|
+
}
|
|
26
|
+
}, pseudoPriorities = {
|
|
27
|
+
hover: 1,
|
|
28
|
+
press: 2,
|
|
29
|
+
focus: 3,
|
|
30
|
+
focusVisible: 3,
|
|
31
|
+
disabled: 4
|
|
32
|
+
}, pseudoDescriptors = {
|
|
33
|
+
...pseudoDescriptorsBase,
|
|
34
|
+
enterStyle: {
|
|
35
|
+
name: "enter",
|
|
36
|
+
selector: ".t_unmounted",
|
|
37
|
+
priority: 4
|
|
38
|
+
},
|
|
39
|
+
exitStyle: {
|
|
40
|
+
name: "exit",
|
|
41
|
+
priority: 5
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
export {
|
|
45
|
+
pseudoDescriptors,
|
|
46
|
+
pseudoDescriptorsBase,
|
|
47
|
+
pseudoPriorities
|
|
48
|
+
};
|
|
49
|
+
//# sourceMappingURL=pseudoDescriptors.js.map
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/helpers/Users/n8/tamagui/code/core/web/src/helpers/pseudoDescriptors.ts"],
|
|
4
|
+
"mappings": "AAEO,IAAMA,wBAAwB;;EAEnCC,YAAY;IACVC,MAAM;IACNC,UAAU;EACZ;EACAC,YAAY;IACVF,MAAM;IACNG,UAAU;IACVF,UAAU;EACZ;EACAG,mBAAmB;IACjBJ,MAAM;IACNC,UAAU;IACVE,UAAU;EACZ;EACAE,YAAY;IACVL,MAAM;IACNC,UAAU;EACZ;EACAK,eAAe;IACbN,MAAM;IACNC,UAAU;IACVE,UAAU;EACZ;AACF,GAEaI,mBAAmB;EAC9BC,OAAO;EACPC,OAAO;EACPC,OAAO;EACPC,cAAc;EACdC,UAAU;AACZ,GAEaC,oBAQT;EACF,GAAGf;EACHgB,YAAY;IACVd,MAAM;IACNe,UAAU;IACVd,UAAU;EACZ;EACAe,WAAW;IACThB,MAAM;IACNC,UAAU;EACZ;AACF;",
|
|
5
|
+
"names": ["pseudoDescriptorsBase", "hoverStyle", "name", "priority", "pressStyle", "stateKey", "focusVisibleStyle", "focusStyle", "disabledStyle", "pseudoPriorities", "hover", "press", "focus", "focusVisible", "disabled", "pseudoDescriptors", "enterStyle", "selector", "exitStyle"]
|
|
6
|
+
}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import { createCSSVariable, getVariableValue } from "../createVariable
|
|
2
|
-
var registerCSSVariable = function
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { createCSSVariable, getVariableValue } from "../createVariable";
|
|
2
|
+
var registerCSSVariable = function(v) {
|
|
3
|
+
tokensValueToVariable.set(getVariableValue(v), v);
|
|
4
|
+
}, variableToCSS = function(v) {
|
|
5
|
+
var unitless = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
6
|
+
return `--${process.env.TAMAGUI_CSS_VARIABLE_PREFIX || ""}${createCSSVariable(v.name, !1)}:${!unitless && typeof v.val == "number" ? `${v.val}px` : v.val}`;
|
|
7
|
+
}, tokensValueToVariable = /* @__PURE__ */ new Map();
|
|
8
|
+
export {
|
|
9
|
+
registerCSSVariable,
|
|
10
|
+
tokensValueToVariable,
|
|
11
|
+
variableToCSS
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=registerCSSVariable.js.map
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/helpers/Users/n8/tamagui/code/core/web/src/helpers/registerCSSVariable.ts"],
|
|
4
|
+
"mappings": "AACA,SAASA,mBAAmBC,wBAAwB;AAG7C,IAAMC,sBAAsB,SAACC,GAAAA;AAClCC,wBAAsBC,IAAIJ,iBAAiBE,CAAAA,GAAIA,CAAAA;AACjD,GAEaG,gBAAgB,SAACH,GAAAA;MAAaI,WAAAA,UAAAA,SAAAA,KAAAA,UAAAA,CAAAA,MAAAA,SAAAA,UAAAA,CAAAA,IAAW;AACpD,SAAO,KAAKC,QAAQC,IAAIC,+BAA+B,EAAA,GAAKV,kBAC1DG,EAAEQ,MACF,EAAA,CAAA,IACG,CAACJ,YAAY,OAAOJ,EAAES,OAAQ,WAAW,GAAGT,EAAES,GAAG,OAAOT,EAAES,GAAG;AACpE,GAEaR,wBAAwB,oBAAIS,IAAAA;",
|
|
5
|
+
"names": ["createCSSVariable", "getVariableValue", "registerCSSVariable", "v", "tokensValueToVariable", "set", "variableToCSS", "unitless", "process", "env", "TAMAGUI_CSS_VARIABLE_PREFIX", "name", "val", "Map"]
|
|
6
|
+
}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
function setElementProps(element) {
|
|
2
|
-
element && !element.getBoundingClientRect && (element.getBoundingClientRect = function
|
|
3
|
-
if (element.unstable_getBoundingClientRect != null)
|
|
2
|
+
element && !element.getBoundingClientRect && (element.getBoundingClientRect = function() {
|
|
3
|
+
if (element.unstable_getBoundingClientRect != null)
|
|
4
|
+
return element.unstable_getBoundingClientRect();
|
|
4
5
|
});
|
|
5
6
|
}
|
|
6
|
-
export {
|
|
7
|
+
export {
|
|
8
|
+
setElementProps
|
|
9
|
+
};
|
|
7
10
|
//# sourceMappingURL=setElementProps.native.js.map
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/helpers/Users/n8/tamagui/code/core/web/src/helpers/setElementProps.native.tsx"],
|
|
4
|
+
"mappings": "AAAO,SAASA,gBAAgBC,SAAO;AACrC,EAAIA,WAAW,CAACA,QAAQC,0BACtBD,QAAQC,wBAAwB,WAAA;AAC9B,QAAID,QAAQE,kCAAkC;AAC5C,aAAOF,QAAQE,+BAA8B;EAEjD;AAEJ;",
|
|
5
|
+
"names": ["setElementProps", "element", "getBoundingClientRect", "unstable_getBoundingClientRect"]
|
|
6
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { webPropsToSkip } from "./webPropsToSkip
|
|
1
|
+
import { webPropsToSkip } from "./webPropsToSkip";
|
|
2
2
|
var skipProps = {
|
|
3
3
|
untilMeasured: 1,
|
|
4
4
|
animation: 1,
|
|
@@ -17,5 +17,7 @@ var skipProps = {
|
|
|
17
17
|
};
|
|
18
18
|
process.env.NODE_ENV === "test" && (skipProps["data-test-renders"] = 1);
|
|
19
19
|
Object.assign(skipProps, webPropsToSkip);
|
|
20
|
-
export {
|
|
21
|
-
|
|
20
|
+
export {
|
|
21
|
+
skipProps
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=skipProps.js.map
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/helpers/Users/n8/tamagui/code/core/web/src/helpers/skipProps.ts"],
|
|
4
|
+
"mappings": "AAAA,SAASA,sBAAsB;AAKxB,IAAMC,YAAY;EACvBC,eAAe;EACfC,WAAW;EACXC,OAAO;EACPC,aAAa;EACbC,kBAAkB;EAClBC,OAAO;EACPC,eAAe;EACfC,qBAAqB;EACrBC,KAAK;EACLC,OAAO;;EACPC,OAAO;EACPC,cAAc;EACdC,iBAAiB;AACnB;AAEIC,QAAQC,IAAIC,aAAa,WAC3BhB,UAAU,mBAAA,IAAuB;AAKjCiB,OAAOC,OAAOlB,WAAWD,cAAAA;",
|
|
5
|
+
"names": ["webPropsToSkip", "skipProps", "untilMeasured", "animation", "space", "animateOnly", "disableClassName", "debug", "componentName", "disableOptimization", "tag", "style", "group", "themeInverse", "animatePresence", "process", "env", "NODE_ENV", "Object", "assign"]
|
|
6
|
+
}
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/helpers/Users/n8/tamagui/code/core/web/src/helpers/sortString.ts"],
|
|
4
|
+
"mappings": "AAAO,IAAMA,aAAa,SAACC,GAAWC,GAAAA;SAAeD,IAAIC,IAAI,KAAKD,IAAIC,IAAI,IAAI;;",
|
|
5
|
+
"names": ["sortString", "a", "b"]
|
|
6
|
+
}
|
|
@@ -1,29 +1,18 @@
|
|
|
1
|
-
import { mergeIfNotShallowEqual } from "./createShallowSetState
|
|
2
|
-
import { getMediaState } from "../hooks/useMedia
|
|
3
|
-
var subscribeToContextGroup = function
|
|
4
|
-
var {
|
|
5
|
-
disabled = !1,
|
|
6
|
-
setStateShallow,
|
|
7
|
-
pseudoGroups,
|
|
8
|
-
mediaGroups,
|
|
9
|
-
componentContext,
|
|
10
|
-
state
|
|
11
|
-
} = param;
|
|
1
|
+
import { mergeIfNotShallowEqual } from "./createShallowSetState";
|
|
2
|
+
import { getMediaState } from "../hooks/useMedia";
|
|
3
|
+
var subscribeToContextGroup = function(param) {
|
|
4
|
+
var { disabled = !1, setStateShallow, pseudoGroups, mediaGroups, componentContext, state } = param;
|
|
12
5
|
if (pseudoGroups || mediaGroups) {
|
|
13
|
-
var _componentContext_groups_subscribe,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
} = param2;
|
|
24
|
-
if (pseudo && pseudoGroups?.has(String(name))) Object.assign(current.pseudo, pseudo), persist();else if (layout && mediaGroups) {
|
|
25
|
-
var mediaState = getMediaState(mediaGroups, layout),
|
|
26
|
-
next = mergeIfNotShallowEqual(current.media, mediaState);
|
|
6
|
+
var _componentContext_groups_subscribe, _componentContext_groups, current = {
|
|
7
|
+
pseudo: {},
|
|
8
|
+
media: {}
|
|
9
|
+
};
|
|
10
|
+
return process.env.NODE_ENV === "development" && !componentContext.groups && console.debug("No context group found"), (_componentContext_groups = componentContext.groups) === null || _componentContext_groups === void 0 || (_componentContext_groups_subscribe = _componentContext_groups.subscribe) === null || _componentContext_groups_subscribe === void 0 ? void 0 : _componentContext_groups_subscribe.call(_componentContext_groups, function(name, param2) {
|
|
11
|
+
var { layout, pseudo } = param2;
|
|
12
|
+
if (pseudo && pseudoGroups?.has(String(name)))
|
|
13
|
+
Object.assign(current.pseudo, pseudo), persist();
|
|
14
|
+
else if (layout && mediaGroups) {
|
|
15
|
+
var mediaState = getMediaState(mediaGroups, layout), next = mergeIfNotShallowEqual(current.media, mediaState);
|
|
27
16
|
next !== current.media && (Object.assign(current.media, next), persist());
|
|
28
17
|
}
|
|
29
18
|
function persist() {
|
|
@@ -38,5 +27,7 @@ var subscribeToContextGroup = function (param) {
|
|
|
38
27
|
});
|
|
39
28
|
}
|
|
40
29
|
};
|
|
41
|
-
export {
|
|
42
|
-
|
|
30
|
+
export {
|
|
31
|
+
subscribeToContextGroup
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=subscribeToContextGroup.js.map
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/helpers/Users/n8/tamagui/code/core/web/src/helpers/subscribeToContextGroup.tsx"],
|
|
4
|
+
"mappings": "AAAA,SAASA,8BAA8B;AACvC,SAASC,qBAAqB;AAGvB,IAAMC,0BAA0B,SAAA,OAAA;MAAC,EACtCC,WAAW,IACXC,iBACAC,cACAC,aACAC,kBACAC,MAAK,IAQN;AAEC,MAAIH,gBAAgBC,aAAa;QAUxBC,oCAAAA,0BATDE,UAAU;MACdC,QAAQ,CAAC;MACTC,OAAO,CAAC;IACV;AAEA,WAAIC,QAAQC,IAAIC,aAAa,iBAAiB,CAACP,iBAAiBQ,UAC9DC,QAAQC,MAAM,wBAAwB,IAGjCV,2BAAAA,iBAAiBQ,YAAM,QAAvBR,6BAAAA,WAAAA,qCAAAA,yBAAyBW,eAAS,QAAlCX,uCAAAA,SAAAA,SAAAA,mCAAAA,KAAAA,0BAAqC,SAACY,MAAAA,QAAAA;UAAM,EAAEC,QAAQV,OAAM,IAAEW;AACnE,UAAIX,UAAUL,cAAciB,IAAIC,OAAOJ,IAAAA,CAAAA;AAErCK,eAAOC,OAAOhB,QAAQC,QAAQA,MAAAA,GAC9BgB,QAAAA;eACSN,UAAUd,aAAa;AAChC,YAAMqB,aAAa1B,cAAcK,aAAac,MAAAA,GACxCQ,OAAO5B,uBAAuBS,QAAQE,OAAOgB,UAAAA;AACnD,QAAIC,SAASnB,QAAQE,UACnBa,OAAOC,OAAOhB,QAAQE,OAAOiB,IAAAA,GAC7BF,QAAAA;MAEJ;AACA,eAASA,UAAAA;AAEP,YAAMG,QAAQ;UACZ,GAAGrB,MAAMqB;UACT,CAACV,IAAAA,GAAOV;QACV;AACAL,wBAAgB;UACdyB;QACF,CAAA;MACF;IACF,CAAA;EACF;AACF;",
|
|
5
|
+
"names": ["mergeIfNotShallowEqual", "getMediaState", "subscribeToContextGroup", "disabled", "setStateShallow", "pseudoGroups", "mediaGroups", "componentContext", "state", "current", "pseudo", "media", "process", "env", "NODE_ENV", "groups", "console", "debug", "subscribe", "name", "layout", "param", "has", "String", "Object", "assign", "persist", "mediaState", "next", "group"]
|
|
6
|
+
}
|
|
@@ -1,36 +1,29 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import { Theme } from "../views/Theme
|
|
3
|
+
import { Theme } from "../views/Theme";
|
|
4
4
|
function themeable(Component, staticConfig) {
|
|
5
|
-
var withThemeComponent = /* @__PURE__ */React.forwardRef(function
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
"disable-child-theme": !0,
|
|
25
|
-
debug: props.debug,
|
|
26
|
-
inverse: themeInverse,
|
|
27
|
-
reset: themeReset,
|
|
28
|
-
children: element
|
|
29
|
-
});
|
|
30
|
-
return contents;
|
|
31
|
-
}),
|
|
32
|
-
withTheme = withThemeComponent;
|
|
5
|
+
var withThemeComponent = /* @__PURE__ */ React.forwardRef(function(props, ref) {
|
|
6
|
+
var { themeInverse, theme, componentName, themeReset, ...rest } = props, element = (
|
|
7
|
+
// @ts-expect-error its ok
|
|
8
|
+
/* @__PURE__ */ _jsx(Component, {
|
|
9
|
+
ref,
|
|
10
|
+
...rest,
|
|
11
|
+
"data-disable-theme": !0
|
|
12
|
+
})
|
|
13
|
+
), contents = /* @__PURE__ */ _jsx(Theme, {
|
|
14
|
+
componentName: componentName || staticConfig?.componentName,
|
|
15
|
+
name: theme,
|
|
16
|
+
"disable-child-theme": !0,
|
|
17
|
+
debug: props.debug,
|
|
18
|
+
inverse: themeInverse,
|
|
19
|
+
reset: themeReset,
|
|
20
|
+
children: element
|
|
21
|
+
});
|
|
22
|
+
return contents;
|
|
23
|
+
}), withTheme = withThemeComponent;
|
|
33
24
|
return withTheme.displayName = `Themed(${Component?.displayName || Component?.name || "Anonymous"})`, withTheme;
|
|
34
25
|
}
|
|
35
|
-
export {
|
|
36
|
-
|
|
26
|
+
export {
|
|
27
|
+
themeable
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=themeable.js.map
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/helpers/Users/n8/tamagui/code/core/web/src/helpers/themeable.tsx"],
|
|
4
|
+
"mappings": ";AAAA,OAAOA,WAAW;AAGlB,SAASC,aAAa;AAEf,SAASC,UACdC,WACAC,cAAoC;AAEpC,MAAMC,qBAAqBL,sBAAMM,WAAW,SAC1CC,OACAC,KAAG;AAEH,QAAM,EAAEC,cAAcC,OAAOC,eAAeC,YAAY,GAAGC,KAAAA,IAASN,OAE9DO;;MAEJ,qBAACX,WAAAA;QAAUK;QAAW,GAAGK;QAAME,sBAAkB;;OAG/CC,WACF,qBAACf,OAAAA;MACCU,eAAeA,iBAAiBP,cAAcO;MAC9CM,MAAMP;MACNQ,uBAAmB;MACnBC,OAAOZ,MAAMY;MACbC,SAASX;MACTY,OAAOT;gBAENE;;AAIL,WAAOE;EACT,CAAA,GAEMM,YAAiBjB;AACvBiB,mBAAUC,cAAc,UACrBpB,WAAmBoB,eAAgBpB,WAAmBc,QAAQ,WAAA,KAG1DK;AAGT;",
|
|
5
|
+
"names": ["React", "Theme", "themeable", "Component", "staticConfig", "withThemeComponent", "forwardRef", "props", "ref", "themeInverse", "theme", "componentName", "themeReset", "rest", "element", "data-disable-theme", "contents", "name", "disable-child-theme", "debug", "inverse", "reset", "withTheme", "displayName"]
|
|
6
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createVariable, isVariable } from "../createVariable
|
|
1
|
+
import { createVariable, isVariable } from "../createVariable";
|
|
2
2
|
function ensureThemeVariable(theme, key) {
|
|
3
3
|
var val = theme[key];
|
|
4
4
|
isVariable(val) ? val.name !== key && (theme[key] = createVariable({
|
|
@@ -11,5 +11,7 @@ function ensureThemeVariable(theme, key) {
|
|
|
11
11
|
val
|
|
12
12
|
});
|
|
13
13
|
}
|
|
14
|
-
export {
|
|
15
|
-
|
|
14
|
+
export {
|
|
15
|
+
ensureThemeVariable
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=themes.js.map
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/helpers/Users/n8/tamagui/code/core/web/src/helpers/themes.ts"],
|
|
4
|
+
"mappings": "AAAA,SAASA,gBAAgBC,kBAAkB;AAIpC,SAASC,oBAAoBC,OAAYC,KAAW;AACzD,MAAMC,MAAMF,MAAMC,GAAAA;AAClB,EAAKH,WAAWI,GAAAA,IAOVA,IAAIC,SAASF,QAEfD,MAAMC,GAAAA,IAAOJ,eAAe;IAC1BI,KAAKC,IAAIC;IACTA,MAAMF;IACNC,KAAKA,IAAIA;EACX,CAAA,KAZFF,MAAMC,GAAAA,IAAOJ,eAAe;IAC1BI;IACAE,MAAMF;IACNC;EACF,CAAA;AAWJ;",
|
|
5
|
+
"names": ["createVariable", "isVariable", "ensureThemeVariable", "theme", "key", "val", "name"]
|
|
6
|
+
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
var timer = require("@tamagui/timer").timer();
|
|
2
|
-
setTimeout(function
|
|
2
|
+
setTimeout(function() {
|
|
3
3
|
timer.print();
|
|
4
4
|
}, 2e3);
|
|
5
5
|
var time = timer.start({
|
|
6
6
|
quiet: !0
|
|
7
7
|
});
|
|
8
|
-
export {
|
|
9
|
-
|
|
8
|
+
export {
|
|
9
|
+
time
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=timer.js.map
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/helpers/Users/n8/tamagui/code/core/web/src/helpers/timer.ts"],
|
|
4
|
+
"mappings": "AAAA,IAAMA,QAAQC,QAAQ,gBAAA,EAAkBD,MAAK;AAE7CE,WAAW,WAAA;AACTF,QAAMG,MAAK;AACb,GAAG,GAAA;AAEI,IAAMC,OAAOJ,MAAMK,MAAM;EAC9BC,OAAO;AACT,CAAA;",
|
|
5
|
+
"names": ["timer", "require", "setTimeout", "print", "time", "start", "quiet"]
|
|
6
|
+
}
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import { normalizeValueWithProperty } from "./normalizeValueWithProperty
|
|
1
|
+
import { normalizeValueWithProperty } from "./normalizeValueWithProperty";
|
|
2
2
|
function transformsToString(transforms) {
|
|
3
3
|
return transforms.map(
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
value
|
|
10
|
-
|
|
11
|
-
|
|
4
|
+
// { scale: 2 } => 'scale(2)'
|
|
5
|
+
// { translateX: 20 } => 'translateX(20px)'
|
|
6
|
+
// { matrix: [1,2,3,4,5,6] } => 'matrix(1,2,3,4,5,6)'
|
|
7
|
+
function(transform) {
|
|
8
|
+
var type = Object.keys(transform)[0], value = transform[type];
|
|
9
|
+
return type === "matrix" || type === "matrix3d" ? `${type}(${value.join(",")})` : `${type}(${normalizeValueWithProperty(value, type)})`;
|
|
10
|
+
}
|
|
11
|
+
).join(" ");
|
|
12
12
|
}
|
|
13
|
-
export {
|
|
14
|
-
|
|
13
|
+
export {
|
|
14
|
+
transformsToString
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=transformsToString.js.map
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/helpers/Users/n8/tamagui/code/core/web/src/helpers/transformsToString.ts"],
|
|
4
|
+
"mappings": "AAAA,SAASA,kCAAkC;AAEpC,SAASC,mBAAmBC,YAAoB;AACrD,SAAOA,WACJC;;;;IAIC,SAACC,WAAAA;AACC,UAAMC,OAAOC,OAAOC,KAAKH,SAAAA,EAAW,CAAA,GAC9BI,QAAQJ,UAAUC,IAAAA;AACxB,aAAIA,SAAS,YAAYA,SAAS,aACzB,GAAGA,IAAAA,IAAQG,MAAMC,KAAK,GAAA,CAAA,MAExB,GAAGJ,IAAAA,IAAQL,2BAA2BQ,OAAOH,IAAAA,CAAAA;IACtD;EAAA,EAEDI,KAAK,GAAA;AACV;",
|
|
5
|
+
"names": ["normalizeValueWithProperty", "transformsToString", "transforms", "map", "transform", "type", "Object", "keys", "value", "join"]
|
|
6
|
+
}
|