@tamagui/core 1.132.15 → 1.132.16-1754855349219
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 +5 -90
- package/dist/native.js.map +3 -3
- package/dist/test.native.js +5 -90
- package/dist/test.native.js.map +3 -3
- package/package.json +10 -10
package/dist/native.js
CHANGED
|
@@ -210,92 +210,6 @@ var require_composeEventHandlers_native = __commonJS({
|
|
|
210
210
|
}
|
|
211
211
|
});
|
|
212
212
|
|
|
213
|
-
// ../helpers/dist/cjs/concatClassName.native.js
|
|
214
|
-
var require_concatClassName_native = __commonJS({
|
|
215
|
-
"../helpers/dist/cjs/concatClassName.native.js"(exports2, module2) {
|
|
216
|
-
"use strict";
|
|
217
|
-
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
218
|
-
for (var name in all) __defProp2(target, name, {
|
|
219
|
-
get: all[name],
|
|
220
|
-
enumerable: !0
|
|
221
|
-
});
|
|
222
|
-
}, __copyProps2 = function(to, from, except, desc) {
|
|
223
|
-
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
224
|
-
if (from && typeof from == "object" || typeof from == "function") try {
|
|
225
|
-
for (var _loop = function() {
|
|
226
|
-
var key = _step.value;
|
|
227
|
-
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
228
|
-
get: function() {
|
|
229
|
-
return from[key];
|
|
230
|
-
},
|
|
231
|
-
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
232
|
-
});
|
|
233
|
-
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
234
|
-
} catch (err) {
|
|
235
|
-
_didIteratorError = !0, _iteratorError = err;
|
|
236
|
-
} finally {
|
|
237
|
-
try {
|
|
238
|
-
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
239
|
-
} finally {
|
|
240
|
-
if (_didIteratorError)
|
|
241
|
-
throw _iteratorError;
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
return to;
|
|
245
|
-
}, __toCommonJS2 = function(mod) {
|
|
246
|
-
return __copyProps2(__defProp2({}, "__esModule", {
|
|
247
|
-
value: !0
|
|
248
|
-
}), mod);
|
|
249
|
-
}, concatClassName_exports = {};
|
|
250
|
-
__export2(concatClassName_exports, {
|
|
251
|
-
concatClassName: function() {
|
|
252
|
-
return concatClassName;
|
|
253
|
-
}
|
|
254
|
-
});
|
|
255
|
-
module2.exports = __toCommonJS2(concatClassName_exports);
|
|
256
|
-
function concatClassName(_cn) {
|
|
257
|
-
for (var args = arguments, usedPrefixes = [], final = "", len = args.length, propObjects = null, x = len; x >= 0; x--) {
|
|
258
|
-
var _loop = function(i2) {
|
|
259
|
-
var name = names[i2];
|
|
260
|
-
if (!name || name === " ") return "continue";
|
|
261
|
-
if (name[0] !== "_") return final = name + " " + final, "continue";
|
|
262
|
-
var splitIndex = name.indexOf("-");
|
|
263
|
-
if (splitIndex < 1) return final = name + " " + final, "continue";
|
|
264
|
-
var nextChar = name[splitIndex + 1], isMediaQuery = nextChar === "_", styleKey = name.slice(1, name.lastIndexOf("-")), mediaKey = isMediaQuery ? name.slice(splitIndex + 2, splitIndex + 7) : null, uid = mediaKey ? styleKey + mediaKey : styleKey;
|
|
265
|
-
if (usedPrefixes.indexOf(uid) > -1) return "continue";
|
|
266
|
-
usedPrefixes.push(uid);
|
|
267
|
-
var propName = styleKey;
|
|
268
|
-
if (propName && propObjects && propObjects.some(function(po) {
|
|
269
|
-
if (mediaKey) {
|
|
270
|
-
var propKey = pseudoInvert[mediaKey];
|
|
271
|
-
return po && po[propKey] && propName in po[propKey] && po[propKey] !== null;
|
|
272
|
-
}
|
|
273
|
-
var res = po && propName in po && po[propName] !== null;
|
|
274
|
-
return res;
|
|
275
|
-
})) return "continue";
|
|
276
|
-
final = name + " " + final;
|
|
277
|
-
}, cns = args[x];
|
|
278
|
-
if (cns) {
|
|
279
|
-
if (!Array.isArray(cns) && typeof cns != "string") {
|
|
280
|
-
propObjects = propObjects || [], propObjects.push(cns);
|
|
281
|
-
continue;
|
|
282
|
-
}
|
|
283
|
-
for (var names = Array.isArray(cns) ? cns : cns.split(" "), numNames = names.length, i = numNames - 1; i >= 0; i--) _loop(i);
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
return final;
|
|
287
|
-
}
|
|
288
|
-
var pseudoInvert = {
|
|
289
|
-
hover: "hoverStyle",
|
|
290
|
-
focus: "focusStyle",
|
|
291
|
-
press: "pressStyle",
|
|
292
|
-
focusVisible: "focusVisibleStyle",
|
|
293
|
-
focusWithin: "focusWithinStyle",
|
|
294
|
-
disabled: "disabledStyle"
|
|
295
|
-
};
|
|
296
|
-
}
|
|
297
|
-
});
|
|
298
|
-
|
|
299
213
|
// ../helpers/dist/cjs/types.native.js
|
|
300
214
|
var require_types_native = __commonJS({
|
|
301
215
|
"../helpers/dist/cjs/types.native.js"(exports2, module2) {
|
|
@@ -1014,7 +928,6 @@ var require_index_native3 = __commonJS({
|
|
|
1014
928
|
__reExport2(index_exports2, require_index_native(), module2.exports);
|
|
1015
929
|
__reExport2(index_exports2, require_clamp_native(), module2.exports);
|
|
1016
930
|
__reExport2(index_exports2, require_composeEventHandlers_native(), module2.exports);
|
|
1017
|
-
__reExport2(index_exports2, require_concatClassName_native(), module2.exports);
|
|
1018
931
|
__reExport2(index_exports2, require_types_native(), module2.exports);
|
|
1019
932
|
__reExport2(index_exports2, require_shouldRenderNativePlatform_native(), module2.exports);
|
|
1020
933
|
__reExport2(index_exports2, require_validStyleProps_native(), module2.exports);
|
|
@@ -9040,7 +8953,7 @@ ${JSON.stringify(variable, null, 2)}`);
|
|
|
9040
8953
|
var sep;
|
|
9041
8954
|
if (fontDeclarations) for (var key22 in fontDeclarations) var name1, declarations1, language1, fontSelector, langSelector, selectors, specificRuleSet;
|
|
9042
8955
|
}
|
|
9043
|
-
var themesIn = configIn.themes, dedupedThemes = foundThemes ?? getThemesDeduped(themesIn), themes = (0, import_proxyThemeToParents.proxyThemesToParents)(dedupedThemes);
|
|
8956
|
+
var themesIn = configIn.themes, dedupedThemes = foundThemes ?? getThemesDeduped(themesIn, tokens.color), themes = (0, import_proxyThemeToParents.proxyThemesToParents)(dedupedThemes);
|
|
9044
8957
|
return {
|
|
9045
8958
|
themes,
|
|
9046
8959
|
cssRuleSets,
|
|
@@ -9144,7 +9057,7 @@ ${JSON.stringify(variable, null, 2)}`);
|
|
|
9144
9057
|
}
|
|
9145
9058
|
return config;
|
|
9146
9059
|
}
|
|
9147
|
-
function getThemesDeduped(themes) {
|
|
9060
|
+
function getThemesDeduped(themes, colorTokens) {
|
|
9148
9061
|
var dedupedThemes = [], existing = /* @__PURE__ */ new Map();
|
|
9149
9062
|
for (var themeName in themes) {
|
|
9150
9063
|
var darkOrLightSpecificPrefix = themeName.startsWith("dark") ? "dark" : themeName.startsWith("light") ? "light" : "", rawTheme = themes[themeName], key = darkOrLightSpecificPrefix + JSON.stringify(rawTheme);
|
|
@@ -9156,6 +9069,7 @@ ${JSON.stringify(variable, null, 2)}`);
|
|
|
9156
9069
|
var theme = {
|
|
9157
9070
|
...rawTheme
|
|
9158
9071
|
};
|
|
9072
|
+
colorTokens && Object.assign(theme, colorTokens);
|
|
9159
9073
|
for (var key1 in theme) (0, import_themes.ensureThemeVariable)(theme, key1);
|
|
9160
9074
|
var deduped = {
|
|
9161
9075
|
names: [
|
|
@@ -10394,12 +10308,13 @@ var require_FontLanguage_native = __commonJS({
|
|
|
10394
10308
|
});
|
|
10395
10309
|
module2.exports = __toCommonJS2(FontLanguage_native_exports);
|
|
10396
10310
|
var import_jsx_runtime2 = require("react/jsx-runtime"), import_react3 = __toESM2(require("react")), import_ComponentContext = require_ComponentContext_native(), FontLanguage = function(param) {
|
|
10397
|
-
var { children, ...props } = param, language = import_react3.default.useMemo(function() {
|
|
10311
|
+
var { children, ...props } = param, parentProps = import_react3.default.useContext(import_ComponentContext.ComponentContext), language = import_react3.default.useMemo(function() {
|
|
10398
10312
|
return props;
|
|
10399
10313
|
}, [
|
|
10400
10314
|
JSON.stringify(props)
|
|
10401
10315
|
]);
|
|
10402
10316
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_ComponentContext.ComponentContext.Provider, {
|
|
10317
|
+
...parentProps,
|
|
10403
10318
|
language,
|
|
10404
10319
|
children
|
|
10405
10320
|
});
|