tamagui 1.125.23 → 1.125.25
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 +87 -83
- package/dist/native.js.map +3 -3
- package/dist/test.native.js +78 -75
- package/dist/test.native.js.map +3 -3
- package/package.json +55 -55
package/dist/test.native.js
CHANGED
|
@@ -2082,6 +2082,79 @@ var require_index_native10 = __commonJS({
|
|
|
2082
2082
|
}
|
|
2083
2083
|
});
|
|
2084
2084
|
|
|
2085
|
+
// ../../core/web/dist/cjs/constants/constants.native.js
|
|
2086
|
+
var require_constants_native2 = __commonJS({
|
|
2087
|
+
"../../core/web/dist/cjs/constants/constants.native.js"(exports2, module2) {
|
|
2088
|
+
"use strict";
|
|
2089
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
2090
|
+
for (var name in all) __defProp2(target, name, {
|
|
2091
|
+
get: all[name],
|
|
2092
|
+
enumerable: !0
|
|
2093
|
+
});
|
|
2094
|
+
}, __copyProps2 = function(to, from, except, desc) {
|
|
2095
|
+
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
2096
|
+
if (from && typeof from == "object" || typeof from == "function") try {
|
|
2097
|
+
for (var _loop = function() {
|
|
2098
|
+
var key = _step.value;
|
|
2099
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
2100
|
+
get: function() {
|
|
2101
|
+
return from[key];
|
|
2102
|
+
},
|
|
2103
|
+
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
2104
|
+
});
|
|
2105
|
+
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
2106
|
+
} catch (err) {
|
|
2107
|
+
_didIteratorError = !0, _iteratorError = err;
|
|
2108
|
+
} finally {
|
|
2109
|
+
try {
|
|
2110
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
2111
|
+
} finally {
|
|
2112
|
+
if (_didIteratorError)
|
|
2113
|
+
throw _iteratorError;
|
|
2114
|
+
}
|
|
2115
|
+
}
|
|
2116
|
+
return to;
|
|
2117
|
+
}, __toCommonJS2 = function(mod) {
|
|
2118
|
+
return __copyProps2(__defProp2({}, "__esModule", {
|
|
2119
|
+
value: !0
|
|
2120
|
+
}), mod);
|
|
2121
|
+
}, constants_exports = {};
|
|
2122
|
+
__export2(constants_exports, {
|
|
2123
|
+
FONT_DATA_ATTRIBUTE_NAME: function() {
|
|
2124
|
+
return FONT_DATA_ATTRIBUTE_NAME;
|
|
2125
|
+
},
|
|
2126
|
+
MISSING_THEME_MESSAGE: function() {
|
|
2127
|
+
return MISSING_THEME_MESSAGE;
|
|
2128
|
+
},
|
|
2129
|
+
THEME_CLASSNAME_PREFIX: function() {
|
|
2130
|
+
return THEME_CLASSNAME_PREFIX;
|
|
2131
|
+
},
|
|
2132
|
+
THEME_NAME_SEPARATOR: function() {
|
|
2133
|
+
return THEME_NAME_SEPARATOR;
|
|
2134
|
+
},
|
|
2135
|
+
stackDefaultStyles: function() {
|
|
2136
|
+
return stackDefaultStyles;
|
|
2137
|
+
},
|
|
2138
|
+
webViewFlexCompatStyles: function() {
|
|
2139
|
+
return webViewFlexCompatStyles;
|
|
2140
|
+
}
|
|
2141
|
+
});
|
|
2142
|
+
module2.exports = __toCommonJS2(constants_exports);
|
|
2143
|
+
var THEME_NAME_SEPARATOR = "_", THEME_CLASSNAME_PREFIX = "t_", FONT_DATA_ATTRIBUTE_NAME = "data-tamagui-font", stackDefaultStyles = {}, webViewFlexCompatStyles = {
|
|
2144
|
+
display: "flex",
|
|
2145
|
+
alignItems: "stretch",
|
|
2146
|
+
flexDirection: "column",
|
|
2147
|
+
flexBasis: "auto",
|
|
2148
|
+
// @ts-expect-error
|
|
2149
|
+
boxSizing: "border-box",
|
|
2150
|
+
position: process.env.TAMAGUI_POSITION_STATIC === "1" ? "static" : "relative",
|
|
2151
|
+
minHeight: 0,
|
|
2152
|
+
minWidth: 0,
|
|
2153
|
+
flexShrink: 0
|
|
2154
|
+
}, MISSING_THEME_MESSAGE = "Missing theme.";
|
|
2155
|
+
}
|
|
2156
|
+
});
|
|
2157
|
+
|
|
2085
2158
|
// ../../core/web/dist/cjs/config.native.js
|
|
2086
2159
|
var require_config_native = __commonJS({
|
|
2087
2160
|
"../../core/web/dist/cjs/config.native.js"(exports2, module2) {
|
|
@@ -2176,7 +2249,7 @@ var require_config_native = __commonJS({
|
|
|
2176
2249
|
}
|
|
2177
2250
|
});
|
|
2178
2251
|
module2.exports = __toCommonJS2(config_exports);
|
|
2179
|
-
var import_constants4 = require_index_native6(), conf, getSetting2 = function(key) {
|
|
2252
|
+
var import_constants4 = require_index_native6(), import_constants22 = require_constants_native2(), conf, getSetting2 = function(key) {
|
|
2180
2253
|
var _conf_settings_key;
|
|
2181
2254
|
return (_conf_settings_key = conf.settings[key]) !== null && _conf_settings_key !== void 0 ? _conf_settings_key : (
|
|
2182
2255
|
// @ts-expect-error
|
|
@@ -3156,76 +3229,6 @@ var require_index_native11 = __commonJS({
|
|
|
3156
3229
|
}
|
|
3157
3230
|
});
|
|
3158
3231
|
|
|
3159
|
-
// ../../core/web/dist/cjs/constants/constants.native.js
|
|
3160
|
-
var require_constants_native2 = __commonJS({
|
|
3161
|
-
"../../core/web/dist/cjs/constants/constants.native.js"(exports2, module2) {
|
|
3162
|
-
"use strict";
|
|
3163
|
-
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
3164
|
-
for (var name in all) __defProp2(target, name, {
|
|
3165
|
-
get: all[name],
|
|
3166
|
-
enumerable: !0
|
|
3167
|
-
});
|
|
3168
|
-
}, __copyProps2 = function(to, from, except, desc) {
|
|
3169
|
-
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
3170
|
-
if (from && typeof from == "object" || typeof from == "function") try {
|
|
3171
|
-
for (var _loop = function() {
|
|
3172
|
-
var key = _step.value;
|
|
3173
|
-
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
3174
|
-
get: function() {
|
|
3175
|
-
return from[key];
|
|
3176
|
-
},
|
|
3177
|
-
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
3178
|
-
});
|
|
3179
|
-
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
3180
|
-
} catch (err) {
|
|
3181
|
-
_didIteratorError = !0, _iteratorError = err;
|
|
3182
|
-
} finally {
|
|
3183
|
-
try {
|
|
3184
|
-
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
3185
|
-
} finally {
|
|
3186
|
-
if (_didIteratorError)
|
|
3187
|
-
throw _iteratorError;
|
|
3188
|
-
}
|
|
3189
|
-
}
|
|
3190
|
-
return to;
|
|
3191
|
-
}, __toCommonJS2 = function(mod) {
|
|
3192
|
-
return __copyProps2(__defProp2({}, "__esModule", {
|
|
3193
|
-
value: !0
|
|
3194
|
-
}), mod);
|
|
3195
|
-
}, constants_exports = {};
|
|
3196
|
-
__export2(constants_exports, {
|
|
3197
|
-
FONT_DATA_ATTRIBUTE_NAME: function() {
|
|
3198
|
-
return FONT_DATA_ATTRIBUTE_NAME;
|
|
3199
|
-
},
|
|
3200
|
-
THEME_CLASSNAME_PREFIX: function() {
|
|
3201
|
-
return THEME_CLASSNAME_PREFIX;
|
|
3202
|
-
},
|
|
3203
|
-
THEME_NAME_SEPARATOR: function() {
|
|
3204
|
-
return THEME_NAME_SEPARATOR;
|
|
3205
|
-
},
|
|
3206
|
-
stackDefaultStyles: function() {
|
|
3207
|
-
return stackDefaultStyles;
|
|
3208
|
-
},
|
|
3209
|
-
webViewFlexCompatStyles: function() {
|
|
3210
|
-
return webViewFlexCompatStyles;
|
|
3211
|
-
}
|
|
3212
|
-
});
|
|
3213
|
-
module2.exports = __toCommonJS2(constants_exports);
|
|
3214
|
-
var THEME_NAME_SEPARATOR = "_", THEME_CLASSNAME_PREFIX = "t_", FONT_DATA_ATTRIBUTE_NAME = "data-tamagui-font", stackDefaultStyles = {}, webViewFlexCompatStyles = {
|
|
3215
|
-
display: "flex",
|
|
3216
|
-
alignItems: "stretch",
|
|
3217
|
-
flexDirection: "column",
|
|
3218
|
-
flexBasis: "auto",
|
|
3219
|
-
// @ts-expect-error
|
|
3220
|
-
boxSizing: "border-box",
|
|
3221
|
-
position: process.env.TAMAGUI_POSITION_STATIC === "1" ? "static" : "relative",
|
|
3222
|
-
minHeight: 0,
|
|
3223
|
-
minWidth: 0,
|
|
3224
|
-
flexShrink: 0
|
|
3225
|
-
};
|
|
3226
|
-
}
|
|
3227
|
-
});
|
|
3228
|
-
|
|
3229
3232
|
// ../../core/web/dist/cjs/constants/isDevTools.native.js
|
|
3230
3233
|
var require_isDevTools_native = __commonJS({
|
|
3231
3234
|
"../../core/web/dist/cjs/constants/isDevTools.native.js"(exports2, module2) {
|
|
@@ -5793,7 +5796,7 @@ var require_propMapper_native = __commonJS({
|
|
|
5793
5796
|
try {
|
|
5794
5797
|
for (var _iterator = tokenCats[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
|
|
5795
5798
|
var { name, spreadName } = _step.value;
|
|
5796
|
-
if (spreadName in variant && value in tokensParsed[name]) return variant[spreadName];
|
|
5799
|
+
if (spreadName in variant && name in tokensParsed && value in tokensParsed[name]) return variant[spreadName];
|
|
5797
5800
|
}
|
|
5798
5801
|
} catch (err) {
|
|
5799
5802
|
_didIteratorError = !0, _iteratorError = err;
|
|
@@ -6824,7 +6827,7 @@ var require_useThemeState_native = __commonJS({
|
|
|
6824
6827
|
}
|
|
6825
6828
|
});
|
|
6826
6829
|
module2.exports = __toCommonJS2(useThemeState_exports);
|
|
6827
|
-
var import_constants4 = require_index_native6(), import_react3 = require("react"), import_config = require_config_native(), ThemeStateContext = (0, import_react3.createContext)(""), allListeners = /* @__PURE__ */ new Map(), listenersByParent = {}, HasRenderedOnce = /* @__PURE__ */ new WeakMap(), HadTheme = /* @__PURE__ */ new WeakMap(), PendingUpdate = /* @__PURE__ */ new Map(), states = /* @__PURE__ */ new Map(), localStates = /* @__PURE__ */ new Map(), shouldForce = !1, forceUpdateThemes2 = function() {
|
|
6830
|
+
var import_constants4 = require_index_native6(), import_react3 = require("react"), import_config = require_config_native(), import_constants22 = require_constants_native2(), ThemeStateContext = (0, import_react3.createContext)(""), allListeners = /* @__PURE__ */ new Map(), listenersByParent = {}, HasRenderedOnce = /* @__PURE__ */ new WeakMap(), HadTheme = /* @__PURE__ */ new WeakMap(), PendingUpdate = /* @__PURE__ */ new Map(), states = /* @__PURE__ */ new Map(), localStates = /* @__PURE__ */ new Map(), shouldForce = !1, forceUpdateThemes2 = function() {
|
|
6828
6831
|
cacheVersion++, shouldForce = !0, allListeners.forEach(function(cb) {
|
|
6829
6832
|
return cb();
|
|
6830
6833
|
});
|
|
@@ -6834,7 +6837,7 @@ var require_useThemeState_native = __commonJS({
|
|
|
6834
6837
|
return rootThemeState;
|
|
6835
6838
|
}, useThemeState = function(props) {
|
|
6836
6839
|
var isRoot = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, keys = arguments.length > 2 ? arguments[2] : void 0, { disable } = props, parentId = (0, import_react3.useContext)(ThemeStateContext);
|
|
6837
|
-
if (!parentId && !isRoot) throw new Error(
|
|
6840
|
+
if (!parentId && !isRoot) throw new Error(import_constants22.MISSING_THEME_MESSAGE);
|
|
6838
6841
|
if (disable) return states.get(parentId) || {
|
|
6839
6842
|
id: "",
|
|
6840
6843
|
name: "light",
|
|
@@ -6888,7 +6891,7 @@ var require_useThemeState_native = __commonJS({
|
|
|
6888
6891
|
];
|
|
6889
6892
|
if (!name) {
|
|
6890
6893
|
var next = lastState ?? parentState;
|
|
6891
|
-
if (!next) throw new Error(
|
|
6894
|
+
if (!next) throw new Error(import_constants22.MISSING_THEME_MESSAGE);
|
|
6892
6895
|
if (shouldRerender) {
|
|
6893
6896
|
var updated = {
|
|
6894
6897
|
...parentState || lastState
|