@tamagui/core 1.89.20 → 1.89.22
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 +46 -46
- package/dist/native.js.map +3 -3
- package/dist/test.native.js +46 -46
- package/dist/test.native.js.map +3 -3
- package/package.json +6 -6
package/dist/native.js
CHANGED
|
@@ -1873,40 +1873,6 @@ var require_useMedia_native = __commonJS({
|
|
|
1873
1873
|
}
|
|
1874
1874
|
});
|
|
1875
1875
|
|
|
1876
|
-
// ../web/dist/cjs/helpers/createShallowSetState.native.js
|
|
1877
|
-
var require_createShallowSetState_native = __commonJS({
|
|
1878
|
-
"../web/dist/cjs/helpers/createShallowSetState.native.js"(exports2, module2) {
|
|
1879
|
-
"use strict";
|
|
1880
|
-
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
1881
|
-
for (var name in all)
|
|
1882
|
-
__defProp2(target, name, { get: all[name], enumerable: !0 });
|
|
1883
|
-
}, __copyProps2 = (to, from, except, desc) => {
|
|
1884
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
1885
|
-
for (let key of __getOwnPropNames2(from))
|
|
1886
|
-
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
1887
|
-
return to;
|
|
1888
|
-
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), createShallowSetState_exports = {};
|
|
1889
|
-
__export2(createShallowSetState_exports, {
|
|
1890
|
-
createShallowSetState: () => createShallowSetState,
|
|
1891
|
-
isEqualShallow: () => isEqualShallow,
|
|
1892
|
-
mergeIfNotShallowEqual: () => mergeIfNotShallowEqual
|
|
1893
|
-
});
|
|
1894
|
-
module2.exports = __toCommonJS2(createShallowSetState_exports);
|
|
1895
|
-
function createShallowSetState(setter, debug) {
|
|
1896
|
-
return (next) => setter((prev) => mergeIfNotShallowEqual(prev, next, debug));
|
|
1897
|
-
}
|
|
1898
|
-
function mergeIfNotShallowEqual(prev, next, debug) {
|
|
1899
|
-
return isEqualShallow(prev, next) ? prev : (process.env.NODE_ENV === "development" && debug && console.warn("setStateShallow CHANGE", { prev, next }), { ...prev, ...next });
|
|
1900
|
-
}
|
|
1901
|
-
function isEqualShallow(prev, next) {
|
|
1902
|
-
for (let key in next)
|
|
1903
|
-
if (prev[key] !== next[key])
|
|
1904
|
-
return !1;
|
|
1905
|
-
return !0;
|
|
1906
|
-
}
|
|
1907
|
-
}
|
|
1908
|
-
});
|
|
1909
|
-
|
|
1910
1876
|
// ../web/dist/cjs/constants/constants.native.js
|
|
1911
1877
|
var require_constants_native2 = __commonJS({
|
|
1912
1878
|
"../web/dist/cjs/constants/constants.native.js"(exports2, module2) {
|
|
@@ -2114,6 +2080,40 @@ var require_ThemeManagerContext_native = __commonJS({
|
|
|
2114
2080
|
}
|
|
2115
2081
|
});
|
|
2116
2082
|
|
|
2083
|
+
// ../web/dist/cjs/helpers/createShallowSetState.native.js
|
|
2084
|
+
var require_createShallowSetState_native = __commonJS({
|
|
2085
|
+
"../web/dist/cjs/helpers/createShallowSetState.native.js"(exports2, module2) {
|
|
2086
|
+
"use strict";
|
|
2087
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
2088
|
+
for (var name in all)
|
|
2089
|
+
__defProp2(target, name, { get: all[name], enumerable: !0 });
|
|
2090
|
+
}, __copyProps2 = (to, from, except, desc) => {
|
|
2091
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
2092
|
+
for (let key of __getOwnPropNames2(from))
|
|
2093
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
2094
|
+
return to;
|
|
2095
|
+
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), createShallowSetState_exports = {};
|
|
2096
|
+
__export2(createShallowSetState_exports, {
|
|
2097
|
+
createShallowSetState: () => createShallowSetState,
|
|
2098
|
+
isEqualShallow: () => isEqualShallow,
|
|
2099
|
+
mergeIfNotShallowEqual: () => mergeIfNotShallowEqual
|
|
2100
|
+
});
|
|
2101
|
+
module2.exports = __toCommonJS2(createShallowSetState_exports);
|
|
2102
|
+
function createShallowSetState(setter, debug) {
|
|
2103
|
+
return (next) => setter((prev) => mergeIfNotShallowEqual(prev, next, debug));
|
|
2104
|
+
}
|
|
2105
|
+
function mergeIfNotShallowEqual(prev, next, debug) {
|
|
2106
|
+
return isEqualShallow(prev, next) ? prev : (process.env.NODE_ENV === "development" && debug && console.warn("setStateShallow CHANGE", { prev, next }), { ...prev, ...next });
|
|
2107
|
+
}
|
|
2108
|
+
function isEqualShallow(prev, next) {
|
|
2109
|
+
for (let key in next)
|
|
2110
|
+
if (prev[key] !== next[key])
|
|
2111
|
+
return !1;
|
|
2112
|
+
return !0;
|
|
2113
|
+
}
|
|
2114
|
+
}
|
|
2115
|
+
});
|
|
2116
|
+
|
|
2117
2117
|
// ../web/dist/cjs/hooks/useTheme.native.js
|
|
2118
2118
|
var require_useTheme_native = __commonJS({
|
|
2119
2119
|
"../web/dist/cjs/hooks/useTheme.native.js"(exports2, module2) {
|
|
@@ -2136,7 +2136,7 @@ var require_useTheme_native = __commonJS({
|
|
|
2136
2136
|
useThemeWithState: () => useThemeWithState
|
|
2137
2137
|
});
|
|
2138
2138
|
module2.exports = __toCommonJS2(useTheme_exports);
|
|
2139
|
-
var import_constants = require_index_native3(), import_react3 = require("react"), import_config = require_config_native(), import_createVariable = require_createVariable_native(),
|
|
2139
|
+
var import_constants = require_index_native3(), import_react3 = require("react"), import_config = require_config_native(), import_createVariable = require_createVariable_native(), import_ThemeManager = require_ThemeManager_native(), import_ThemeManagerContext = require_ThemeManagerContext_native(), import_createShallowSetState = require_createShallowSetState_native(), emptyProps = { name: null }, cached;
|
|
2140
2140
|
function getDefaultThemeProxied() {
|
|
2141
2141
|
if (cached)
|
|
2142
2142
|
return cached;
|
|
@@ -6307,9 +6307,9 @@ var require_proxyThemeVariables_native = __commonJS({
|
|
|
6307
6307
|
}
|
|
6308
6308
|
});
|
|
6309
6309
|
|
|
6310
|
-
// ../web/dist/cjs/
|
|
6311
|
-
var
|
|
6312
|
-
"../web/dist/cjs/
|
|
6310
|
+
// ../web/dist/cjs/_withStableStyle.native.js
|
|
6311
|
+
var require_withStableStyle_native = __commonJS({
|
|
6312
|
+
"../web/dist/cjs/_withStableStyle.native.js"(exports2, module2) {
|
|
6313
6313
|
"use strict";
|
|
6314
6314
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
6315
6315
|
for (var name in all)
|
|
@@ -6319,15 +6319,15 @@ var require_internalWithTheme_native = __commonJS({
|
|
|
6319
6319
|
for (let key of __getOwnPropNames2(from))
|
|
6320
6320
|
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
6321
6321
|
return to;
|
|
6322
|
-
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod),
|
|
6323
|
-
__export2(
|
|
6324
|
-
|
|
6322
|
+
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), withStableStyle_exports = {};
|
|
6323
|
+
__export2(withStableStyle_exports, {
|
|
6324
|
+
_withStableStyle: () => _withStableStyle
|
|
6325
6325
|
});
|
|
6326
|
-
module2.exports = __toCommonJS2(
|
|
6327
|
-
var import_useTheme = require_useTheme_native(), import_jsx_runtime = require("react/jsx-runtime"),
|
|
6326
|
+
module2.exports = __toCommonJS2(withStableStyle_exports);
|
|
6327
|
+
var import_react3 = require("react"), import_useTheme = require_useTheme_native(), import_jsx_runtime = require("react/jsx-runtime"), _withStableStyle = (Component, styleProvider) => (0, import_react3.forwardRef)((props, ref) => {
|
|
6328
6328
|
let { _expressions = [], ...rest } = props, theme = (0, import_useTheme.useTheme)();
|
|
6329
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Component, { style: styleProvider(theme, _expressions), ...rest });
|
|
6330
|
-
};
|
|
6329
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Component, { ref, style: styleProvider(theme, _expressions), ...rest });
|
|
6330
|
+
});
|
|
6331
6331
|
}
|
|
6332
6332
|
});
|
|
6333
6333
|
|
|
@@ -6860,7 +6860,7 @@ var require_index_native9 = __commonJS({
|
|
|
6860
6860
|
__reExport2(src_exports2, require_themeable_native(), module2.exports);
|
|
6861
6861
|
__reExport2(src_exports2, require_themes_native(), module2.exports);
|
|
6862
6862
|
__reExport2(src_exports2, require_transformsToString_native(), module2.exports);
|
|
6863
|
-
__reExport2(src_exports2,
|
|
6863
|
+
__reExport2(src_exports2, require_withStableStyle_native(), module2.exports);
|
|
6864
6864
|
var import_useMedia = require_useMedia_native();
|
|
6865
6865
|
__reExport2(src_exports2, require_useTheme_native(), module2.exports);
|
|
6866
6866
|
__reExport2(src_exports2, require_useThemeName_native(), module2.exports);
|