tamagui 1.125.10 → 1.125.12
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 +19 -13
- package/dist/native.js.map +2 -2
- package/dist/test.native.js +19 -13
- package/dist/test.native.js.map +2 -2
- package/package.json +55 -55
package/dist/test.native.js
CHANGED
|
@@ -6660,7 +6660,8 @@ var require_createShallowSetState_native = __commonJS({
|
|
|
6660
6660
|
var import_react3 = require("react"), callImmediate = function(cb) {
|
|
6661
6661
|
return cb();
|
|
6662
6662
|
};
|
|
6663
|
-
function createShallowSetState(setter, onlyAllow, transition,
|
|
6663
|
+
function createShallowSetState(setter, onlyAllow, transition, debugIn, callback) {
|
|
6664
|
+
var debug = !0;
|
|
6664
6665
|
return (0, import_react3.useCallback)(function(next) {
|
|
6665
6666
|
var wrap = transition ? import_react3.startTransition : callImmediate;
|
|
6666
6667
|
wrap(function() {
|
|
@@ -6673,7 +6674,8 @@ var require_createShallowSetState_native = __commonJS({
|
|
|
6673
6674
|
setter,
|
|
6674
6675
|
onlyAllow ? onlyAllow.join("") : "",
|
|
6675
6676
|
transition,
|
|
6676
|
-
debug
|
|
6677
|
+
debug,
|
|
6678
|
+
callback
|
|
6677
6679
|
]);
|
|
6678
6680
|
}
|
|
6679
6681
|
function mergeIfNotShallowEqual(prev, next, onlyAllow, debug) {
|
|
@@ -7681,10 +7683,8 @@ var require_useComponentState_native = __commonJS({
|
|
|
7681
7683
|
import_constants4.isWeb && hasAnimationThatNeedsHydrate && !staticConfig.isHOC && !isHydrated && (isAnimated = !1, curStateRef.willHydrate = !0), disabled !== state.disabled && (state.disabled = disabled, disabled && Object.assign(state, import_defaultComponentState.defaultComponentStateMounted), setState({
|
|
7682
7684
|
...state
|
|
7683
7685
|
}));
|
|
7684
|
-
var groupName = props.group, setStateWrapper
|
|
7685
|
-
|
|
7686
|
-
var groupContextState = groups.state;
|
|
7687
|
-
setStateWrapper = function(state2) {
|
|
7686
|
+
var groupName = props.group, groupContextState = groups == null ? void 0 : groups.state, setStateWrapper = (0, import_react3.useMemo)(function() {
|
|
7687
|
+
if (groupContextState && groupName) return function(state2) {
|
|
7688
7688
|
curStateRef.group.emit(groupName, {
|
|
7689
7689
|
pseudo: state2
|
|
7690
7690
|
});
|
|
@@ -7694,8 +7694,11 @@ var require_useComponentState_native = __commonJS({
|
|
|
7694
7694
|
};
|
|
7695
7695
|
groupContextState[groupName] = next;
|
|
7696
7696
|
};
|
|
7697
|
-
}
|
|
7698
|
-
|
|
7697
|
+
}, [
|
|
7698
|
+
groupContextState,
|
|
7699
|
+
curStateRef,
|
|
7700
|
+
groupName
|
|
7701
|
+
]), setStateShallow = (0, import_createShallowSetState.createShallowSetState)(setState, disabled ? [
|
|
7699
7702
|
"disabled"
|
|
7700
7703
|
] : void 0, !1, props.debug, setStateWrapper);
|
|
7701
7704
|
if (presenceState && isAnimated && isHydrated && staticConfig.variants) {
|
|
@@ -9146,6 +9149,7 @@ var require_createTamagui_native = __commonJS({
|
|
|
9146
9149
|
var import_constants4 = require_index_native6(), import_config = require_config_native(), import_createVariables = require_createVariables_native(), import_getThemeCSSRules = require_getThemeCSSRules_native(), import_insertStyleRule = require_insertStyleRule_native(), import_proxyThemeToParents = require_proxyThemeToParents_native(), import_registerCSSVariable = require_registerCSSVariable_native(), import_themes = require_themes_native(), import_useMedia = require_useMedia_native(), import_insertFont = require_insertFont_native(), import_Tamagui = require_Tamagui_native(), createdConfigs = /* @__PURE__ */ new WeakMap();
|
|
9147
9150
|
function createTamagui2(configIn) {
|
|
9148
9151
|
var _configIn_settings;
|
|
9152
|
+
if (globalThis.__tamaguiConfig) return console.warn("Warning: You somehow have duplicate Tamagui dependencies, this can cause issues. Tamagui is working around this by loading a previously loaded config in test mode. "), globalThis.__tamaguiConfig;
|
|
9149
9153
|
if (createdConfigs.has(configIn)) return configIn;
|
|
9150
9154
|
var tokensParsed = {}, tokens = (0, import_createVariables.createVariables)(configIn.tokens || {});
|
|
9151
9155
|
if (configIn.tokens) {
|
|
@@ -9291,7 +9295,7 @@ var require_createTamagui_native = __commonJS({
|
|
|
9291
9295
|
specificTokens,
|
|
9292
9296
|
defaultFontToken
|
|
9293
9297
|
};
|
|
9294
|
-
if ((0, import_config.setConfig)(config), (0, import_useMedia.configureMedia)(config), createdConfigs.set(config, !0), import_config.configListeners.size && (import_config.configListeners.forEach(function(cb) {
|
|
9298
|
+
if ((0, import_config.setConfig)(config), (0, import_useMedia.configureMedia)(config), createdConfigs.set(config, !0), globalThis.__tamaguiConfig = config, import_config.configListeners.size && (import_config.configListeners.forEach(function(cb) {
|
|
9295
9299
|
return cb(config);
|
|
9296
9300
|
}), import_config.configListeners.clear()), !1)
|
|
9297
9301
|
var _process_env_DEBUG;
|
|
@@ -16152,7 +16156,7 @@ var require_Adapt_native = __commonJS({
|
|
|
16152
16156
|
}
|
|
16153
16157
|
});
|
|
16154
16158
|
module2.exports = __toCommonJS2(Adapt_exports);
|
|
16155
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_constants4 = require_index_native6(), import_core12 = require_index_native18(), import_helpers = require_index_native7(), import_portal2 = require_index_native28(), import_react3 = __toESM2(require("react")), CurrentAdaptContextScope = /* @__PURE__ */ (0, import_react3.createContext)(""), AdaptContext = (0, import_core12.createStyledContext)({
|
|
16159
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_z_index_stack2 = require_index_native27(), import_constants4 = require_index_native6(), import_core12 = require_index_native18(), import_helpers = require_index_native7(), import_portal2 = require_index_native28(), import_react3 = __toESM2(require("react")), CurrentAdaptContextScope = /* @__PURE__ */ (0, import_react3.createContext)(""), AdaptContext = (0, import_core12.createStyledContext)({
|
|
16156
16160
|
Contents: null,
|
|
16157
16161
|
scopeName: "",
|
|
16158
16162
|
portalName: "",
|
|
@@ -16234,9 +16238,11 @@ var require_Adapt_native = __commonJS({
|
|
|
16234
16238
|
typeof children == "function" && output !== void 0 && (context == null || context.setChildren(output));
|
|
16235
16239
|
}, [
|
|
16236
16240
|
output
|
|
16237
|
-
]), /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
16238
|
-
|
|
16239
|
-
|
|
16241
|
+
]), /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_z_index_stack2.StackZIndexContext, {
|
|
16242
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(CurrentAdaptContextScope.Provider, {
|
|
16243
|
+
value: scopeName,
|
|
16244
|
+
children: enabled ? output : null
|
|
16245
|
+
})
|
|
16240
16246
|
});
|
|
16241
16247
|
}, {
|
|
16242
16248
|
Contents: AdaptContents
|