@tamagui/core 1.114.0 → 1.114.2
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 +88 -39
- package/dist/native.js.map +3 -3
- package/dist/test.native.js +88 -39
- package/dist/test.native.js.map +3 -3
- package/package.json +6 -6
package/dist/native.js
CHANGED
|
@@ -7913,6 +7913,56 @@ var require_themeable_native = __commonJS({
|
|
|
7913
7913
|
}
|
|
7914
7914
|
});
|
|
7915
7915
|
|
|
7916
|
+
// ../web/dist/cjs/helpers/wrapStyleTags.native.js
|
|
7917
|
+
var require_wrapStyleTags_native = __commonJS({
|
|
7918
|
+
"../web/dist/cjs/helpers/wrapStyleTags.native.js"(exports2, module2) {
|
|
7919
|
+
"use strict";
|
|
7920
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
7921
|
+
for (var name in all) __defProp2(target, name, {
|
|
7922
|
+
get: all[name],
|
|
7923
|
+
enumerable: !0
|
|
7924
|
+
});
|
|
7925
|
+
}, __copyProps2 = function(to, from, except, desc) {
|
|
7926
|
+
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
7927
|
+
if (from && typeof from == "object" || typeof from == "function") try {
|
|
7928
|
+
for (var _loop = function() {
|
|
7929
|
+
var key = _step.value;
|
|
7930
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
7931
|
+
get: function() {
|
|
7932
|
+
return from[key];
|
|
7933
|
+
},
|
|
7934
|
+
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
7935
|
+
});
|
|
7936
|
+
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
7937
|
+
} catch (err) {
|
|
7938
|
+
_didIteratorError = !0, _iteratorError = err;
|
|
7939
|
+
} finally {
|
|
7940
|
+
try {
|
|
7941
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
7942
|
+
} finally {
|
|
7943
|
+
if (_didIteratorError)
|
|
7944
|
+
throw _iteratorError;
|
|
7945
|
+
}
|
|
7946
|
+
}
|
|
7947
|
+
return to;
|
|
7948
|
+
}, __toCommonJS2 = function(mod) {
|
|
7949
|
+
return __copyProps2(__defProp2({}, "__esModule", {
|
|
7950
|
+
value: !0
|
|
7951
|
+
}), mod);
|
|
7952
|
+
}, wrapStyleTags_exports = {};
|
|
7953
|
+
__export2(wrapStyleTags_exports, {
|
|
7954
|
+
wrapStyleTags: function() {
|
|
7955
|
+
return wrapStyleTags;
|
|
7956
|
+
}
|
|
7957
|
+
});
|
|
7958
|
+
module2.exports = __toCommonJS2(wrapStyleTags_exports);
|
|
7959
|
+
var import_jsx_runtime = require("react/jsx-runtime"), import_helpers = require_index_native4();
|
|
7960
|
+
function wrapStyleTags(styles, content) {
|
|
7961
|
+
return process.env.TAMAGUI_REACT_19, content;
|
|
7962
|
+
}
|
|
7963
|
+
}
|
|
7964
|
+
});
|
|
7965
|
+
|
|
7916
7966
|
// ../web/dist/cjs/hooks/useDidHydrateOnce.native.js
|
|
7917
7967
|
var require_useDidHydrateOnce_native = __commonJS({
|
|
7918
7968
|
"../web/dist/cjs/hooks/useDidHydrateOnce.native.js"(exports2, module2) {
|
|
@@ -8344,7 +8394,7 @@ var require_createComponent_native = __commonJS({
|
|
|
8344
8394
|
}
|
|
8345
8395
|
});
|
|
8346
8396
|
module2.exports = __toCommonJS2(createComponent_exports);
|
|
8347
|
-
var import_jsx_runtime = require("react/jsx-runtime"), import_compose_refs = require_index_native5(), import_constants2 = require_index_native3(), import_helpers = require_index_native4(), import_react3 = __toESM2(require("react")), import_config = require_config_native(), import_constants22 = require_constants_native2(), import_isDevTools = require_isDevTools_native(), import_ComponentContext = require_ComponentContext_native(), import_createVariable = require_createVariable_native(), import_defaultComponentState = require_defaultComponentState_native(), import_getSplitStyles = require_getSplitStyles_native(), import_log = require_log_native(), import_mergeProps = require_mergeProps_native(), import_setElementProps = require_setElementProps_native(), import_subscribeToContextGroup = require_subscribeToContextGroup_native(), import_themeable = require_themeable_native(), import_useComponentState = require_useComponentState_native(), import_useMedia = require_useMedia_native(), import_useTheme = require_useTheme_native(), import_setupHooks = require_setupHooks_native(), import_Slot = require_Slot_native(), import_Theme = require_Theme_native(), import_ThemeDebug = require_ThemeDebug_native(), tamaguiConfig, time, debugKeyListeners, startVisualizer, componentSetStates = /* @__PURE__ */ new Set();
|
|
8397
|
+
var import_jsx_runtime = require("react/jsx-runtime"), import_compose_refs = require_index_native5(), import_constants2 = require_index_native3(), import_helpers = require_index_native4(), import_react3 = __toESM2(require("react")), import_config = require_config_native(), import_constants22 = require_constants_native2(), import_isDevTools = require_isDevTools_native(), import_ComponentContext = require_ComponentContext_native(), import_createVariable = require_createVariable_native(), import_defaultComponentState = require_defaultComponentState_native(), import_getSplitStyles = require_getSplitStyles_native(), import_log = require_log_native(), import_mergeProps = require_mergeProps_native(), import_setElementProps = require_setElementProps_native(), import_subscribeToContextGroup = require_subscribeToContextGroup_native(), import_themeable = require_themeable_native(), import_wrapStyleTags = require_wrapStyleTags_native(), import_useComponentState = require_useComponentState_native(), import_useMedia = require_useMedia_native(), import_useTheme = require_useTheme_native(), import_setupHooks = require_setupHooks_native(), import_Slot = require_Slot_native(), import_Theme = require_Theme_native(), import_ThemeDebug = require_ThemeDebug_native(), tamaguiConfig, time, debugKeyListeners, startVisualizer, componentSetStates = /* @__PURE__ */ new Set();
|
|
8348
8398
|
typeof document < "u" && (cancelTouches = function() {
|
|
8349
8399
|
componentSetStates.forEach(function(setState) {
|
|
8350
8400
|
return setState(function(prev) {
|
|
@@ -8794,7 +8844,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
8794
8844
|
children: content
|
|
8795
8845
|
});
|
|
8796
8846
|
}
|
|
8797
|
-
|
|
8847
|
+
var { rulesToInsert } = splitStyles;
|
|
8798
8848
|
if (process.env.NODE_ENV === "development" && debugProp && debugProp !== "profile") {
|
|
8799
8849
|
var element1 = typeof elementType == "string" ? elementType : "Component", title = `render <${element1} /> (${internalID}) with props`;
|
|
8800
8850
|
if (import_constants2.isWeb) {
|
|
@@ -10121,46 +10171,44 @@ var require_styled_native = __commonJS({
|
|
|
10121
10171
|
function styled(ComponentIn, options, staticExtractionOptions) {
|
|
10122
10172
|
if (process.env.NODE_ENV !== "production" && !ComponentIn) throw new Error("No component given to styled()");
|
|
10123
10173
|
var parentStaticConfig = ComponentIn.staticConfig, isPlainStyledComponent = !!parentStaticConfig && !(parentStaticConfig.isReactNative || parentStaticConfig.isHOC), isNonStyledHOC = (parentStaticConfig == null ? void 0 : parentStaticConfig.isHOC) && !(parentStaticConfig != null && parentStaticConfig.isStyledHOC), Component = isNonStyledHOC || isPlainStyledComponent ? ComponentIn : (parentStaticConfig == null ? void 0 : parentStaticConfig.Component) || ComponentIn, reactNativeConfig = parentStaticConfig ? void 0 : (0, import_setupReactNative.getReactNativeConfig)(Component), isReactNative = !!(reactNativeConfig || staticExtractionOptions != null && staticExtractionOptions.isReactNative || parentStaticConfig != null && parentStaticConfig.isReactNative), staticConfigProps = function() {
|
|
10124
|
-
|
|
10125
|
-
|
|
10126
|
-
|
|
10127
|
-
|
|
10128
|
-
|
|
10129
|
-
|
|
10130
|
-
|
|
10131
|
-
|
|
10132
|
-
parentStaticConfig.defaultVariants && key2 in parentStaticConfig.defaultVariants && (!defaultVariants || !(key2 in defaultVariants)) && (parentDefaultVariants || (parentDefaultVariants = {}), parentDefaultVariants[key2] = val), key2 in defaultProps || (parentDefaultProps || (parentDefaultProps = {}), parentDefaultProps[key2] = pdp[key2]);
|
|
10133
|
-
}
|
|
10134
|
-
parentStaticConfig.variants && (variants = (0, import_mergeVariants.mergeVariants)(parentStaticConfig.variants, variants));
|
|
10174
|
+
var { variants, name, defaultVariants, acceptsClassName: acceptsClassNameProp, context, ...defaultProps } = options || {}, parentDefaultVariants, parentDefaultProps;
|
|
10175
|
+
if (parentStaticConfig) {
|
|
10176
|
+
var avoid = parentStaticConfig.isHOC && !parentStaticConfig.isStyledHOC;
|
|
10177
|
+
if (!avoid) {
|
|
10178
|
+
var pdp = parentStaticConfig.defaultProps;
|
|
10179
|
+
for (var key2 in pdp) {
|
|
10180
|
+
var val = pdp[key2];
|
|
10181
|
+
parentStaticConfig.defaultVariants && key2 in parentStaticConfig.defaultVariants && (!defaultVariants || !(key2 in defaultVariants)) && (parentDefaultVariants || (parentDefaultVariants = {}), parentDefaultVariants[key2] = val), key2 in defaultProps || (parentDefaultProps || (parentDefaultProps = {}), parentDefaultProps[key2] = pdp[key2]);
|
|
10135
10182
|
}
|
|
10183
|
+
parentStaticConfig.variants && (variants = (0, import_mergeVariants.mergeVariants)(parentStaticConfig.variants, variants));
|
|
10136
10184
|
}
|
|
10137
|
-
(parentDefaultProps || defaultVariants || parentDefaultVariants) && (defaultProps = {
|
|
10138
|
-
...parentDefaultProps,
|
|
10139
|
-
...parentDefaultVariants,
|
|
10140
|
-
...defaultProps,
|
|
10141
|
-
...defaultVariants
|
|
10142
|
-
}), parentStaticConfig != null && parentStaticConfig.isHOC && name && (defaultProps.componentName = name);
|
|
10143
|
-
var isText = !!(staticExtractionOptions != null && staticExtractionOptions.isText || parentStaticConfig != null && parentStaticConfig.isText), _staticExtractionOptions_acceptsClassName, _ref, acceptsClassName = (_ref = (_staticExtractionOptions_acceptsClassName = staticExtractionOptions == null ? void 0 : staticExtractionOptions.acceptsClassName) !== null && _staticExtractionOptions_acceptsClassName !== void 0 ? _staticExtractionOptions_acceptsClassName : acceptsClassNameProp) !== null && _ref !== void 0 ? _ref : isPlainStyledComponent || isReactNative || (parentStaticConfig == null ? void 0 : parentStaticConfig.isHOC) && (parentStaticConfig == null ? void 0 : parentStaticConfig.acceptsClassName), conf = {
|
|
10144
|
-
...parentStaticConfig,
|
|
10145
|
-
...staticExtractionOptions,
|
|
10146
|
-
...!isPlainStyledComponent && {
|
|
10147
|
-
Component
|
|
10148
|
-
},
|
|
10149
|
-
// @ts-expect-error
|
|
10150
|
-
variants,
|
|
10151
|
-
defaultProps,
|
|
10152
|
-
defaultVariants,
|
|
10153
|
-
componentName: name || (parentStaticConfig == null ? void 0 : parentStaticConfig.componentName),
|
|
10154
|
-
isReactNative,
|
|
10155
|
-
isText,
|
|
10156
|
-
acceptsClassName,
|
|
10157
|
-
context,
|
|
10158
|
-
...reactNativeConfig,
|
|
10159
|
-
isStyledHOC: !!(parentStaticConfig != null && parentStaticConfig.isHOC),
|
|
10160
|
-
parentStaticConfig
|
|
10161
|
-
};
|
|
10162
|
-
return (defaultProps.children || !acceptsClassName || context) && (conf.neverFlatten = !0), conf;
|
|
10163
10185
|
}
|
|
10186
|
+
(parentDefaultProps || defaultVariants || parentDefaultVariants) && (defaultProps = {
|
|
10187
|
+
...parentDefaultProps,
|
|
10188
|
+
...parentDefaultVariants,
|
|
10189
|
+
...defaultProps,
|
|
10190
|
+
...defaultVariants
|
|
10191
|
+
}), parentStaticConfig != null && parentStaticConfig.isHOC && name && (defaultProps.componentName = name);
|
|
10192
|
+
var isText = !!(staticExtractionOptions != null && staticExtractionOptions.isText || parentStaticConfig != null && parentStaticConfig.isText), _staticExtractionOptions_acceptsClassName, _ref, acceptsClassName = (_ref = (_staticExtractionOptions_acceptsClassName = staticExtractionOptions == null ? void 0 : staticExtractionOptions.acceptsClassName) !== null && _staticExtractionOptions_acceptsClassName !== void 0 ? _staticExtractionOptions_acceptsClassName : acceptsClassNameProp) !== null && _ref !== void 0 ? _ref : isPlainStyledComponent || isReactNative || (parentStaticConfig == null ? void 0 : parentStaticConfig.isHOC) && (parentStaticConfig == null ? void 0 : parentStaticConfig.acceptsClassName), conf = {
|
|
10193
|
+
...parentStaticConfig,
|
|
10194
|
+
...staticExtractionOptions,
|
|
10195
|
+
...!isPlainStyledComponent && {
|
|
10196
|
+
Component
|
|
10197
|
+
},
|
|
10198
|
+
// @ts-expect-error
|
|
10199
|
+
variants,
|
|
10200
|
+
defaultProps,
|
|
10201
|
+
defaultVariants,
|
|
10202
|
+
componentName: name || (parentStaticConfig == null ? void 0 : parentStaticConfig.componentName),
|
|
10203
|
+
isReactNative,
|
|
10204
|
+
isText,
|
|
10205
|
+
acceptsClassName,
|
|
10206
|
+
context,
|
|
10207
|
+
...reactNativeConfig,
|
|
10208
|
+
isStyledHOC: !!(parentStaticConfig != null && parentStaticConfig.isHOC),
|
|
10209
|
+
parentStaticConfig
|
|
10210
|
+
};
|
|
10211
|
+
return (defaultProps.children || !acceptsClassName || context) && (conf.neverFlatten = !0), conf;
|
|
10164
10212
|
}(), component = (0, import_createComponent.createComponent)(staticConfigProps || {});
|
|
10165
10213
|
for (var key in ComponentIn) key !== "propTypes" && (key in component || (component[key] = ComponentIn[key]));
|
|
10166
10214
|
return component;
|
|
@@ -11685,6 +11733,7 @@ var require_index_native9 = __commonJS({
|
|
|
11685
11733
|
__reExport2(src_exports2, require_themeable_native(), module2.exports);
|
|
11686
11734
|
__reExport2(src_exports2, require_themes_native(), module2.exports);
|
|
11687
11735
|
__reExport2(src_exports2, require_transformsToString_native(), module2.exports);
|
|
11736
|
+
__reExport2(src_exports2, require_wrapStyleTags_native(), module2.exports);
|
|
11688
11737
|
var import_useMedia = require_useMedia_native();
|
|
11689
11738
|
__reExport2(src_exports2, require_useTheme_native(), module2.exports);
|
|
11690
11739
|
__reExport2(src_exports2, require_useThemeName_native(), module2.exports);
|