@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/test.native.js
CHANGED
|
@@ -1816,40 +1816,6 @@ var require_useMedia_native = __commonJS({
|
|
|
1816
1816
|
}
|
|
1817
1817
|
});
|
|
1818
1818
|
|
|
1819
|
-
// ../web/dist/cjs/helpers/createShallowSetState.native.js
|
|
1820
|
-
var require_createShallowSetState_native = __commonJS({
|
|
1821
|
-
"../web/dist/cjs/helpers/createShallowSetState.native.js"(exports2, module2) {
|
|
1822
|
-
"use strict";
|
|
1823
|
-
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
1824
|
-
for (var name in all)
|
|
1825
|
-
__defProp2(target, name, { get: all[name], enumerable: !0 });
|
|
1826
|
-
}, __copyProps2 = (to, from, except, desc) => {
|
|
1827
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
1828
|
-
for (let key of __getOwnPropNames2(from))
|
|
1829
|
-
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
1830
|
-
return to;
|
|
1831
|
-
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), createShallowSetState_exports = {};
|
|
1832
|
-
__export2(createShallowSetState_exports, {
|
|
1833
|
-
createShallowSetState: () => createShallowSetState,
|
|
1834
|
-
isEqualShallow: () => isEqualShallow,
|
|
1835
|
-
mergeIfNotShallowEqual: () => mergeIfNotShallowEqual
|
|
1836
|
-
});
|
|
1837
|
-
module2.exports = __toCommonJS2(createShallowSetState_exports);
|
|
1838
|
-
function createShallowSetState(setter, debug) {
|
|
1839
|
-
return (next) => setter((prev) => mergeIfNotShallowEqual(prev, next, debug));
|
|
1840
|
-
}
|
|
1841
|
-
function mergeIfNotShallowEqual(prev, next, debug) {
|
|
1842
|
-
return isEqualShallow(prev, next) ? prev : { ...prev, ...next };
|
|
1843
|
-
}
|
|
1844
|
-
function isEqualShallow(prev, next) {
|
|
1845
|
-
for (let key in next)
|
|
1846
|
-
if (prev[key] !== next[key])
|
|
1847
|
-
return !1;
|
|
1848
|
-
return !0;
|
|
1849
|
-
}
|
|
1850
|
-
}
|
|
1851
|
-
});
|
|
1852
|
-
|
|
1853
1819
|
// ../web/dist/cjs/constants/constants.native.js
|
|
1854
1820
|
var require_constants_native2 = __commonJS({
|
|
1855
1821
|
"../web/dist/cjs/constants/constants.native.js"(exports2, module2) {
|
|
@@ -2057,6 +2023,40 @@ var require_ThemeManagerContext_native = __commonJS({
|
|
|
2057
2023
|
}
|
|
2058
2024
|
});
|
|
2059
2025
|
|
|
2026
|
+
// ../web/dist/cjs/helpers/createShallowSetState.native.js
|
|
2027
|
+
var require_createShallowSetState_native = __commonJS({
|
|
2028
|
+
"../web/dist/cjs/helpers/createShallowSetState.native.js"(exports2, module2) {
|
|
2029
|
+
"use strict";
|
|
2030
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
2031
|
+
for (var name in all)
|
|
2032
|
+
__defProp2(target, name, { get: all[name], enumerable: !0 });
|
|
2033
|
+
}, __copyProps2 = (to, from, except, desc) => {
|
|
2034
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
2035
|
+
for (let key of __getOwnPropNames2(from))
|
|
2036
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
2037
|
+
return to;
|
|
2038
|
+
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), createShallowSetState_exports = {};
|
|
2039
|
+
__export2(createShallowSetState_exports, {
|
|
2040
|
+
createShallowSetState: () => createShallowSetState,
|
|
2041
|
+
isEqualShallow: () => isEqualShallow,
|
|
2042
|
+
mergeIfNotShallowEqual: () => mergeIfNotShallowEqual
|
|
2043
|
+
});
|
|
2044
|
+
module2.exports = __toCommonJS2(createShallowSetState_exports);
|
|
2045
|
+
function createShallowSetState(setter, debug) {
|
|
2046
|
+
return (next) => setter((prev) => mergeIfNotShallowEqual(prev, next, debug));
|
|
2047
|
+
}
|
|
2048
|
+
function mergeIfNotShallowEqual(prev, next, debug) {
|
|
2049
|
+
return isEqualShallow(prev, next) ? prev : { ...prev, ...next };
|
|
2050
|
+
}
|
|
2051
|
+
function isEqualShallow(prev, next) {
|
|
2052
|
+
for (let key in next)
|
|
2053
|
+
if (prev[key] !== next[key])
|
|
2054
|
+
return !1;
|
|
2055
|
+
return !0;
|
|
2056
|
+
}
|
|
2057
|
+
}
|
|
2058
|
+
});
|
|
2059
|
+
|
|
2060
2060
|
// ../web/dist/cjs/hooks/useTheme.native.js
|
|
2061
2061
|
var require_useTheme_native = __commonJS({
|
|
2062
2062
|
"../web/dist/cjs/hooks/useTheme.native.js"(exports2, module2) {
|
|
@@ -2079,7 +2079,7 @@ var require_useTheme_native = __commonJS({
|
|
|
2079
2079
|
useThemeWithState: () => useThemeWithState
|
|
2080
2080
|
});
|
|
2081
2081
|
module2.exports = __toCommonJS2(useTheme_exports);
|
|
2082
|
-
var import_constants = require_index_native3(), import_react3 = require("react"), import_config = require_config_native(), import_createVariable = require_createVariable_native(),
|
|
2082
|
+
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;
|
|
2083
2083
|
function getDefaultThemeProxied() {
|
|
2084
2084
|
if (cached)
|
|
2085
2085
|
return cached;
|
|
@@ -5939,9 +5939,9 @@ var require_proxyThemeVariables_native = __commonJS({
|
|
|
5939
5939
|
}
|
|
5940
5940
|
});
|
|
5941
5941
|
|
|
5942
|
-
// ../web/dist/cjs/
|
|
5943
|
-
var
|
|
5944
|
-
"../web/dist/cjs/
|
|
5942
|
+
// ../web/dist/cjs/_withStableStyle.native.js
|
|
5943
|
+
var require_withStableStyle_native = __commonJS({
|
|
5944
|
+
"../web/dist/cjs/_withStableStyle.native.js"(exports2, module2) {
|
|
5945
5945
|
"use strict";
|
|
5946
5946
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
5947
5947
|
for (var name in all)
|
|
@@ -5951,15 +5951,15 @@ var require_internalWithTheme_native = __commonJS({
|
|
|
5951
5951
|
for (let key of __getOwnPropNames2(from))
|
|
5952
5952
|
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
5953
5953
|
return to;
|
|
5954
|
-
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod),
|
|
5955
|
-
__export2(
|
|
5956
|
-
|
|
5954
|
+
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), withStableStyle_exports = {};
|
|
5955
|
+
__export2(withStableStyle_exports, {
|
|
5956
|
+
_withStableStyle: () => _withStableStyle
|
|
5957
5957
|
});
|
|
5958
|
-
module2.exports = __toCommonJS2(
|
|
5959
|
-
var import_useTheme = require_useTheme_native(), import_jsx_runtime = require("react/jsx-runtime"),
|
|
5958
|
+
module2.exports = __toCommonJS2(withStableStyle_exports);
|
|
5959
|
+
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) => {
|
|
5960
5960
|
let { _expressions = [], ...rest } = props, theme = (0, import_useTheme.useTheme)();
|
|
5961
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Component, { style: styleProvider(theme, _expressions), ...rest });
|
|
5962
|
-
};
|
|
5961
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Component, { ref, style: styleProvider(theme, _expressions), ...rest });
|
|
5962
|
+
});
|
|
5963
5963
|
}
|
|
5964
5964
|
});
|
|
5965
5965
|
|
|
@@ -6492,7 +6492,7 @@ var require_index_native9 = __commonJS({
|
|
|
6492
6492
|
__reExport2(src_exports2, require_themeable_native(), module2.exports);
|
|
6493
6493
|
__reExport2(src_exports2, require_themes_native(), module2.exports);
|
|
6494
6494
|
__reExport2(src_exports2, require_transformsToString_native(), module2.exports);
|
|
6495
|
-
__reExport2(src_exports2,
|
|
6495
|
+
__reExport2(src_exports2, require_withStableStyle_native(), module2.exports);
|
|
6496
6496
|
var import_useMedia = require_useMedia_native();
|
|
6497
6497
|
__reExport2(src_exports2, require_useTheme_native(), module2.exports);
|
|
6498
6498
|
__reExport2(src_exports2, require_useThemeName_native(), module2.exports);
|