tamagui 1.88.15 → 1.88.17
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 +54 -41
- package/dist/native.js.map +2 -2
- package/dist/test.native.js +8 -6
- package/dist/test.native.js.map +2 -2
- package/package.json +54 -54
- package/src/views/Input.tsx +1 -1
- package/types/views/Input.d.ts +15 -15
- package/types/views/TextArea.d.ts +5 -5
package/dist/native.js
CHANGED
|
@@ -1864,7 +1864,7 @@ var require_ThemeManager_native = __commonJS({
|
|
|
1864
1864
|
potentials = [...componentPotentials, ...potentials, ...allComponentThemes];
|
|
1865
1865
|
}
|
|
1866
1866
|
let found = potentials.find((t) => t in themes);
|
|
1867
|
-
if (process.env.NODE_ENV !== "production" && typeof props.debug == "string" && console.info(" getState ", {
|
|
1867
|
+
if (process.env.NODE_ENV !== "production" && typeof props.debug == "string" && import_constants4.isClient && console.info(" getState ", {
|
|
1868
1868
|
props,
|
|
1869
1869
|
found,
|
|
1870
1870
|
potentials,
|
|
@@ -1885,7 +1885,7 @@ var require_ThemeManager_native = __commonJS({
|
|
|
1885
1885
|
break;
|
|
1886
1886
|
}
|
|
1887
1887
|
}
|
|
1888
|
-
return process.env.NODE_ENV !== "production" && props.debug === "verbose" &&
|
|
1888
|
+
return process.env.NODE_ENV !== "production" && props.debug === "verbose" && import_constants4.isClient && (console.groupCollapsed("ThemeManager.getState()"), console.info({ props, baseName, base, min: min2, max: max2 }), console.warn("result", { result }), console.trace(), console.groupEnd()), result;
|
|
1889
1889
|
}
|
|
1890
1890
|
var inverseThemeName = (themeName) => themeName.startsWith("light") ? themeName.replace(/^light/, "dark") : themeName.replace(/^dark/, "light");
|
|
1891
1891
|
function getManagers(themeManager) {
|
|
@@ -1958,10 +1958,14 @@ var require_useTheme_native = __commonJS({
|
|
|
1958
1958
|
import_constants4.isServer ? void 0 : () => {
|
|
1959
1959
|
var _a, _b;
|
|
1960
1960
|
let next = ((_a = props.shouldUpdate) == null ? void 0 : _a.call(props)) ?? (keys.current.length > 0 ? !0 : void 0);
|
|
1961
|
-
return process.env.NODE_ENV === "development" && typeof props.debug == "string" && props.debug !== "profile" && console.info(
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1961
|
+
return process.env.NODE_ENV === "development" && typeof props.debug == "string" && props.debug !== "profile" && console.info(
|
|
1962
|
+
" \u{1F3A8} useTheme() shouldUpdate?",
|
|
1963
|
+
next,
|
|
1964
|
+
import_constants4.isClient ? {
|
|
1965
|
+
shouldUpdateProp: (_b = props.shouldUpdate) == null ? void 0 : _b.call(props),
|
|
1966
|
+
keys: [...keys.current]
|
|
1967
|
+
} : ""
|
|
1968
|
+
), next;
|
|
1965
1969
|
}
|
|
1966
1970
|
), { themeManager, state } = changedThemeState;
|
|
1967
1971
|
process.env.NODE_ENV === "development" && (state != null && state.theme || process.env.TAMAGUI_DISABLE_NO_THEME_WARNING !== "1" && console.warn(
|
|
@@ -3575,7 +3579,7 @@ var require_propMapper_native = __commonJS({
|
|
|
3575
3579
|
propMapper: () => propMapper
|
|
3576
3580
|
});
|
|
3577
3581
|
module2.exports = __toCommonJS2(propMapper_exports);
|
|
3578
|
-
var import_constants4 = require_index_native6(), import_helpers = require_index_native7(), import_config = require_config_native(),
|
|
3582
|
+
var import_constants4 = require_index_native6(), import_helpers = require_index_native7(), import_config = require_config_native(), import_createVariable = require_createVariable_native(), import_expandStyle = require_expandStyle_native(), import_normalizeStyle = require_normalizeStyle_native(), import_getVariantExtras = require_getVariantExtras_native(), import_isObj = require_isObj_native(), import_pseudoDescriptors = require_pseudoDescriptors_native(), propMapper = (key, value, styleStateIn, subPropsIn) => {
|
|
3579
3583
|
var _a;
|
|
3580
3584
|
if (lastFontFamilyToken = null, !import_constants4.isAndroid && key === "elevationAndroid")
|
|
3581
3585
|
return;
|
|
@@ -3779,7 +3783,7 @@ var require_propMapper_native = __commonJS({
|
|
|
3779
3783
|
let out = resolveVariableValue(key, valOrVar, resolveAs);
|
|
3780
3784
|
return process.env.NODE_ENV === "development" && styleState.debug === "verbose" && console.info("resolved", resolveAs, valOrVar, out), out;
|
|
3781
3785
|
}
|
|
3782
|
-
|
|
3786
|
+
process.env.NODE_ENV === "development" && styleState.debug === "verbose" && console.warn(`Warning: no token found for ${key}, omitting`);
|
|
3783
3787
|
};
|
|
3784
3788
|
function resolveVariableValue(key, valOrVar, resolveValues) {
|
|
3785
3789
|
if (resolveValues === "none")
|
|
@@ -3817,7 +3821,8 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
3817
3821
|
module2.exports = __toCommonJS2(getSplitStyles_exports);
|
|
3818
3822
|
var import_constants4 = require_index_native6(), import_helpers = require_index_native7(), import_react2 = require("react"), import_config = require_config_native(), import_accessibilityDirectMap = require_accessibilityDirectMap_native(), import_constants22 = require_constants_native2(), import_isDevTools = require_isDevTools_native(), import_useMedia = require_useMedia_native(), import_createMediaStyle = require_createMediaStyle_native(), import_expandStyles = require_expandStyles_native(), import_getGroupPropParts = require_getGroupPropParts_native(), import_getStylesAtomic = require_getStylesAtomic_native(), import_insertStyleRule = require_insertStyleRule_native(), import_log = require_log_native(), import_normalizeValueWithProperty = require_normalizeValueWithProperty_native(), import_propMapper = require_propMapper_native(), import_pseudoDescriptors = require_pseudoDescriptors_native(), import_isObj = require_isObj_native(), IS_STATIC = process.env.IS_STATIC === "is_static", conf, PROP_SPLIT = "-";
|
|
3819
3823
|
function isValidStyleKey(key, staticConfig) {
|
|
3820
|
-
|
|
3824
|
+
var _a;
|
|
3825
|
+
return (staticConfig.validStyles || (staticConfig.isText || staticConfig.isInput ? import_helpers.stylePropsText : import_helpers.validStyles))[key] || ((_a = staticConfig.acceptTokens) == null ? void 0 : _a[key]);
|
|
3821
3826
|
}
|
|
3822
3827
|
var getSplitStyles = (props, staticConfig, theme, themeName, componentState, styleProps, parentSplitStyles, context, elementType, debug) => {
|
|
3823
3828
|
var _a, _b, _c, _e, _f, _g;
|
|
@@ -5022,39 +5027,47 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
5022
5027
|
content = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Provider, { ...contextValue, ...overriddenContextProps, children: content });
|
|
5023
5028
|
}
|
|
5024
5029
|
if (process.env.NODE_ENV === "development" && debugProp && debugProp !== "profile") {
|
|
5025
|
-
|
|
5026
|
-
|
|
5027
|
-
|
|
5028
|
-
|
|
5029
|
-
|
|
5030
|
-
|
|
5031
|
-
|
|
5032
|
-
|
|
5033
|
-
|
|
5034
|
-
|
|
5035
|
-
|
|
5036
|
-
|
|
5037
|
-
|
|
5038
|
-
|
|
5039
|
-
|
|
5040
|
-
|
|
5041
|
-
|
|
5042
|
-
|
|
5043
|
-
|
|
5044
|
-
|
|
5045
|
-
|
|
5046
|
-
|
|
5047
|
-
|
|
5048
|
-
|
|
5049
|
-
|
|
5050
|
-
|
|
5051
|
-
|
|
5052
|
-
|
|
5053
|
-
|
|
5054
|
-
|
|
5055
|
-
|
|
5030
|
+
let title = `render <${typeof elementType == "string" ? elementType : "Component"} /> (${internalID}) with props`;
|
|
5031
|
+
if (import_constants4.isWeb) {
|
|
5032
|
+
console.groupCollapsed(title);
|
|
5033
|
+
try {
|
|
5034
|
+
(0, import_log.log)("viewProps", viewProps), (0, import_log.log)("children", content), typeof window < "u" && ((0, import_log.log)("props in", propsIn, "mapped to", props, "in order", Object.keys(props)), (0, import_log.log)({
|
|
5035
|
+
animationStyles,
|
|
5036
|
+
classNames,
|
|
5037
|
+
content,
|
|
5038
|
+
defaultProps,
|
|
5039
|
+
elementType,
|
|
5040
|
+
events,
|
|
5041
|
+
initialState,
|
|
5042
|
+
isAnimated,
|
|
5043
|
+
isMediaArray,
|
|
5044
|
+
isStringElement,
|
|
5045
|
+
mediaListeningKeys,
|
|
5046
|
+
pseudos,
|
|
5047
|
+
shouldAttach,
|
|
5048
|
+
shouldAvoidClasses,
|
|
5049
|
+
shouldForcePseudo,
|
|
5050
|
+
shouldListenForMedia,
|
|
5051
|
+
splitStyles,
|
|
5052
|
+
splitStylesStyle,
|
|
5053
|
+
state,
|
|
5054
|
+
stateRef,
|
|
5055
|
+
staticConfig,
|
|
5056
|
+
styleProps,
|
|
5057
|
+
tamaguiConfig,
|
|
5058
|
+
themeState,
|
|
5059
|
+
viewProps,
|
|
5060
|
+
willBeAnimated
|
|
5061
|
+
}));
|
|
5062
|
+
} catch {
|
|
5063
|
+
}
|
|
5064
|
+
console.groupEnd();
|
|
5065
|
+
} else {
|
|
5066
|
+
(0, import_log.log)(title), (0, import_log.log)("final styles:");
|
|
5067
|
+
for (let key in splitStylesStyle)
|
|
5068
|
+
(0, import_log.log)(key, splitStylesStyle[key]);
|
|
5056
5069
|
}
|
|
5057
|
-
if (
|
|
5070
|
+
if (debugProp === "break")
|
|
5058
5071
|
debugger;
|
|
5059
5072
|
}
|
|
5060
5073
|
return process.env.NODE_ENV === "development" && time && (time`rest`, globalThis.willPrint || (globalThis.willPrint = !0, setTimeout(() => {
|