tamagui 1.131.1 → 1.131.3
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 +66 -12
- package/dist/native.js.map +3 -3
- package/dist/test.native.js +66 -12
- package/dist/test.native.js.map +3 -3
- package/package.json +55 -55
package/dist/test.native.js
CHANGED
|
@@ -7166,6 +7166,8 @@ var require_useThemeState_native = __commonJS({
|
|
|
7166
7166
|
if (name && reset) throw new Error("Cannot reset and set a new name at the same time.");
|
|
7167
7167
|
var { themes: themes2 } = (0, import_config.getConfig)();
|
|
7168
7168
|
if (reset) {
|
|
7169
|
+
var isSchemeOnly = parentName === "light" || parentName === "dark";
|
|
7170
|
+
if (isSchemeOnly) return parentName === "light" ? "dark" : "light";
|
|
7169
7171
|
var lastPartIndex = parentName.lastIndexOf("_"), name1 = lastPartIndex <= 0 ? parentName : parentName.slice(lastPartIndex), scheme = parentName.slice(0, lastPartIndex), result = themes2[name1] ? name1 : scheme;
|
|
7170
7172
|
return result;
|
|
7171
7173
|
}
|
|
@@ -23392,7 +23394,8 @@ var require_ListItem_native = __commonJS({
|
|
|
23392
23394
|
});
|
|
23393
23395
|
}), ListItem2 = (0, import_helpers.withStaticProperties)(ListItemComponent, {
|
|
23394
23396
|
Text: ListItemText,
|
|
23395
|
-
Subtitle: ListItemSubtitle
|
|
23397
|
+
Subtitle: ListItemSubtitle,
|
|
23398
|
+
Title: ListItemTitle
|
|
23396
23399
|
});
|
|
23397
23400
|
}
|
|
23398
23401
|
});
|
|
@@ -23974,6 +23977,7 @@ var require_Popper_native = __commonJS({
|
|
|
23974
23977
|
]);
|
|
23975
23978
|
var stackProps = anchorProps, refProps = getReferenceProps ? getReferenceProps(stackProps) : null, composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, ref);
|
|
23976
23979
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_core12.View, {
|
|
23980
|
+
...stackProps,
|
|
23977
23981
|
...refProps,
|
|
23978
23982
|
ref: composedRefs,
|
|
23979
23983
|
// this helps us with handling scoped poppers with many different targets
|
|
@@ -30181,6 +30185,64 @@ var require_helpers_native4 = __commonJS({
|
|
|
30181
30185
|
}
|
|
30182
30186
|
});
|
|
30183
30187
|
|
|
30188
|
+
// ../../core/use-window-dimensions/dist/cjs/initialValue.native.js
|
|
30189
|
+
var require_initialValue_native = __commonJS({
|
|
30190
|
+
"../../core/use-window-dimensions/dist/cjs/initialValue.native.js"(exports2, module2) {
|
|
30191
|
+
"use strict";
|
|
30192
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
30193
|
+
for (var name in all) __defProp2(target, name, {
|
|
30194
|
+
get: all[name],
|
|
30195
|
+
enumerable: !0
|
|
30196
|
+
});
|
|
30197
|
+
}, __copyProps2 = function(to, from, except, desc) {
|
|
30198
|
+
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
30199
|
+
if (from && typeof from == "object" || typeof from == "function") try {
|
|
30200
|
+
for (var _loop = function() {
|
|
30201
|
+
var key = _step.value;
|
|
30202
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
30203
|
+
get: function() {
|
|
30204
|
+
return from[key];
|
|
30205
|
+
},
|
|
30206
|
+
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
30207
|
+
});
|
|
30208
|
+
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
30209
|
+
} catch (err) {
|
|
30210
|
+
_didIteratorError = !0, _iteratorError = err;
|
|
30211
|
+
} finally {
|
|
30212
|
+
try {
|
|
30213
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
30214
|
+
} finally {
|
|
30215
|
+
if (_didIteratorError)
|
|
30216
|
+
throw _iteratorError;
|
|
30217
|
+
}
|
|
30218
|
+
}
|
|
30219
|
+
return to;
|
|
30220
|
+
}, __toCommonJS2 = function(mod) {
|
|
30221
|
+
return __copyProps2(__defProp2({}, "__esModule", {
|
|
30222
|
+
value: !0
|
|
30223
|
+
}), mod);
|
|
30224
|
+
}, initialValue_exports = {};
|
|
30225
|
+
__export2(initialValue_exports, {
|
|
30226
|
+
configureInitialWindowDimensions: function() {
|
|
30227
|
+
return configureInitialWindowDimensions2;
|
|
30228
|
+
},
|
|
30229
|
+
initialValue: function() {
|
|
30230
|
+
return initialValue;
|
|
30231
|
+
}
|
|
30232
|
+
});
|
|
30233
|
+
module2.exports = __toCommonJS2(initialValue_exports);
|
|
30234
|
+
var initialValue = {
|
|
30235
|
+
width: 800,
|
|
30236
|
+
height: 600,
|
|
30237
|
+
scale: 1,
|
|
30238
|
+
fontScale: 1
|
|
30239
|
+
};
|
|
30240
|
+
function configureInitialWindowDimensions2(next) {
|
|
30241
|
+
Object.assign(initialValue, next);
|
|
30242
|
+
}
|
|
30243
|
+
}
|
|
30244
|
+
});
|
|
30245
|
+
|
|
30184
30246
|
// ../../core/use-window-dimensions/dist/cjs/index.native.js
|
|
30185
30247
|
var require_index_native75 = __commonJS({
|
|
30186
30248
|
"../../core/use-window-dimensions/dist/cjs/index.native.js"(exports2, module2) {
|
|
@@ -30232,24 +30294,16 @@ var require_index_native75 = __commonJS({
|
|
|
30232
30294
|
}, index_exports2 = {};
|
|
30233
30295
|
__export2(index_exports2, {
|
|
30234
30296
|
configureInitialWindowDimensions: function() {
|
|
30235
|
-
return configureInitialWindowDimensions;
|
|
30297
|
+
return import_initialValue2.configureInitialWindowDimensions;
|
|
30236
30298
|
},
|
|
30237
30299
|
useWindowDimensions: function() {
|
|
30238
30300
|
return useWindowDimensions;
|
|
30239
30301
|
}
|
|
30240
30302
|
});
|
|
30241
30303
|
module2.exports = __toCommonJS2(index_exports2);
|
|
30242
|
-
var import_react3 = __toESM2(require("react")), import_constants4 = require_index_native6(), import_helpers = require_helpers_native4(),
|
|
30243
|
-
width: 800,
|
|
30244
|
-
height: 600,
|
|
30245
|
-
scale: 1,
|
|
30246
|
-
fontScale: 1
|
|
30247
|
-
};
|
|
30248
|
-
function configureInitialWindowDimensions(next) {
|
|
30249
|
-
Object.assign(initialValue, next);
|
|
30250
|
-
}
|
|
30304
|
+
var import_react3 = __toESM2(require("react")), import_constants4 = require_index_native6(), import_helpers = require_helpers_native4(), import_initialValue = require_initialValue_native(), import_initialValue2 = require_initialValue_native();
|
|
30251
30305
|
function useWindowDimensions() {
|
|
30252
|
-
var { serverValue = initialValue } = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
30306
|
+
var { serverValue = import_initialValue.initialValue } = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
30253
30307
|
return import_react3.default.useSyncExternalStore(import_helpers.subscribe, import_helpers.getWindowSize, function() {
|
|
30254
30308
|
return import_constants4.isWeb ? serverValue : (0, import_helpers.getWindowSize)();
|
|
30255
30309
|
});
|