@tamagui/core 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 +13 -9
- package/dist/native.js.map +2 -2
- package/dist/test.native.js +13 -9
- package/dist/test.native.js.map +2 -2
- package/package.json +7 -7
package/dist/test.native.js
CHANGED
|
@@ -5561,7 +5561,8 @@ var require_createShallowSetState_native = __commonJS({
|
|
|
5561
5561
|
var import_react3 = require("react"), callImmediate = function(cb) {
|
|
5562
5562
|
return cb();
|
|
5563
5563
|
};
|
|
5564
|
-
function createShallowSetState(setter, onlyAllow, transition,
|
|
5564
|
+
function createShallowSetState(setter, onlyAllow, transition, debugIn, callback) {
|
|
5565
|
+
var debug = !0;
|
|
5565
5566
|
return (0, import_react3.useCallback)(function(next) {
|
|
5566
5567
|
var wrap = transition ? import_react3.startTransition : callImmediate;
|
|
5567
5568
|
wrap(function() {
|
|
@@ -5574,7 +5575,8 @@ var require_createShallowSetState_native = __commonJS({
|
|
|
5574
5575
|
setter,
|
|
5575
5576
|
onlyAllow ? onlyAllow.join("") : "",
|
|
5576
5577
|
transition,
|
|
5577
|
-
debug
|
|
5578
|
+
debug,
|
|
5579
|
+
callback
|
|
5578
5580
|
]);
|
|
5579
5581
|
}
|
|
5580
5582
|
function mergeIfNotShallowEqual(prev, next, onlyAllow, debug) {
|
|
@@ -6582,10 +6584,8 @@ var require_useComponentState_native = __commonJS({
|
|
|
6582
6584
|
import_constants2.isWeb && hasAnimationThatNeedsHydrate && !staticConfig.isHOC && !isHydrated && (isAnimated = !1, curStateRef.willHydrate = !0), disabled !== state.disabled && (state.disabled = disabled, disabled && Object.assign(state, import_defaultComponentState.defaultComponentStateMounted), setState({
|
|
6583
6585
|
...state
|
|
6584
6586
|
}));
|
|
6585
|
-
var groupName = props.group, setStateWrapper
|
|
6586
|
-
|
|
6587
|
-
var groupContextState = groups.state;
|
|
6588
|
-
setStateWrapper = function(state2) {
|
|
6587
|
+
var groupName = props.group, groupContextState = groups == null ? void 0 : groups.state, setStateWrapper = (0, import_react3.useMemo)(function() {
|
|
6588
|
+
if (groupContextState && groupName) return function(state2) {
|
|
6589
6589
|
curStateRef.group.emit(groupName, {
|
|
6590
6590
|
pseudo: state2
|
|
6591
6591
|
});
|
|
@@ -6595,8 +6595,11 @@ var require_useComponentState_native = __commonJS({
|
|
|
6595
6595
|
};
|
|
6596
6596
|
groupContextState[groupName] = next;
|
|
6597
6597
|
};
|
|
6598
|
-
}
|
|
6599
|
-
|
|
6598
|
+
}, [
|
|
6599
|
+
groupContextState,
|
|
6600
|
+
curStateRef,
|
|
6601
|
+
groupName
|
|
6602
|
+
]), setStateShallow = (0, import_createShallowSetState.createShallowSetState)(setState, disabled ? [
|
|
6600
6603
|
"disabled"
|
|
6601
6604
|
] : void 0, !1, props.debug, setStateWrapper);
|
|
6602
6605
|
if (presenceState && isAnimated && isHydrated && staticConfig.variants) {
|
|
@@ -8047,6 +8050,7 @@ var require_createTamagui_native = __commonJS({
|
|
|
8047
8050
|
var import_constants2 = require_index_native2(), 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();
|
|
8048
8051
|
function createTamagui2(configIn) {
|
|
8049
8052
|
var _configIn_settings;
|
|
8053
|
+
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;
|
|
8050
8054
|
if (createdConfigs.has(configIn)) return configIn;
|
|
8051
8055
|
var tokensParsed = {}, tokens = (0, import_createVariables.createVariables)(configIn.tokens || {});
|
|
8052
8056
|
if (configIn.tokens) {
|
|
@@ -8192,7 +8196,7 @@ var require_createTamagui_native = __commonJS({
|
|
|
8192
8196
|
specificTokens,
|
|
8193
8197
|
defaultFontToken
|
|
8194
8198
|
};
|
|
8195
|
-
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) {
|
|
8199
|
+
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) {
|
|
8196
8200
|
return cb(config);
|
|
8197
8201
|
}), import_config.configListeners.clear()), !1)
|
|
8198
8202
|
var _process_env_DEBUG;
|