@tamagui/core 1.121.5 → 1.121.6
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/native.js +51 -132
- package/dist/native.js.map +3 -3
- package/dist/test.native.js +51 -132
- package/dist/test.native.js.map +3 -3
- package/package.json +6 -6
package/dist/native.js
CHANGED
|
@@ -2009,7 +2009,7 @@ var require_config_native = __commonJS({
|
|
|
2009
2009
|
return getFont;
|
|
2010
2010
|
},
|
|
2011
2011
|
getSetting: function() {
|
|
2012
|
-
return
|
|
2012
|
+
return getSetting2;
|
|
2013
2013
|
},
|
|
2014
2014
|
getThemes: function() {
|
|
2015
2015
|
return getThemes2;
|
|
@@ -2058,7 +2058,7 @@ Haven't called createTamagui yet.
|
|
|
2058
2058
|
with the starter kits that you can call with "yarn upgrade:tamagui" to help with this.
|
|
2059
2059
|
|
|
2060
2060
|
You may want to clear your node_modules as well and run a fresh install after ugprading.
|
|
2061
|
-
` : "\u274C Error 001",
|
|
2061
|
+
` : "\u274C Error 001", getSetting2 = function(key) {
|
|
2062
2062
|
if (process.env.NODE_ENV === "development" && !conf) throw new Error(haventCalledErrorMessage);
|
|
2063
2063
|
var _conf_settings_key;
|
|
2064
2064
|
return (_conf_settings_key = conf.settings[key]) !== null && _conf_settings_key !== void 0 ? _conf_settings_key : (
|
|
@@ -8110,11 +8110,11 @@ var require_wrapStyleTags_native = __commonJS({
|
|
|
8110
8110
|
}
|
|
8111
8111
|
});
|
|
8112
8112
|
|
|
8113
|
-
// ../
|
|
8114
|
-
var
|
|
8115
|
-
"../
|
|
8113
|
+
// ../use-did-finish-ssr/dist/cjs/index.native.js
|
|
8114
|
+
var require_index_native7 = __commonJS({
|
|
8115
|
+
"../use-did-finish-ssr/dist/cjs/index.native.js"(exports2, module2) {
|
|
8116
8116
|
"use strict";
|
|
8117
|
-
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
8117
|
+
var __create2 = Object.create, __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __getProtoOf2 = Object.getPrototypeOf, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
8118
8118
|
for (var name in all) __defProp2(target, name, {
|
|
8119
8119
|
get: all[name],
|
|
8120
8120
|
enumerable: !0
|
|
@@ -8142,27 +8142,40 @@ var require_useIsHydrated_native = __commonJS({
|
|
|
8142
8142
|
}
|
|
8143
8143
|
}
|
|
8144
8144
|
return to;
|
|
8145
|
+
}, __toESM2 = function(mod, isNodeMode, target) {
|
|
8146
|
+
return target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
|
|
8147
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
8148
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
8149
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
8150
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
8151
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", {
|
|
8152
|
+
value: mod,
|
|
8153
|
+
enumerable: !0
|
|
8154
|
+
}) : target,
|
|
8155
|
+
mod
|
|
8156
|
+
);
|
|
8145
8157
|
}, __toCommonJS2 = function(mod) {
|
|
8146
8158
|
return __copyProps2(__defProp2({}, "__esModule", {
|
|
8147
8159
|
value: !0
|
|
8148
8160
|
}), mod);
|
|
8149
|
-
},
|
|
8150
|
-
__export2(
|
|
8151
|
-
|
|
8152
|
-
return
|
|
8161
|
+
}, src_exports2 = {};
|
|
8162
|
+
__export2(src_exports2, {
|
|
8163
|
+
useClientValue: function() {
|
|
8164
|
+
return useClientValue;
|
|
8165
|
+
},
|
|
8166
|
+
useDidFinishSSR: function() {
|
|
8167
|
+
return useDidFinishSSR;
|
|
8153
8168
|
}
|
|
8154
8169
|
});
|
|
8155
|
-
module2.exports = __toCommonJS2(
|
|
8156
|
-
var
|
|
8157
|
-
|
|
8158
|
-
|
|
8159
|
-
}
|
|
8160
|
-
|
|
8161
|
-
|
|
8162
|
-
|
|
8163
|
-
|
|
8164
|
-
});
|
|
8165
|
-
};
|
|
8170
|
+
module2.exports = __toCommonJS2(src_exports2);
|
|
8171
|
+
var React3 = __toESM2(require("react"));
|
|
8172
|
+
function useDidFinishSSR(value) {
|
|
8173
|
+
return value ?? !0;
|
|
8174
|
+
}
|
|
8175
|
+
function useClientValue(value) {
|
|
8176
|
+
var done = useDidFinishSSR();
|
|
8177
|
+
return done ? typeof value == "function" ? value() : value : void 0;
|
|
8178
|
+
}
|
|
8166
8179
|
}
|
|
8167
8180
|
});
|
|
8168
8181
|
|
|
@@ -8209,8 +8222,8 @@ var require_useComponentState_native = __commonJS({
|
|
|
8209
8222
|
}
|
|
8210
8223
|
});
|
|
8211
8224
|
module2.exports = __toCommonJS2(useComponentState_exports);
|
|
8212
|
-
var import_constants2 = require_index_native3(), import_react3 = require("react"), import_defaultComponentState = require_defaultComponentState_native(), import_createShallowSetState = require_createShallowSetState_native(), import_isObj = require_isObj_native(), import_log = require_log_native(),
|
|
8213
|
-
var { animationDriver, groups } = param, _animationDriver_usePresence, isHydrated = (0,
|
|
8225
|
+
var import_constants2 = require_index_native3(), import_use_did_finish_ssr = require_index_native7(), import_react3 = require("react"), import_defaultComponentState = require_defaultComponentState_native(), import_createShallowSetState = require_createShallowSetState_native(), import_isObj = require_isObj_native(), import_log = require_log_native(), useComponentState = function(props, param, staticConfig, config) {
|
|
8226
|
+
var { animationDriver, groups } = param, _animationDriver_usePresence, isHydrated = (0, import_use_did_finish_ssr.useDidFinishSSR)(), useAnimations = animationDriver == null ? void 0 : animationDriver.useAnimations, stateRef = (0, import_react3.useRef)(void 0);
|
|
8214
8227
|
stateRef.current || (stateRef.current = {});
|
|
8215
8228
|
var hasAnimationProp = !!("animation" in props || props.style && hasAnimatedStyleValue(props.style)), supportsCSSVars = animationDriver == null ? void 0 : animationDriver.supportsCSSVars, curStateRef = stateRef.current, willBeAnimatedClient = function() {
|
|
8216
8229
|
var next = !!(hasAnimationProp && !staticConfig.isHOC && useAnimations);
|
|
@@ -9907,28 +9920,11 @@ var require_createTamagui_native = __commonJS({
|
|
|
9907
9920
|
${JSON.stringify(variable, null, 2)}`);
|
|
9908
9921
|
import_constants2.isWeb && ((0, import_registerCSSVariable.registerCSSVariable)(variable), declarations.push((0, import_registerCSSVariable.variableToCSS)(variable, key2 === "zIndex")));
|
|
9909
9922
|
}
|
|
9910
|
-
if (
|
|
9911
|
-
var
|
|
9912
|
-
|
|
9913
|
-
|
|
9914
|
-
|
|
9915
|
-
].join(`;${sep}`)}${sep}}`;
|
|
9916
|
-
}, declarationsToRuleSet = declarationsToRuleSet2;
|
|
9917
|
-
for (var key1 in fontsParsed) {
|
|
9918
|
-
var fontParsed = fontsParsed[key1], [name, language] = key1.includes("_") ? key1.split("_") : [
|
|
9919
|
-
key1
|
|
9920
|
-
], fontVars = (0, import_insertFont.registerFontVariables)(fontParsed);
|
|
9921
|
-
fontDeclarations[key1] = {
|
|
9922
|
-
name: name.slice(1),
|
|
9923
|
-
declarations: fontVars,
|
|
9924
|
-
language
|
|
9925
|
-
};
|
|
9926
|
-
}
|
|
9927
|
-
var sep = configIn.cssStyleSeparator || "";
|
|
9928
|
-
if (cssRuleSets.push(declarationsToRuleSet2(declarations)), fontDeclarations) for (var key22 in fontDeclarations) {
|
|
9929
|
-
var { name: name1, declarations: declarations1, language: language1 = "default" } = fontDeclarations[key22], fontSelector = `.font_${name1}`, langSelector = `:root .t_lang-${name1}-${language1} ${fontSelector}`, selectors = language1 === "default" ? ` ${fontSelector}, ${langSelector}` : langSelector, specificRuleSet = declarationsToRuleSet2(declarations1, selectors);
|
|
9930
|
-
cssRuleSets.push(specificRuleSet);
|
|
9931
|
-
}
|
|
9923
|
+
if (0) {
|
|
9924
|
+
var declarationsToRuleSet;
|
|
9925
|
+
for (var key1 in fontsParsed) var fontParsed, name, language, fontVars;
|
|
9926
|
+
var sep;
|
|
9927
|
+
if (fontDeclarations) for (var key22 in fontDeclarations) var name1, declarations1, language1, fontSelector, langSelector, selectors, specificRuleSet;
|
|
9932
9928
|
}
|
|
9933
9929
|
var themesIn = configIn.themes, dedupedThemes = foundThemes ?? getThemesDeduped(themesIn), themes = (0, import_proxyThemeToParents.proxyThemesToParents)(dedupedThemes);
|
|
9934
9930
|
return {
|
|
@@ -9965,22 +9961,12 @@ ${JSON.stringify(variable, null, 2)}`);
|
|
|
9965
9961
|
}
|
|
9966
9962
|
};
|
|
9967
9963
|
}(), shorthands = configIn.shorthands || {}, lastCSSInsertedRulesIndex = -1, getCSS = function() {
|
|
9968
|
-
var opts = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}
|
|
9969
|
-
|
|
9970
|
-
|
|
9971
|
-
|
|
9972
|
-
|
|
9973
|
-
}
|
|
9974
|
-
lastCSSInsertedRulesIndex = 0;
|
|
9975
|
-
var runtimeStyles = (0, import_insertStyleRule.getAllRules)().join(separator);
|
|
9976
|
-
if (exclude === "design-system") return runtimeStyles;
|
|
9977
|
-
var designSystem = `._ovs-contain {overscroll-behavior:contain;}
|
|
9978
|
-
.is_Text .is_Text {display:inline-flex;}
|
|
9979
|
-
._dsp_contents {display:contents;}
|
|
9980
|
-
${themeConfig.cssRuleSets.join(separator)}`;
|
|
9981
|
-
return `${designSystem}
|
|
9982
|
-
${exclude ? "" : themeConfig.getThemeRulesSets().join(separator)}
|
|
9983
|
-
${runtimeStyles}`;
|
|
9964
|
+
var opts = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
9965
|
+
if (0) {
|
|
9966
|
+
var separator, sinceLastCall, exclude;
|
|
9967
|
+
if (sinceLastCall && lastCSSInsertedRulesIndex >= 0) var rules;
|
|
9968
|
+
var runtimeStyles, designSystem;
|
|
9969
|
+
} else return "";
|
|
9984
9970
|
}, getNewCSS = function(opts) {
|
|
9985
9971
|
return getCSS({
|
|
9986
9972
|
...opts,
|
|
@@ -10315,7 +10301,7 @@ var require_styled_native = __commonJS({
|
|
|
10315
10301
|
var pdp = parentStaticConfig.defaultProps;
|
|
10316
10302
|
for (var key2 in pdp) {
|
|
10317
10303
|
var val = pdp[key2];
|
|
10318
|
-
parentStaticConfig.defaultVariants && key2 in parentStaticConfig.defaultVariants && (!defaultVariants || !(key2 in defaultVariants)) && (parentDefaultVariants || (parentDefaultVariants = {}), parentDefaultVariants[key2] = val), key2 in defaultProps || (parentDefaultProps || (parentDefaultProps = {}), parentDefaultProps[key2] = pdp[key2]);
|
|
10304
|
+
parentStaticConfig.defaultVariants && key2 in parentStaticConfig.defaultVariants && (!defaultVariants || !(key2 in defaultVariants)) && (parentDefaultVariants || (parentDefaultVariants = {}), parentDefaultVariants[key2] = val), !(key2 in defaultProps) && (!defaultVariants || !(key2 in defaultVariants)) && (parentDefaultProps || (parentDefaultProps = {}), parentDefaultProps[key2] = pdp[key2]);
|
|
10319
10305
|
}
|
|
10320
10306
|
parentStaticConfig.variants && (variants = (0, import_mergeVariants.mergeVariants)(parentStaticConfig.variants, variants));
|
|
10321
10307
|
}
|
|
@@ -10817,76 +10803,6 @@ var require_useConfiguration_native = __commonJS({
|
|
|
10817
10803
|
}
|
|
10818
10804
|
});
|
|
10819
10805
|
|
|
10820
|
-
// ../use-did-finish-ssr/dist/cjs/index.native.js
|
|
10821
|
-
var require_index_native7 = __commonJS({
|
|
10822
|
-
"../use-did-finish-ssr/dist/cjs/index.native.js"(exports2, module2) {
|
|
10823
|
-
"use strict";
|
|
10824
|
-
var __create2 = Object.create, __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __getProtoOf2 = Object.getPrototypeOf, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
10825
|
-
for (var name in all) __defProp2(target, name, {
|
|
10826
|
-
get: all[name],
|
|
10827
|
-
enumerable: !0
|
|
10828
|
-
});
|
|
10829
|
-
}, __copyProps2 = function(to, from, except, desc) {
|
|
10830
|
-
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
10831
|
-
if (from && typeof from == "object" || typeof from == "function") try {
|
|
10832
|
-
for (var _loop = function() {
|
|
10833
|
-
var key = _step.value;
|
|
10834
|
-
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
10835
|
-
get: function() {
|
|
10836
|
-
return from[key];
|
|
10837
|
-
},
|
|
10838
|
-
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
10839
|
-
});
|
|
10840
|
-
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
10841
|
-
} catch (err) {
|
|
10842
|
-
_didIteratorError = !0, _iteratorError = err;
|
|
10843
|
-
} finally {
|
|
10844
|
-
try {
|
|
10845
|
-
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
10846
|
-
} finally {
|
|
10847
|
-
if (_didIteratorError)
|
|
10848
|
-
throw _iteratorError;
|
|
10849
|
-
}
|
|
10850
|
-
}
|
|
10851
|
-
return to;
|
|
10852
|
-
}, __toESM2 = function(mod, isNodeMode, target) {
|
|
10853
|
-
return target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
|
|
10854
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
10855
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
10856
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
10857
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
10858
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", {
|
|
10859
|
-
value: mod,
|
|
10860
|
-
enumerable: !0
|
|
10861
|
-
}) : target,
|
|
10862
|
-
mod
|
|
10863
|
-
);
|
|
10864
|
-
}, __toCommonJS2 = function(mod) {
|
|
10865
|
-
return __copyProps2(__defProp2({}, "__esModule", {
|
|
10866
|
-
value: !0
|
|
10867
|
-
}), mod);
|
|
10868
|
-
}, src_exports2 = {};
|
|
10869
|
-
__export2(src_exports2, {
|
|
10870
|
-
useClientValue: function() {
|
|
10871
|
-
return useClientValue;
|
|
10872
|
-
},
|
|
10873
|
-
useDidFinishSSR: function() {
|
|
10874
|
-
return useDidFinishSSR;
|
|
10875
|
-
}
|
|
10876
|
-
});
|
|
10877
|
-
module2.exports = __toCommonJS2(src_exports2);
|
|
10878
|
-
var React3 = __toESM2(require("react"));
|
|
10879
|
-
function useDidFinishSSR(value) {
|
|
10880
|
-
return value ?? !0;
|
|
10881
|
-
var cur, setCur;
|
|
10882
|
-
}
|
|
10883
|
-
function useClientValue(value) {
|
|
10884
|
-
var done = useDidFinishSSR();
|
|
10885
|
-
return done ? typeof value == "function" ? value() : value : void 0;
|
|
10886
|
-
}
|
|
10887
|
-
}
|
|
10888
|
-
});
|
|
10889
|
-
|
|
10890
10806
|
// ../web/dist/cjs/hooks/useIsTouchDevice.native.js
|
|
10891
10807
|
var require_useIsTouchDevice_native = __commonJS({
|
|
10892
10808
|
"../web/dist/cjs/hooks/useIsTouchDevice.native.js"(exports2, module2) {
|
|
@@ -11776,6 +11692,9 @@ var require_index_native9 = __commonJS({
|
|
|
11776
11692
|
getMedia: function() {
|
|
11777
11693
|
return import_useMedia.getMedia;
|
|
11778
11694
|
},
|
|
11695
|
+
getSetting: function() {
|
|
11696
|
+
return import_config.getSetting;
|
|
11697
|
+
},
|
|
11779
11698
|
getThemes: function() {
|
|
11780
11699
|
return import_config.getThemes;
|
|
11781
11700
|
},
|