@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/test.native.js
CHANGED
|
@@ -7455,6 +7455,56 @@ var require_themeable_native = __commonJS({
|
|
|
7455
7455
|
}
|
|
7456
7456
|
});
|
|
7457
7457
|
|
|
7458
|
+
// ../web/dist/cjs/helpers/wrapStyleTags.native.js
|
|
7459
|
+
var require_wrapStyleTags_native = __commonJS({
|
|
7460
|
+
"../web/dist/cjs/helpers/wrapStyleTags.native.js"(exports2, module2) {
|
|
7461
|
+
"use strict";
|
|
7462
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
7463
|
+
for (var name in all) __defProp2(target, name, {
|
|
7464
|
+
get: all[name],
|
|
7465
|
+
enumerable: !0
|
|
7466
|
+
});
|
|
7467
|
+
}, __copyProps2 = function(to, from, except, desc) {
|
|
7468
|
+
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
7469
|
+
if (from && typeof from == "object" || typeof from == "function") try {
|
|
7470
|
+
for (var _loop = function() {
|
|
7471
|
+
var key = _step.value;
|
|
7472
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
7473
|
+
get: function() {
|
|
7474
|
+
return from[key];
|
|
7475
|
+
},
|
|
7476
|
+
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
7477
|
+
});
|
|
7478
|
+
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
7479
|
+
} catch (err) {
|
|
7480
|
+
_didIteratorError = !0, _iteratorError = err;
|
|
7481
|
+
} finally {
|
|
7482
|
+
try {
|
|
7483
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
7484
|
+
} finally {
|
|
7485
|
+
if (_didIteratorError)
|
|
7486
|
+
throw _iteratorError;
|
|
7487
|
+
}
|
|
7488
|
+
}
|
|
7489
|
+
return to;
|
|
7490
|
+
}, __toCommonJS2 = function(mod) {
|
|
7491
|
+
return __copyProps2(__defProp2({}, "__esModule", {
|
|
7492
|
+
value: !0
|
|
7493
|
+
}), mod);
|
|
7494
|
+
}, wrapStyleTags_exports = {};
|
|
7495
|
+
__export2(wrapStyleTags_exports, {
|
|
7496
|
+
wrapStyleTags: function() {
|
|
7497
|
+
return wrapStyleTags;
|
|
7498
|
+
}
|
|
7499
|
+
});
|
|
7500
|
+
module2.exports = __toCommonJS2(wrapStyleTags_exports);
|
|
7501
|
+
var import_jsx_runtime = require("react/jsx-runtime"), import_helpers = require_index_native4();
|
|
7502
|
+
function wrapStyleTags(styles, content) {
|
|
7503
|
+
return process.env.TAMAGUI_REACT_19, content;
|
|
7504
|
+
}
|
|
7505
|
+
}
|
|
7506
|
+
});
|
|
7507
|
+
|
|
7458
7508
|
// ../web/dist/cjs/hooks/useDidHydrateOnce.native.js
|
|
7459
7509
|
var require_useDidHydrateOnce_native = __commonJS({
|
|
7460
7510
|
"../web/dist/cjs/hooks/useDidHydrateOnce.native.js"(exports2, module2) {
|
|
@@ -7881,7 +7931,7 @@ var require_createComponent_native = __commonJS({
|
|
|
7881
7931
|
}
|
|
7882
7932
|
});
|
|
7883
7933
|
module2.exports = __toCommonJS2(createComponent_exports);
|
|
7884
|
-
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(), componentSetStates = /* @__PURE__ */ new Set();
|
|
7934
|
+
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(), componentSetStates = /* @__PURE__ */ new Set();
|
|
7885
7935
|
typeof document < "u" && (cancelTouches = function() {
|
|
7886
7936
|
componentSetStates.forEach(function(setState) {
|
|
7887
7937
|
return setState(function(prev) {
|
|
@@ -8212,7 +8262,7 @@ var require_createComponent_native = __commonJS({
|
|
|
8212
8262
|
children: content
|
|
8213
8263
|
});
|
|
8214
8264
|
}
|
|
8215
|
-
|
|
8265
|
+
var { rulesToInsert } = splitStyles;
|
|
8216
8266
|
if (0) {
|
|
8217
8267
|
var element1, title;
|
|
8218
8268
|
if (import_constants2.isWeb)
|
|
@@ -9499,46 +9549,44 @@ var require_styled_native = __commonJS({
|
|
|
9499
9549
|
function styled(ComponentIn, options, staticExtractionOptions) {
|
|
9500
9550
|
if (!ComponentIn) throw new Error("No component given to styled()");
|
|
9501
9551
|
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() {
|
|
9502
|
-
|
|
9503
|
-
|
|
9504
|
-
|
|
9505
|
-
|
|
9506
|
-
|
|
9507
|
-
|
|
9508
|
-
|
|
9509
|
-
|
|
9510
|
-
parentStaticConfig.defaultVariants && key2 in parentStaticConfig.defaultVariants && (!defaultVariants || !(key2 in defaultVariants)) && (parentDefaultVariants || (parentDefaultVariants = {}), parentDefaultVariants[key2] = val), key2 in defaultProps || (parentDefaultProps || (parentDefaultProps = {}), parentDefaultProps[key2] = pdp[key2]);
|
|
9511
|
-
}
|
|
9512
|
-
parentStaticConfig.variants && (variants = (0, import_mergeVariants.mergeVariants)(parentStaticConfig.variants, variants));
|
|
9552
|
+
var { variants, name, defaultVariants, acceptsClassName: acceptsClassNameProp, context, ...defaultProps } = options || {}, parentDefaultVariants, parentDefaultProps;
|
|
9553
|
+
if (parentStaticConfig) {
|
|
9554
|
+
var avoid = parentStaticConfig.isHOC && !parentStaticConfig.isStyledHOC;
|
|
9555
|
+
if (!avoid) {
|
|
9556
|
+
var pdp = parentStaticConfig.defaultProps;
|
|
9557
|
+
for (var key2 in pdp) {
|
|
9558
|
+
var val = pdp[key2];
|
|
9559
|
+
parentStaticConfig.defaultVariants && key2 in parentStaticConfig.defaultVariants && (!defaultVariants || !(key2 in defaultVariants)) && (parentDefaultVariants || (parentDefaultVariants = {}), parentDefaultVariants[key2] = val), key2 in defaultProps || (parentDefaultProps || (parentDefaultProps = {}), parentDefaultProps[key2] = pdp[key2]);
|
|
9513
9560
|
}
|
|
9561
|
+
parentStaticConfig.variants && (variants = (0, import_mergeVariants.mergeVariants)(parentStaticConfig.variants, variants));
|
|
9514
9562
|
}
|
|
9515
|
-
(parentDefaultProps || defaultVariants || parentDefaultVariants) && (defaultProps = {
|
|
9516
|
-
...parentDefaultProps,
|
|
9517
|
-
...parentDefaultVariants,
|
|
9518
|
-
...defaultProps,
|
|
9519
|
-
...defaultVariants
|
|
9520
|
-
}), parentStaticConfig != null && parentStaticConfig.isHOC && name && (defaultProps.componentName = name);
|
|
9521
|
-
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 = {
|
|
9522
|
-
...parentStaticConfig,
|
|
9523
|
-
...staticExtractionOptions,
|
|
9524
|
-
...!isPlainStyledComponent && {
|
|
9525
|
-
Component
|
|
9526
|
-
},
|
|
9527
|
-
// @ts-expect-error
|
|
9528
|
-
variants,
|
|
9529
|
-
defaultProps,
|
|
9530
|
-
defaultVariants,
|
|
9531
|
-
componentName: name || (parentStaticConfig == null ? void 0 : parentStaticConfig.componentName),
|
|
9532
|
-
isReactNative,
|
|
9533
|
-
isText,
|
|
9534
|
-
acceptsClassName,
|
|
9535
|
-
context,
|
|
9536
|
-
...reactNativeConfig,
|
|
9537
|
-
isStyledHOC: !!(parentStaticConfig != null && parentStaticConfig.isHOC),
|
|
9538
|
-
parentStaticConfig
|
|
9539
|
-
};
|
|
9540
|
-
return (defaultProps.children || !acceptsClassName || context) && (conf.neverFlatten = !0), conf;
|
|
9541
9563
|
}
|
|
9564
|
+
(parentDefaultProps || defaultVariants || parentDefaultVariants) && (defaultProps = {
|
|
9565
|
+
...parentDefaultProps,
|
|
9566
|
+
...parentDefaultVariants,
|
|
9567
|
+
...defaultProps,
|
|
9568
|
+
...defaultVariants
|
|
9569
|
+
}), parentStaticConfig != null && parentStaticConfig.isHOC && name && (defaultProps.componentName = name);
|
|
9570
|
+
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 = {
|
|
9571
|
+
...parentStaticConfig,
|
|
9572
|
+
...staticExtractionOptions,
|
|
9573
|
+
...!isPlainStyledComponent && {
|
|
9574
|
+
Component
|
|
9575
|
+
},
|
|
9576
|
+
// @ts-expect-error
|
|
9577
|
+
variants,
|
|
9578
|
+
defaultProps,
|
|
9579
|
+
defaultVariants,
|
|
9580
|
+
componentName: name || (parentStaticConfig == null ? void 0 : parentStaticConfig.componentName),
|
|
9581
|
+
isReactNative,
|
|
9582
|
+
isText,
|
|
9583
|
+
acceptsClassName,
|
|
9584
|
+
context,
|
|
9585
|
+
...reactNativeConfig,
|
|
9586
|
+
isStyledHOC: !!(parentStaticConfig != null && parentStaticConfig.isHOC),
|
|
9587
|
+
parentStaticConfig
|
|
9588
|
+
};
|
|
9589
|
+
return (defaultProps.children || !acceptsClassName || context) && (conf.neverFlatten = !0), conf;
|
|
9542
9590
|
}(), component = (0, import_createComponent.createComponent)(staticConfigProps || {});
|
|
9543
9591
|
for (var key in ComponentIn) key !== "propTypes" && (key in component || (component[key] = ComponentIn[key]));
|
|
9544
9592
|
return component;
|
|
@@ -11063,6 +11111,7 @@ var require_index_native9 = __commonJS({
|
|
|
11063
11111
|
__reExport2(src_exports2, require_themeable_native(), module2.exports);
|
|
11064
11112
|
__reExport2(src_exports2, require_themes_native(), module2.exports);
|
|
11065
11113
|
__reExport2(src_exports2, require_transformsToString_native(), module2.exports);
|
|
11114
|
+
__reExport2(src_exports2, require_wrapStyleTags_native(), module2.exports);
|
|
11066
11115
|
var import_useMedia = require_useMedia_native();
|
|
11067
11116
|
__reExport2(src_exports2, require_useTheme_native(), module2.exports);
|
|
11068
11117
|
__reExport2(src_exports2, require_useThemeName_native(), module2.exports);
|