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/native.js
CHANGED
|
@@ -7563,6 +7563,8 @@ var require_useThemeState_native = __commonJS({
|
|
|
7563
7563
|
if (name && reset) throw new Error(process.env.NODE_ENV === "production" ? "\u274C004" : "Cannot reset and set a new name at the same time.");
|
|
7564
7564
|
var { themes: themes2 } = (0, import_config.getConfig)();
|
|
7565
7565
|
if (reset) {
|
|
7566
|
+
var isSchemeOnly = parentName === "light" || parentName === "dark";
|
|
7567
|
+
if (isSchemeOnly) return parentName === "light" ? "dark" : "light";
|
|
7566
7568
|
var lastPartIndex = parentName.lastIndexOf("_"), name1 = lastPartIndex <= 0 ? parentName : parentName.slice(lastPartIndex), scheme = parentName.slice(0, lastPartIndex), result = themes2[name1] ? name1 : scheme;
|
|
7567
7569
|
return result;
|
|
7568
7570
|
}
|
|
@@ -24078,7 +24080,8 @@ var require_ListItem_native = __commonJS({
|
|
|
24078
24080
|
});
|
|
24079
24081
|
}), ListItem2 = (0, import_helpers.withStaticProperties)(ListItemComponent, {
|
|
24080
24082
|
Text: ListItemText,
|
|
24081
|
-
Subtitle: ListItemSubtitle
|
|
24083
|
+
Subtitle: ListItemSubtitle,
|
|
24084
|
+
Title: ListItemTitle
|
|
24082
24085
|
});
|
|
24083
24086
|
}
|
|
24084
24087
|
});
|
|
@@ -24660,6 +24663,7 @@ var require_Popper_native = __commonJS({
|
|
|
24660
24663
|
]);
|
|
24661
24664
|
var stackProps = anchorProps, refProps = getReferenceProps ? getReferenceProps(stackProps) : null, composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, ref);
|
|
24662
24665
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_core12.View, {
|
|
24666
|
+
...stackProps,
|
|
24663
24667
|
...refProps,
|
|
24664
24668
|
ref: composedRefs,
|
|
24665
24669
|
// this helps us with handling scoped poppers with many different targets
|
|
@@ -30872,6 +30876,64 @@ var require_helpers_native4 = __commonJS({
|
|
|
30872
30876
|
}
|
|
30873
30877
|
});
|
|
30874
30878
|
|
|
30879
|
+
// ../../core/use-window-dimensions/dist/cjs/initialValue.native.js
|
|
30880
|
+
var require_initialValue_native = __commonJS({
|
|
30881
|
+
"../../core/use-window-dimensions/dist/cjs/initialValue.native.js"(exports2, module2) {
|
|
30882
|
+
"use strict";
|
|
30883
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
30884
|
+
for (var name in all) __defProp2(target, name, {
|
|
30885
|
+
get: all[name],
|
|
30886
|
+
enumerable: !0
|
|
30887
|
+
});
|
|
30888
|
+
}, __copyProps2 = function(to, from, except, desc) {
|
|
30889
|
+
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
30890
|
+
if (from && typeof from == "object" || typeof from == "function") try {
|
|
30891
|
+
for (var _loop = function() {
|
|
30892
|
+
var key = _step.value;
|
|
30893
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
30894
|
+
get: function() {
|
|
30895
|
+
return from[key];
|
|
30896
|
+
},
|
|
30897
|
+
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
30898
|
+
});
|
|
30899
|
+
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
30900
|
+
} catch (err) {
|
|
30901
|
+
_didIteratorError = !0, _iteratorError = err;
|
|
30902
|
+
} finally {
|
|
30903
|
+
try {
|
|
30904
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
30905
|
+
} finally {
|
|
30906
|
+
if (_didIteratorError)
|
|
30907
|
+
throw _iteratorError;
|
|
30908
|
+
}
|
|
30909
|
+
}
|
|
30910
|
+
return to;
|
|
30911
|
+
}, __toCommonJS2 = function(mod) {
|
|
30912
|
+
return __copyProps2(__defProp2({}, "__esModule", {
|
|
30913
|
+
value: !0
|
|
30914
|
+
}), mod);
|
|
30915
|
+
}, initialValue_exports = {};
|
|
30916
|
+
__export2(initialValue_exports, {
|
|
30917
|
+
configureInitialWindowDimensions: function() {
|
|
30918
|
+
return configureInitialWindowDimensions2;
|
|
30919
|
+
},
|
|
30920
|
+
initialValue: function() {
|
|
30921
|
+
return initialValue;
|
|
30922
|
+
}
|
|
30923
|
+
});
|
|
30924
|
+
module2.exports = __toCommonJS2(initialValue_exports);
|
|
30925
|
+
var initialValue = {
|
|
30926
|
+
width: 800,
|
|
30927
|
+
height: 600,
|
|
30928
|
+
scale: 1,
|
|
30929
|
+
fontScale: 1
|
|
30930
|
+
};
|
|
30931
|
+
function configureInitialWindowDimensions2(next) {
|
|
30932
|
+
Object.assign(initialValue, next);
|
|
30933
|
+
}
|
|
30934
|
+
}
|
|
30935
|
+
});
|
|
30936
|
+
|
|
30875
30937
|
// ../../core/use-window-dimensions/dist/cjs/index.native.js
|
|
30876
30938
|
var require_index_native75 = __commonJS({
|
|
30877
30939
|
"../../core/use-window-dimensions/dist/cjs/index.native.js"(exports2, module2) {
|
|
@@ -30923,24 +30985,16 @@ var require_index_native75 = __commonJS({
|
|
|
30923
30985
|
}, index_exports2 = {};
|
|
30924
30986
|
__export2(index_exports2, {
|
|
30925
30987
|
configureInitialWindowDimensions: function() {
|
|
30926
|
-
return configureInitialWindowDimensions;
|
|
30988
|
+
return import_initialValue2.configureInitialWindowDimensions;
|
|
30927
30989
|
},
|
|
30928
30990
|
useWindowDimensions: function() {
|
|
30929
30991
|
return useWindowDimensions;
|
|
30930
30992
|
}
|
|
30931
30993
|
});
|
|
30932
30994
|
module2.exports = __toCommonJS2(index_exports2);
|
|
30933
|
-
var import_react3 = __toESM2(require("react")), import_constants4 = require_index_native6(), import_helpers = require_helpers_native4(),
|
|
30934
|
-
width: 800,
|
|
30935
|
-
height: 600,
|
|
30936
|
-
scale: 1,
|
|
30937
|
-
fontScale: 1
|
|
30938
|
-
};
|
|
30939
|
-
function configureInitialWindowDimensions(next) {
|
|
30940
|
-
Object.assign(initialValue, next);
|
|
30941
|
-
}
|
|
30995
|
+
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();
|
|
30942
30996
|
function useWindowDimensions() {
|
|
30943
|
-
var { serverValue = initialValue } = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
30997
|
+
var { serverValue = import_initialValue.initialValue } = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
30944
30998
|
return import_react3.default.useSyncExternalStore(import_helpers.subscribe, import_helpers.getWindowSize, function() {
|
|
30945
30999
|
return import_constants4.isWeb ? serverValue : (0, import_helpers.getWindowSize)();
|
|
30946
31000
|
});
|