tamagui 1.130.4 → 1.130.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/cjs/index.cjs +11 -11
- package/dist/cjs/views/Input.cjs +1 -1
- package/dist/cjs/views/TextArea.cjs +2 -2
- package/dist/native.js +85 -27
- package/dist/native.js.map +3 -3
- package/dist/test.native.js +85 -27
- package/dist/test.native.js.map +3 -3
- package/package.json +58 -56
package/dist/cjs/index.cjs
CHANGED
|
@@ -84,7 +84,7 @@ __export(index_exports, {
|
|
|
84
84
|
withStaticProperties: () => import_core.withStaticProperties
|
|
85
85
|
});
|
|
86
86
|
module.exports = __toCommonJS(index_exports);
|
|
87
|
-
var import_setup = require("./setup
|
|
87
|
+
var import_setup = require("./setup");
|
|
88
88
|
__reExport(index_exports, require("@tamagui/accordion"), module.exports);
|
|
89
89
|
__reExport(index_exports, require("@tamagui/adapt"), module.exports);
|
|
90
90
|
__reExport(index_exports, require("@tamagui/alert-dialog"), module.exports);
|
|
@@ -128,14 +128,14 @@ __reExport(index_exports, require("@tamagui/use-debounce"), module.exports);
|
|
|
128
128
|
__reExport(index_exports, require("@tamagui/use-force-update"), module.exports);
|
|
129
129
|
__reExport(index_exports, require("@tamagui/use-window-dimensions"), module.exports);
|
|
130
130
|
__reExport(index_exports, require("@tamagui/visually-hidden"), module.exports);
|
|
131
|
-
__reExport(index_exports, require("./createTamagui
|
|
132
|
-
__reExport(index_exports, require("./viewTypes
|
|
133
|
-
__reExport(index_exports, require("./views/TamaguiProvider
|
|
134
|
-
__reExport(index_exports, require("./views/Anchor
|
|
135
|
-
__reExport(index_exports, require("./views/EnsureFlexed
|
|
136
|
-
__reExport(index_exports, require("./views/Fieldset
|
|
137
|
-
__reExport(index_exports, require("./views/Input
|
|
138
|
-
__reExport(index_exports, require("./views/Spinner
|
|
139
|
-
__reExport(index_exports, require("./views/TextArea
|
|
140
|
-
__reExport(index_exports, require("./views/Text
|
|
131
|
+
__reExport(index_exports, require("./createTamagui"), module.exports);
|
|
132
|
+
__reExport(index_exports, require("./viewTypes"), module.exports);
|
|
133
|
+
__reExport(index_exports, require("./views/TamaguiProvider"), module.exports);
|
|
134
|
+
__reExport(index_exports, require("./views/Anchor"), module.exports);
|
|
135
|
+
__reExport(index_exports, require("./views/EnsureFlexed"), module.exports);
|
|
136
|
+
__reExport(index_exports, require("./views/Fieldset"), module.exports);
|
|
137
|
+
__reExport(index_exports, require("./views/Input"), module.exports);
|
|
138
|
+
__reExport(index_exports, require("./views/Spinner"), module.exports);
|
|
139
|
+
__reExport(index_exports, require("./views/TextArea"), module.exports);
|
|
140
|
+
__reExport(index_exports, require("./views/Text"), module.exports);
|
|
141
141
|
var import_core = require("@tamagui/core");
|
package/dist/cjs/views/Input.cjs
CHANGED
|
@@ -42,7 +42,7 @@ var import_react = __toESM(require("react")),
|
|
|
42
42
|
import_core = require("@tamagui/core"),
|
|
43
43
|
import_focusable = require("@tamagui/focusable"),
|
|
44
44
|
import_react_native = require("react-native-web"),
|
|
45
|
-
import_inputHelpers = require("../helpers/inputHelpers
|
|
45
|
+
import_inputHelpers = require("../helpers/inputHelpers"),
|
|
46
46
|
import_jsx_runtime = require("react/jsx-runtime");
|
|
47
47
|
const defaultStyles = {
|
|
48
48
|
size: "$true",
|
|
@@ -38,8 +38,8 @@ module.exports = __toCommonJS(TextArea_exports);
|
|
|
38
38
|
var import_react = __toESM(require("react")),
|
|
39
39
|
import_constants = require("@tamagui/constants"),
|
|
40
40
|
import_core = require("@tamagui/core"),
|
|
41
|
-
import_inputHelpers = require("../helpers/inputHelpers
|
|
42
|
-
import_Input = require("./Input
|
|
41
|
+
import_inputHelpers = require("../helpers/inputHelpers"),
|
|
42
|
+
import_Input = require("./Input"),
|
|
43
43
|
import_jsx_runtime = require("react/jsx-runtime");
|
|
44
44
|
const TextAreaFrame = (0, import_core.styled)(import_Input.InputFrame, {
|
|
45
45
|
name: "TextArea",
|
package/dist/native.js
CHANGED
|
@@ -2205,6 +2205,58 @@ We have a CLI tool to help check this:
|
|
|
2205
2205
|
}
|
|
2206
2206
|
});
|
|
2207
2207
|
|
|
2208
|
+
// ../../core/web/dist/cjs/loadDuplicatedConfig.native.js
|
|
2209
|
+
var require_loadDuplicatedConfig_native = __commonJS({
|
|
2210
|
+
"../../core/web/dist/cjs/loadDuplicatedConfig.native.js"(exports2, module2) {
|
|
2211
|
+
"use strict";
|
|
2212
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
2213
|
+
for (var name in all) __defProp2(target, name, {
|
|
2214
|
+
get: all[name],
|
|
2215
|
+
enumerable: !0
|
|
2216
|
+
});
|
|
2217
|
+
}, __copyProps2 = function(to, from, except, desc) {
|
|
2218
|
+
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
2219
|
+
if (from && typeof from == "object" || typeof from == "function") try {
|
|
2220
|
+
for (var _loop = function() {
|
|
2221
|
+
var key = _step.value;
|
|
2222
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
2223
|
+
get: function() {
|
|
2224
|
+
return from[key];
|
|
2225
|
+
},
|
|
2226
|
+
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
2227
|
+
});
|
|
2228
|
+
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
2229
|
+
} catch (err) {
|
|
2230
|
+
_didIteratorError = !0, _iteratorError = err;
|
|
2231
|
+
} finally {
|
|
2232
|
+
try {
|
|
2233
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
2234
|
+
} finally {
|
|
2235
|
+
if (_didIteratorError)
|
|
2236
|
+
throw _iteratorError;
|
|
2237
|
+
}
|
|
2238
|
+
}
|
|
2239
|
+
return to;
|
|
2240
|
+
}, __toCommonJS2 = function(mod) {
|
|
2241
|
+
return __copyProps2(__defProp2({}, "__esModule", {
|
|
2242
|
+
value: !0
|
|
2243
|
+
}), mod);
|
|
2244
|
+
}, loadDuplicatedConfig_exports = {};
|
|
2245
|
+
__export2(loadDuplicatedConfig_exports, {
|
|
2246
|
+
loadDuplicatedConfig: function() {
|
|
2247
|
+
return loadDuplicatedConfig;
|
|
2248
|
+
}
|
|
2249
|
+
});
|
|
2250
|
+
module2.exports = __toCommonJS2(loadDuplicatedConfig_exports);
|
|
2251
|
+
var hasLogged = !1;
|
|
2252
|
+
function loadDuplicatedConfig() {
|
|
2253
|
+
return process.env.NODE_ENV !== "production" && globalThis.__tamaguiConfig ? (hasLogged = !0, hasLogged || console.warn(`Warning: You have duplicate Tamagui dependencies which can cause major, confusing issues.
|
|
2254
|
+
In dev/test, we're working around this by loading a previously loaded config.
|
|
2255
|
+
In production, this will error.`), globalThis.__tamaguiConfig) : null;
|
|
2256
|
+
}
|
|
2257
|
+
}
|
|
2258
|
+
});
|
|
2259
|
+
|
|
2208
2260
|
// ../../core/web/dist/cjs/config.native.js
|
|
2209
2261
|
var require_config_native = __commonJS({
|
|
2210
2262
|
"../../core/web/dist/cjs/config.native.js"(exports2, module2) {
|
|
@@ -2299,7 +2351,7 @@ var require_config_native = __commonJS({
|
|
|
2299
2351
|
}
|
|
2300
2352
|
});
|
|
2301
2353
|
module2.exports = __toCommonJS2(config_exports);
|
|
2302
|
-
var import_constants4 = require_index_native6(), import_constants22 = require_constants_native2(), conf, haventCalledErrorMessage = process.env.NODE_ENV === "development" ? `
|
|
2354
|
+
var import_constants4 = require_index_native6(), import_constants22 = require_constants_native2(), import_loadDuplicatedConfig = require_loadDuplicatedConfig_native(), conf, haventCalledErrorMessage = process.env.NODE_ENV === "development" ? `
|
|
2303
2355
|
Haven't called createTamagui yet. ${import_constants22.MISSING_THEME_MESSAGE}
|
|
2304
2356
|
` : "\u274C Error 001", getSetting2 = function(key) {
|
|
2305
2357
|
if (process.env.NODE_ENV === "development" && !conf) throw new Error(haventCalledErrorMessage);
|
|
@@ -2314,6 +2366,8 @@ Haven't called createTamagui yet. ${import_constants22.MISSING_THEME_MESSAGE}
|
|
|
2314
2366
|
if (process.env.NODE_ENV === "development" && !conf) throw new Error(haventCalledErrorMessage);
|
|
2315
2367
|
conf.fonts[name] = font, conf.fontsParsed[`$${name}`] = fontParsed;
|
|
2316
2368
|
}, getConfig3 = function() {
|
|
2369
|
+
var dup = (0, import_loadDuplicatedConfig.loadDuplicatedConfig)();
|
|
2370
|
+
if (dup) return dup;
|
|
2317
2371
|
if (!conf) throw new Error(process.env.NODE_ENV !== "production" ? "Missing tamagui config, you either have a duplicate config, or haven't set it up. Be sure createTamagui is called before rendering. Also, make sure all of your tamagui dependencies are on the same version (`tamagui`, `@tamagui/package-name`, etc.) not just in your package.json, but in your lockfile." : "Err0");
|
|
2318
2372
|
return conf;
|
|
2319
2373
|
}, getConfigMaybe = function() {
|
|
@@ -10002,7 +10056,7 @@ var require_createTamagui_native = __commonJS({
|
|
|
10002
10056
|
}
|
|
10003
10057
|
});
|
|
10004
10058
|
module2.exports = __toCommonJS2(createTamagui_exports);
|
|
10005
|
-
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(),
|
|
10059
|
+
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_loadDuplicatedConfig = require_loadDuplicatedConfig_native(), import_Tamagui = require_Tamagui_native();
|
|
10006
10060
|
function shouldTokenCategoryHaveUnits(category) {
|
|
10007
10061
|
var UNIT_CATEGORIES = /* @__PURE__ */ new Set([
|
|
10008
10062
|
"size",
|
|
@@ -10012,9 +10066,8 @@ var require_createTamagui_native = __commonJS({
|
|
|
10012
10066
|
return UNIT_CATEGORIES.has(category);
|
|
10013
10067
|
}
|
|
10014
10068
|
function createTamagui2(configIn) {
|
|
10015
|
-
var _configIn_settings;
|
|
10016
|
-
if (
|
|
10017
|
-
if (createdConfigs.has(configIn)) return configIn;
|
|
10069
|
+
var _configIn_settings, dup = (0, import_loadDuplicatedConfig.loadDuplicatedConfig)();
|
|
10070
|
+
if (dup) return dup;
|
|
10018
10071
|
var tokensParsed = {}, tokens = (0, import_createVariables.createVariables)(configIn.tokens || {});
|
|
10019
10072
|
if (configIn.tokens) {
|
|
10020
10073
|
var tokensMerged = {};
|
|
@@ -10165,7 +10218,7 @@ ${JSON.stringify(variable, null, 2)}`);
|
|
|
10165
10218
|
specificTokens,
|
|
10166
10219
|
defaultFontToken
|
|
10167
10220
|
};
|
|
10168
|
-
if ((0, import_config.setConfig)(config), (0, import_useMedia.configureMedia)(config),
|
|
10221
|
+
if ((0, import_config.setConfig)(config), (0, import_useMedia.configureMedia)(config), process.env.NODE_ENV === "test" && (globalThis.__tamaguiConfig = config), import_config.configListeners.size && (import_config.configListeners.forEach(function(cb) {
|
|
10169
10222
|
return cb(config);
|
|
10170
10223
|
}), import_config.configListeners.clear()), process.env.NODE_ENV === "development") {
|
|
10171
10224
|
var _process_env_DEBUG;
|
|
@@ -19063,29 +19116,34 @@ var require_SheetScrollView_native = __commonJS({
|
|
|
19063
19116
|
}
|
|
19064
19117
|
}, scrollable = scrollEnabled;
|
|
19065
19118
|
(0, import_react3.useEffect)(function() {
|
|
19119
|
+
var _scrollRef_current;
|
|
19066
19120
|
if (import_core12.isClient && scrollRef.current) {
|
|
19067
|
-
var controller = new AbortController(), node = scrollRef.current.getScrollableNode();
|
|
19068
|
-
node
|
|
19069
|
-
|
|
19070
|
-
|
|
19071
|
-
|
|
19072
|
-
|
|
19073
|
-
|
|
19074
|
-
|
|
19075
|
-
|
|
19076
|
-
|
|
19077
|
-
|
|
19078
|
-
|
|
19079
|
-
|
|
19080
|
-
|
|
19081
|
-
|
|
19082
|
-
|
|
19083
|
-
|
|
19084
|
-
|
|
19085
|
-
|
|
19086
|
-
|
|
19121
|
+
var controller = new AbortController(), node = (_scrollRef_current = scrollRef.current) === null || _scrollRef_current === void 0 ? void 0 : _scrollRef_current.getScrollableNode();
|
|
19122
|
+
if (node) {
|
|
19123
|
+
node.addEventListener(
|
|
19124
|
+
"touchmove",
|
|
19125
|
+
function(e) {
|
|
19126
|
+
scrollBridge.isParentDragging && node.scrollTo({
|
|
19127
|
+
top: scrollBridge.y,
|
|
19128
|
+
behavior: "instant"
|
|
19129
|
+
});
|
|
19130
|
+
},
|
|
19131
|
+
// can't preventdefault its not cancellable
|
|
19132
|
+
{
|
|
19133
|
+
signal: controller.signal,
|
|
19134
|
+
passive: !1
|
|
19135
|
+
}
|
|
19136
|
+
);
|
|
19137
|
+
var disposeBridgeListen = scrollBridge.onParentDragging(function(val) {
|
|
19138
|
+
});
|
|
19139
|
+
return function() {
|
|
19140
|
+
disposeBridgeListen(), controller.abort();
|
|
19141
|
+
};
|
|
19142
|
+
}
|
|
19087
19143
|
}
|
|
19088
|
-
}, [
|
|
19144
|
+
}, [
|
|
19145
|
+
scrollRef
|
|
19146
|
+
]);
|
|
19089
19147
|
var [hasScrollableContent, setHasScrollableContent] = (0, import_react3.useState)(!0), parentHeight = (0, import_react3.useRef)(0), contentHeight = (0, import_react3.useRef)(0), setIsScrollable = function() {
|
|
19090
19148
|
parentHeight.current && contentHeight.current && setHasScrollableContent(contentHeight.current > parentHeight.current);
|
|
19091
19149
|
};
|