@tamagui/core 1.125.2 → 1.125.4
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 +132 -107
- package/dist/native.js.map +3 -3
- package/dist/test.native.js +113 -74
- package/dist/test.native.js.map +3 -3
- package/package.json +7 -7
package/dist/native.js
CHANGED
|
@@ -1325,7 +1325,7 @@ var require_insertStyleRule_native = __commonJS({
|
|
|
1325
1325
|
return insertStyleRules;
|
|
1326
1326
|
},
|
|
1327
1327
|
insertedTransforms: function() {
|
|
1328
|
-
return
|
|
1328
|
+
return insertedTransforms;
|
|
1329
1329
|
},
|
|
1330
1330
|
listenForSheetChanges: function() {
|
|
1331
1331
|
return listenForSheetChanges;
|
|
@@ -1344,12 +1344,12 @@ var require_insertStyleRule_native = __commonJS({
|
|
|
1344
1344
|
}
|
|
1345
1345
|
});
|
|
1346
1346
|
module2.exports = __toCommonJS2(insertStyleRule_exports);
|
|
1347
|
-
var import_constants2 = require_index_native2(), import_helpers2 = require_index_native3(), import_createVariable = require_createVariable_native(), scannedCache = /* @__PURE__ */ new WeakMap(), totalSelectorsInserted = /* @__PURE__ */ new Map(), allSelectors = {}, allRules = {},
|
|
1347
|
+
var import_constants2 = require_index_native2(), import_helpers2 = require_index_native3(), import_createVariable = require_createVariable_native(), scannedCache = /* @__PURE__ */ new WeakMap(), totalSelectorsInserted = /* @__PURE__ */ new Map(), allSelectors = {}, allRules = {}, insertedTransforms = {}, getAllSelectors = function() {
|
|
1348
1348
|
return allSelectors;
|
|
1349
1349
|
}, getAllRules = function() {
|
|
1350
1350
|
return Object.values(allRules);
|
|
1351
1351
|
}, getAllTransforms = function() {
|
|
1352
|
-
return
|
|
1352
|
+
return insertedTransforms;
|
|
1353
1353
|
};
|
|
1354
1354
|
function addTransform(identifier, css, rule) {
|
|
1355
1355
|
var s = css.indexOf("transform:");
|
|
@@ -1358,7 +1358,7 @@ var require_insertStyleRule_native = __commonJS({
|
|
|
1358
1358
|
return;
|
|
1359
1359
|
}
|
|
1360
1360
|
var startI = s + 10, endI = css.indexOf(";"), value = css.slice(startI, endI);
|
|
1361
|
-
if (!
|
|
1361
|
+
if (!insertedTransforms[identifier]) return insertedTransforms[identifier] = value, !0;
|
|
1362
1362
|
}
|
|
1363
1363
|
function listenForSheetChanges() {
|
|
1364
1364
|
if (import_constants2.isClient) {
|
|
@@ -2713,6 +2713,59 @@ var require_defaultComponentState_native = __commonJS({
|
|
|
2713
2713
|
}
|
|
2714
2714
|
});
|
|
2715
2715
|
|
|
2716
|
+
// ../web/dist/cjs/helpers/consoleLog.native.js
|
|
2717
|
+
var require_consoleLog_native = __commonJS({
|
|
2718
|
+
"../web/dist/cjs/helpers/consoleLog.native.js"(exports2, module2) {
|
|
2719
|
+
"use strict";
|
|
2720
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
2721
|
+
for (var name in all) __defProp2(target, name, {
|
|
2722
|
+
get: all[name],
|
|
2723
|
+
enumerable: !0
|
|
2724
|
+
});
|
|
2725
|
+
}, __copyProps2 = function(to, from, except, desc) {
|
|
2726
|
+
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
2727
|
+
if (from && typeof from == "object" || typeof from == "function") try {
|
|
2728
|
+
for (var _loop = function() {
|
|
2729
|
+
var key = _step.value;
|
|
2730
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
2731
|
+
get: function() {
|
|
2732
|
+
return from[key];
|
|
2733
|
+
},
|
|
2734
|
+
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
2735
|
+
});
|
|
2736
|
+
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
2737
|
+
} catch (err) {
|
|
2738
|
+
_didIteratorError = !0, _iteratorError = err;
|
|
2739
|
+
} finally {
|
|
2740
|
+
try {
|
|
2741
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
2742
|
+
} finally {
|
|
2743
|
+
if (_didIteratorError)
|
|
2744
|
+
throw _iteratorError;
|
|
2745
|
+
}
|
|
2746
|
+
}
|
|
2747
|
+
return to;
|
|
2748
|
+
}, __toCommonJS2 = function(mod) {
|
|
2749
|
+
return __copyProps2(__defProp2({}, "__esModule", {
|
|
2750
|
+
value: !0
|
|
2751
|
+
}), mod);
|
|
2752
|
+
}, consoleLog_exports = {};
|
|
2753
|
+
__export2(consoleLog_exports, {
|
|
2754
|
+
gc: function() {
|
|
2755
|
+
return gc;
|
|
2756
|
+
},
|
|
2757
|
+
groupCollapsed: function() {
|
|
2758
|
+
return groupCollapsed;
|
|
2759
|
+
},
|
|
2760
|
+
groupEnd: function() {
|
|
2761
|
+
return groupEnd;
|
|
2762
|
+
}
|
|
2763
|
+
});
|
|
2764
|
+
module2.exports = __toCommonJS2(consoleLog_exports);
|
|
2765
|
+
var import_constants2 = require_index_native2(), groupEnd = console.groupEnd.bind(console), gc = console.groupCollapsed.bind(console), groupCollapsed = import_constants2.isWeb ? gc : console.info;
|
|
2766
|
+
}
|
|
2767
|
+
});
|
|
2768
|
+
|
|
2716
2769
|
// ../web/dist/cjs/helpers/getShorthandValue.native.js
|
|
2717
2770
|
var require_getShorthandValue_native = __commonJS({
|
|
2718
2771
|
"../web/dist/cjs/helpers/getShorthandValue.native.js"(exports2, module2) {
|
|
@@ -3957,6 +4010,8 @@ var require_log_native = __commonJS({
|
|
|
3957
4010
|
(0, import_useMedia._disableMediaTouch)(!0);
|
|
3958
4011
|
try {
|
|
3959
4012
|
return console.log(...args);
|
|
4013
|
+
} catch (err) {
|
|
4014
|
+
console.error(err);
|
|
3960
4015
|
} finally {
|
|
3961
4016
|
(0, import_useMedia._disableMediaTouch)(!1);
|
|
3962
4017
|
}
|
|
@@ -4005,13 +4060,10 @@ var require_normalizeValueWithProperty_native = __commonJS({
|
|
|
4005
4060
|
__export2(normalizeValueWithProperty_exports, {
|
|
4006
4061
|
normalizeValueWithProperty: function() {
|
|
4007
4062
|
return normalizeValueWithProperty;
|
|
4008
|
-
},
|
|
4009
|
-
reverseMapClassNameToValue: function() {
|
|
4010
|
-
return reverseMapClassNameToValue;
|
|
4011
4063
|
}
|
|
4012
4064
|
});
|
|
4013
4065
|
module2.exports = __toCommonJS2(normalizeValueWithProperty_exports);
|
|
4014
|
-
var import_constants2 = require_index_native2(), import_helpers2 = require_index_native3(),
|
|
4066
|
+
var import_constants2 = require_index_native2(), import_helpers2 = require_index_native3(), stylePropsAllPlusTransforms = {
|
|
4015
4067
|
...import_helpers2.stylePropsAll,
|
|
4016
4068
|
translateX: !0,
|
|
4017
4069
|
translateY: !0
|
|
@@ -4022,23 +4074,6 @@ var require_normalizeValueWithProperty_native = __commonJS({
|
|
|
4022
4074
|
var res = value;
|
|
4023
4075
|
return value && typeof value == "object" ? value : (typeof value == "number" ? res = `${value}px` : property && (res = `${res}`), res);
|
|
4024
4076
|
}
|
|
4025
|
-
var rcache = {};
|
|
4026
|
-
function reverseMapClassNameToValue(key, className) {
|
|
4027
|
-
var selectors = (0, import_insertStyleRule.getAllSelectors)(), cssRule = selectors[className];
|
|
4028
|
-
if (rcache[cssRule]) return rcache[cssRule];
|
|
4029
|
-
if (!cssRule) {
|
|
4030
|
-
process.env.NODE_ENV === "development" && console.warn(`No CSS rule found for ${key} looking for selector ".${className}", you may not be injecting extracted CSS`);
|
|
4031
|
-
return;
|
|
4032
|
-
}
|
|
4033
|
-
var cssVal = cssRule.replace(/.*:/, "").replace(/;.*/, "").trim(), res;
|
|
4034
|
-
return cssVal.startsWith("var(") ? res = cssVal : import_helpers2.stylePropsUnitless[key] ? res = +cssVal : cssVal.endsWith("px") ? res = +cssVal.replace("px", "") : res = cssVal, rcache[cssRule] = res, process.env.NODE_ENV === "development" && typeof res == "number" && Number.isNaN(res) && console.info("Tamagui invalid parsed value, NaN:", {
|
|
4035
|
-
res,
|
|
4036
|
-
cssVal,
|
|
4037
|
-
cssRule,
|
|
4038
|
-
key,
|
|
4039
|
-
className
|
|
4040
|
-
}), res;
|
|
4041
|
-
}
|
|
4042
4077
|
}
|
|
4043
4078
|
});
|
|
4044
4079
|
|
|
@@ -5196,7 +5231,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
5196
5231
|
}
|
|
5197
5232
|
});
|
|
5198
5233
|
module2.exports = __toCommonJS2(getSplitStyles_exports);
|
|
5199
|
-
var import_constants2 = require_index_native2(), import_helpers2 = require_index_native3(), import_react3 = __toESM2(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_getCSSStylesAtomic = require_getCSSStylesAtomic_native(), import_getGroupPropParts = require_getGroupPropParts_native(), import_insertStyleRule = require_insertStyleRule_native(), import_isActivePlatform = require_isActivePlatform_native(), import_isActiveTheme = require_isActiveTheme_native(), import_log = require_log_native(), import_normalizeValueWithProperty = require_normalizeValueWithProperty_native(), import_propMapper = require_propMapper_native(), import_pseudoDescriptors = require_pseudoDescriptors_native(), import_skipProps = require_skipProps_native(), import_sortString = require_sortString_native(), import_transformsToString = require_transformsToString_native(),
|
|
5234
|
+
var import_constants2 = require_index_native2(), import_helpers2 = require_index_native3(), import_react3 = __toESM2(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_consoleLog = require_consoleLog_native(), import_createMediaStyle = require_createMediaStyle_native(), import_expandStyles = require_expandStyles_native(), import_getCSSStylesAtomic = require_getCSSStylesAtomic_native(), import_getGroupPropParts = require_getGroupPropParts_native(), import_insertStyleRule = require_insertStyleRule_native(), import_isActivePlatform = require_isActivePlatform_native(), import_isActiveTheme = require_isActiveTheme_native(), import_log = require_log_native(), import_normalizeValueWithProperty = require_normalizeValueWithProperty_native(), import_propMapper = require_propMapper_native(), import_pseudoDescriptors = require_pseudoDescriptors_native(), import_skipProps = require_skipProps_native(), import_sortString = require_sortString_native(), import_transformsToString = require_transformsToString_native(), conf, PROP_SPLIT = "-";
|
|
5200
5235
|
function isValidStyleKey(key, validStyles2, accept) {
|
|
5201
5236
|
return key in validStyles2 ? !0 : accept && key in accept;
|
|
5202
5237
|
}
|
|
@@ -5209,19 +5244,13 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
5209
5244
|
var accepted = accept[keyInit];
|
|
5210
5245
|
if ((accepted === "style" || accepted === "textStyle") && valInit && typeof valInit == "object") return viewProps[keyInit] = getSubStyle(styleState, keyInit, valInit, styleProps.noClass), "continue";
|
|
5211
5246
|
}
|
|
5212
|
-
if (process.env.NODE_ENV === "development" && debug === "verbose" &&
|
|
5247
|
+
if (process.env.NODE_ENV === "development" && debug === "verbose" && (0, import_consoleLog.groupEnd)(), disableExpandShorthands || keyInit in shorthands && (keyInit = shorthands[keyInit]), keyInit === "className" || keyInit in usedKeys) return "continue";
|
|
5213
5248
|
if (keyInit in import_skipProps.skipProps && !noSkip && !isHOC) {
|
|
5214
5249
|
if (keyInit === "group" && !1) var identifier2, containerType, containerCSS;
|
|
5215
5250
|
return "continue";
|
|
5216
5251
|
}
|
|
5217
5252
|
var valInitType = typeof valInit, isValidStyleKeyInit = isValidStyleKey(keyInit, validStyles2, accept);
|
|
5218
|
-
if (0)
|
|
5219
|
-
if (staticConfig.isReactNative && keyInit.startsWith("data-")) var _viewProps2, _dataSet;
|
|
5220
|
-
if (isValidStyleKeyInit && valInitType === "string" && valInit[0] === "_") {
|
|
5221
|
-
var isValidClassName, isMediaOrPseudo;
|
|
5222
|
-
if ((isValidClassName || isMediaOrPseudo) && !shouldDoClasses) var _styleState3;
|
|
5223
|
-
}
|
|
5224
|
-
}
|
|
5253
|
+
if (0) var _viewProps2, _dataSet;
|
|
5225
5254
|
if (!isValidStyleKeyInit) {
|
|
5226
5255
|
if (!import_constants2.isAndroid && keyInit === "elevationAndroid") return "continue";
|
|
5227
5256
|
if (keyInit === "userSelect") keyInit = "selectable", valInit = valInit !== "none";
|
|
@@ -5232,8 +5261,8 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
5232
5261
|
return "continue";
|
|
5233
5262
|
}
|
|
5234
5263
|
if (0) var didUseKeyInit;
|
|
5235
|
-
var isVariant = !isValidStyleKeyInit && variants && keyInit in variants, isStyleLikeKey = isValidStyleKeyInit || isVariant, isPseudo = keyInit in import_helpers2.validPseudoKeys, isMedia = !isStyleLikeKey && !isPseudo && (0, import_useMedia.isMediaKey)(keyInit),
|
|
5236
|
-
if (
|
|
5264
|
+
var isVariant = !isValidStyleKeyInit && variants && keyInit in variants, isStyleLikeKey = isValidStyleKeyInit || isVariant, isPseudo = keyInit in import_helpers2.validPseudoKeys, isMedia = !isStyleLikeKey && !isPseudo && (0, import_useMedia.isMediaKey)(keyInit), isMediaOrPseudo = !!(isMedia || isPseudo);
|
|
5265
|
+
if (isMediaOrPseudo && keyInit.startsWith("$group-")) {
|
|
5237
5266
|
var parts = keyInit.split("-");
|
|
5238
5267
|
if (
|
|
5239
5268
|
// check if its actually a simple group selector to avoid breaking selectors
|
|
@@ -5243,11 +5272,11 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
5243
5272
|
context != null && context.groups.subscribe && !(context != null && context.groups.state[name2]) && (keyInit = keyInit.replace("$group-", "$group-true-"));
|
|
5244
5273
|
}
|
|
5245
5274
|
}
|
|
5246
|
-
var isStyleProp = isValidStyleKeyInit ||
|
|
5275
|
+
var isStyleProp = isValidStyleKeyInit || isMediaOrPseudo || isVariant && !noExpand;
|
|
5247
5276
|
if (isStyleProp && (asChild === "except-style" || asChild === "except-style-web")) return "continue";
|
|
5248
5277
|
var shouldPassProp = !isStyleProp && isHOC || // is in parent variants
|
|
5249
|
-
isHOC && parentVariants && keyInit in parentVariants || (inlineProps == null ? void 0 : inlineProps.has(keyInit)), parentVariant = parentVariants == null ? void 0 : parentVariants[keyInit], isHOCShouldPassThrough = !!(isHOC && (isValidStyleKeyInit ||
|
|
5250
|
-
if (process.env.NODE_ENV === "development" && debug === "verbose" && (
|
|
5278
|
+
isHOC && parentVariants && keyInit in parentVariants || (inlineProps == null ? void 0 : inlineProps.has(keyInit)), parentVariant = parentVariants == null ? void 0 : parentVariants[keyInit], isHOCShouldPassThrough = !!(isHOC && (isValidStyleKeyInit || isMediaOrPseudo || parentVariant || keyInit in import_skipProps.skipProps)), shouldPassThrough = shouldPassProp || isHOCShouldPassThrough;
|
|
5279
|
+
if (process.env.NODE_ENV === "development" && debug === "verbose" && ((0, import_consoleLog.groupEnd)(), (0, import_consoleLog.groupEnd)(), (0, import_consoleLog.groupCollapsed)(` \u{1F511} ${keyOg2}${keyInit !== keyOg2 ? ` (shorthand for ${keyInit})` : ""} ${shouldPassThrough ? "(pass)" : ""}`), (0, import_log.log)({
|
|
5251
5280
|
isVariant,
|
|
5252
5281
|
valInit,
|
|
5253
5282
|
shouldPassProp
|
|
@@ -5257,16 +5286,16 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
5257
5286
|
isVariant,
|
|
5258
5287
|
isHOCShouldPassThrough,
|
|
5259
5288
|
parentStaticConfig
|
|
5260
|
-
})), shouldPassThrough && (passDownProp(viewProps, keyInit, valInit,
|
|
5289
|
+
})), shouldPassThrough && (passDownProp(viewProps, keyInit, valInit, isMediaOrPseudo), !isVariant) || !noSkip && keyInit in import_skipProps.skipProps) return "continue";
|
|
5261
5290
|
(isText || isInput) && valInit && (keyInit === "fontFamily" || keyInit === shorthands.fontFamily) && valInit in conf.fontsParsed && (styleState.fontFamily = valInit);
|
|
5262
|
-
var disablePropMap =
|
|
5291
|
+
var disablePropMap = isMediaOrPseudo || !isStyleLikeKey;
|
|
5263
5292
|
if ((0, import_propMapper.propMapper)(keyInit, valInit, styleState, disablePropMap, function(key4, val2) {
|
|
5264
5293
|
var _parentStaticConfig_variants;
|
|
5265
|
-
if (!isHOC && disablePropMap && !
|
|
5294
|
+
if (!isHOC && disablePropMap && !isMediaOrPseudo) {
|
|
5266
5295
|
viewProps[key4] = val2;
|
|
5267
5296
|
return;
|
|
5268
5297
|
}
|
|
5269
|
-
if (process.env.NODE_ENV === "development" && debug === "verbose" && (
|
|
5298
|
+
if (process.env.NODE_ENV === "development" && debug === "verbose" && ((0, import_consoleLog.groupCollapsed)(" \u{1F4A0} expanded", keyInit, "=>", key4), (0, import_log.log)(val2), (0, import_consoleLog.groupEnd)()), val2 != null && !(key4 in usedKeys)) {
|
|
5270
5299
|
if (key4 === "pointerEvents") {
|
|
5271
5300
|
viewProps[key4] = val2;
|
|
5272
5301
|
return;
|
|
@@ -5275,23 +5304,23 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
5275
5304
|
mergeStyle(styleState, key4, val2);
|
|
5276
5305
|
return;
|
|
5277
5306
|
}
|
|
5278
|
-
if (isPseudo = key4 in import_helpers2.validPseudoKeys, isMedia = !isPseudo && (0, import_useMedia.isMediaKey)(key4),
|
|
5307
|
+
if (isPseudo = key4 in import_helpers2.validPseudoKeys, isMedia = !isPseudo && (0, import_useMedia.isMediaKey)(key4), isMediaOrPseudo = !!(isMedia || isPseudo), isVariant = variants && key4 in variants, inlineProps != null && inlineProps.has(key4) || process.env.IS_STATIC === "is_static" && inlineWhenUnflattened != null && inlineWhenUnflattened.has(key4)) {
|
|
5279
5308
|
var _props_key;
|
|
5280
5309
|
viewProps[key4] = (_props_key = props[key4]) !== null && _props_key !== void 0 ? _props_key : val2;
|
|
5281
5310
|
}
|
|
5282
|
-
var shouldPassThrough2 = styleProps.noExpand && isPseudo || isHOC && (
|
|
5311
|
+
var shouldPassThrough2 = styleProps.noExpand && isPseudo || isHOC && (isMediaOrPseudo || (parentStaticConfig == null || (_parentStaticConfig_variants = parentStaticConfig.variants) === null || _parentStaticConfig_variants === void 0 ? void 0 : _parentStaticConfig_variants[keyInit]));
|
|
5283
5312
|
if (shouldPassThrough2) {
|
|
5284
|
-
passDownProp(viewProps, key4, val2,
|
|
5313
|
+
passDownProp(viewProps, key4, val2, isMediaOrPseudo), process.env.NODE_ENV === "development" && debug === "verbose" && ((0, import_consoleLog.groupCollapsed)(` - passing down prop ${key4}`), (0, import_log.log)({
|
|
5285
5314
|
val: val2,
|
|
5286
5315
|
after: {
|
|
5287
5316
|
...viewProps[key4]
|
|
5288
5317
|
}
|
|
5289
|
-
}),
|
|
5318
|
+
}), (0, import_consoleLog.groupEnd)());
|
|
5290
5319
|
return;
|
|
5291
5320
|
}
|
|
5292
5321
|
if (isPseudo) {
|
|
5293
5322
|
if (!val2) return;
|
|
5294
|
-
var pseudoStyleObject = getSubStyle(styleState, key4, val2, styleProps.noClass);
|
|
5323
|
+
var pseudoStyleObject = getSubStyle(styleState, key4, val2, styleProps.noClass && process.env.IS_STATIC !== "is_static");
|
|
5295
5324
|
if (!shouldDoClasses || process.env.IS_STATIC === "is_static") {
|
|
5296
5325
|
var _pseudos, _key;
|
|
5297
5326
|
if (pseudos || (pseudos = {}), (_pseudos = pseudos)[_key = key4] || (_pseudos[_key] = {}), process.env.IS_STATIC === "is_static") {
|
|
@@ -5303,15 +5332,12 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
5303
5332
|
if (!descriptor) return;
|
|
5304
5333
|
if (shouldDoClasses && !isExit) {
|
|
5305
5334
|
var pseudoStyles = (0, import_getCSSStylesAtomic.getStyleAtomic)(pseudoStyleObject, descriptor);
|
|
5306
|
-
process.env.NODE_ENV === "development" && debug === "verbose" && (
|
|
5307
|
-
pseudoStyleObject,
|
|
5308
|
-
pseudoStyles
|
|
5309
|
-
}), console.groupEnd());
|
|
5335
|
+
process.env.NODE_ENV === "development" && debug === "verbose" && console.info("pseudo:", key4, pseudoStyleObject, pseudoStyles);
|
|
5310
5336
|
var _iteratorNormalCompletion2 = !0, _didIteratorError2 = !1, _iteratorError2 = void 0;
|
|
5311
5337
|
try {
|
|
5312
5338
|
for (var _iterator2 = pseudoStyles[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = !0) {
|
|
5313
5339
|
var psuedoStyle = _step2.value, fullKey = `${psuedoStyle[import_helpers2.StyleObjectProperty]}${PROP_SPLIT}${descriptor.name}`;
|
|
5314
|
-
fullKey in usedKeys || (addStyleToInsertRules(rulesToInsert, psuedoStyle),
|
|
5340
|
+
fullKey in usedKeys || (addStyleToInsertRules(rulesToInsert, psuedoStyle), classNames[fullKey] = psuedoStyle[import_helpers2.StyleObjectIdentifier]);
|
|
5315
5341
|
}
|
|
5316
5342
|
} catch (err) {
|
|
5317
5343
|
_didIteratorError2 = !0, _iteratorError2 = err;
|
|
@@ -5325,14 +5351,14 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
5325
5351
|
}
|
|
5326
5352
|
if (!shouldDoClasses || isExit || isEnter) {
|
|
5327
5353
|
var descriptorKey = descriptor.stateKey || descriptor.name, isDisabled = componentState[descriptorKey] === !1;
|
|
5328
|
-
isExit && (isDisabled = !styleProps.isExiting), isEnter && componentState.unmounted === !1 && (isDisabled = !0), process.env.NODE_ENV === "development" && debug === "verbose" && (
|
|
5354
|
+
isExit && (isDisabled = !styleProps.isExiting), isEnter && componentState.unmounted === !1 && (isDisabled = !0), process.env.NODE_ENV === "development" && debug === "verbose" && ((0, import_consoleLog.groupCollapsed)("pseudo", key4, {
|
|
5329
5355
|
isDisabled
|
|
5330
5356
|
}), (0, import_log.log)({
|
|
5331
5357
|
pseudoStyleObject,
|
|
5332
5358
|
isDisabled,
|
|
5333
5359
|
descriptor,
|
|
5334
5360
|
componentState
|
|
5335
|
-
}),
|
|
5361
|
+
}), (0, import_consoleLog.groupEnd)());
|
|
5336
5362
|
var importance = descriptor.priority;
|
|
5337
5363
|
for (var pkey in pseudoStyleObject) {
|
|
5338
5364
|
var _$val = pseudoStyleObject[pkey];
|
|
@@ -5389,7 +5415,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
5389
5415
|
var out = (0, import_createMediaStyle.createMediaStyle)(style3, mediaKeyShort, import_useMedia.mediaQueryConfig, isMedia, !1, priority);
|
|
5390
5416
|
process.env.NODE_ENV === "development" && debug === "verbose" && (0, import_log.log)("\u{1F4FA} media style:", out);
|
|
5391
5417
|
var subKey = isSubStyle ? style3[2] : "", fullKey1 = `${style3[import_helpers2.StyleObjectProperty]}${subKey}${PROP_SPLIT}${mediaKeyShort}${style3[import_helpers2.StyleObjectPseudo] || ""}`;
|
|
5392
|
-
fullKey1 in usedKeys || (addStyleToInsertRules(rulesToInsert, out),
|
|
5418
|
+
fullKey1 in usedKeys || (addStyleToInsertRules(rulesToInsert, out), classNames[fullKey1] = out[import_helpers2.StyleObjectIdentifier]);
|
|
5393
5419
|
}
|
|
5394
5420
|
}
|
|
5395
5421
|
} catch (err) {
|
|
@@ -5403,8 +5429,8 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
5403
5429
|
}
|
|
5404
5430
|
} else {
|
|
5405
5431
|
var mergeMediaStyle2 = function(key5, val3) {
|
|
5406
|
-
var
|
|
5407
|
-
(
|
|
5432
|
+
var _styleState3;
|
|
5433
|
+
(_styleState3 = styleState).style || (_styleState3.style = {});
|
|
5408
5434
|
var didMerge = mergeMediaByImportance(styleState, mediaKeyShort, key5, val3, usedKeys, mediaState2[mediaKeyShort], importanceBump, debug);
|
|
5409
5435
|
didMerge && key5 === "fontFamily" && (styleState.fontFamily = mediaStyle1.fontFamily);
|
|
5410
5436
|
}, mergeMediaStyle = mergeMediaStyle2, isThemeMedia = isMedia === "theme", isGroupMedia = isMedia === "group", isPlatformMedia = isMedia === "platform";
|
|
@@ -5467,18 +5493,16 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
5467
5493
|
try {
|
|
5468
5494
|
(0, import_log.log)(" \u2714\uFE0F expand complete", keyInit), (0, import_log.log)("style", {
|
|
5469
5495
|
...styleState.style
|
|
5470
|
-
}), (0, import_log.log)("transforms", {
|
|
5471
|
-
...transforms
|
|
5472
5496
|
}), (0, import_log.log)("viewProps", {
|
|
5473
5497
|
...viewProps
|
|
5474
5498
|
});
|
|
5475
5499
|
} catch {
|
|
5476
5500
|
}
|
|
5477
|
-
|
|
5501
|
+
(0, import_consoleLog.groupEnd)();
|
|
5478
5502
|
}
|
|
5479
5503
|
};
|
|
5480
5504
|
conf = conf || (0, import_config.getConfig)(), import_constants2.isWeb && styleProps.isAnimated && conf.animations.isReactNative && !styleProps.noNormalize && (styleProps.noNormalize = "values");
|
|
5481
|
-
var { shorthands } = conf, { isHOC, isText, isInput, variants, isReactNative, inlineProps, inlineWhenUnflattened, parentStaticConfig, acceptsClassName } = staticConfig, viewProps = {}, mediaState2 = styleProps.mediaState || import_useMedia.mediaState, usedKeys = {}, shouldDoClasses = acceptsClassName && import_constants2.isWeb && !styleProps.noClass, rulesToInsert = void 0, classNames = {},
|
|
5505
|
+
var { shorthands } = conf, { isHOC, isText, isInput, variants, isReactNative, inlineProps, inlineWhenUnflattened, parentStaticConfig, acceptsClassName } = staticConfig, viewProps = {}, mediaState2 = styleProps.mediaState || import_useMedia.mediaState, usedKeys = {}, shouldDoClasses = acceptsClassName && import_constants2.isWeb && !styleProps.noClass, rulesToInsert = void 0, classNames = {}, pseudos = null, space = props.space, hasMedia = !1, dynamicThemeAccess, pseudoGroups, mediaGroups, className = props.className || "", mediaStylesSeen = 0, validStyles2 = staticConfig.validStyles || (staticConfig.isText || staticConfig.isInput ? import_helpers2.stylePropsText : import_helpers2.validStyles);
|
|
5482
5506
|
process.env.NODE_ENV === "development" && debug === "profile" && time`split-styles-setup`;
|
|
5483
5507
|
var styleState = {
|
|
5484
5508
|
classNames,
|
|
@@ -5502,7 +5526,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
5502
5526
|
}
|
|
5503
5527
|
}));
|
|
5504
5528
|
}
|
|
5505
|
-
process.env.NODE_ENV === "development" && debug === "profile" && time`style-state`, process.env.NODE_ENV === "development" && debug && debug !== "profile" && import_constants2.isClient && (
|
|
5529
|
+
process.env.NODE_ENV === "development" && debug === "profile" && time`style-state`, process.env.NODE_ENV === "development" && debug && debug !== "profile" && import_constants2.isClient && ((0, import_consoleLog.groupCollapsed)("getSplitStyles (collapsed)"), (0, import_log.log)({
|
|
5506
5530
|
props,
|
|
5507
5531
|
staticConfig,
|
|
5508
5532
|
shouldDoClasses,
|
|
@@ -5513,7 +5537,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
5513
5537
|
theme: {
|
|
5514
5538
|
...theme
|
|
5515
5539
|
}
|
|
5516
|
-
}),
|
|
5540
|
+
}), (0, import_consoleLog.groupEnd)());
|
|
5517
5541
|
var { asChild } = props, { accept } = staticConfig, { noSkip, disableExpandShorthands, noExpand } = styleProps, { webContainerType } = conf.settings, parentVariants = parentStaticConfig == null ? void 0 : parentStaticConfig.variants;
|
|
5518
5542
|
for (var keyOg in props) _loop(keyOg);
|
|
5519
5543
|
process.env.NODE_ENV === "development" && debug === "profile" && time`split-styles-propsend`;
|
|
@@ -5521,13 +5545,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
5521
5545
|
if (!avoidNormalize) {
|
|
5522
5546
|
if (styleState.style && ((0, import_expandStyles.fixStyles)(styleState.style), !styleProps.noExpand && !styleProps.noMergeStyle && import_constants2.isWeb && !isReactNative && (0, import_getCSSStylesAtomic.styleToCSS)(styleState.style)), styleState.flatTransforms) {
|
|
5523
5547
|
var _styleState;
|
|
5524
|
-
(_styleState = styleState).style || (_styleState.style = {}),
|
|
5525
|
-
var [a] = param, [b] = param1;
|
|
5526
|
-
return (0, import_sortString.sortString)(a, b);
|
|
5527
|
-
}).forEach(function(param) {
|
|
5528
|
-
var [key4, val2] = param;
|
|
5529
|
-
mergeTransform(styleState.style, key4, val2, !0);
|
|
5530
|
-
});
|
|
5548
|
+
(_styleState = styleState).style || (_styleState.style = {}), mergeFlatTransforms(styleState.style, styleState.flatTransforms);
|
|
5531
5549
|
}
|
|
5532
5550
|
if (parentSplitStyles) {
|
|
5533
5551
|
if (0) for (var key in parentSplitStyles.classNames) var val;
|
|
@@ -5549,10 +5567,6 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
5549
5567
|
} finally {
|
|
5550
5568
|
}
|
|
5551
5569
|
}
|
|
5552
|
-
if (transforms) for (var namespace in transforms) {
|
|
5553
|
-
var hash, val1, identifier1;
|
|
5554
|
-
if (import_constants2.isClient && !insertedTransforms[identifier1]) var rule;
|
|
5555
|
-
}
|
|
5556
5570
|
}
|
|
5557
5571
|
if (isReactNative) {
|
|
5558
5572
|
if (viewProps.tabIndex === 0) var _viewProps, _accessible;
|
|
@@ -5606,13 +5620,12 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
5606
5620
|
} else style2 && (viewProps.style = style2);
|
|
5607
5621
|
}
|
|
5608
5622
|
if (process.env.NODE_ENV === "development" && debug === "verbose" && import_isDevTools.isDevTools) {
|
|
5609
|
-
|
|
5623
|
+
(0, import_consoleLog.groupCollapsed)("\u{1F539} getSplitStyles ===>");
|
|
5610
5624
|
try {
|
|
5611
5625
|
var logs = {
|
|
5612
5626
|
...result,
|
|
5613
5627
|
className,
|
|
5614
5628
|
componentState,
|
|
5615
|
-
transforms,
|
|
5616
5629
|
viewProps,
|
|
5617
5630
|
rulesToInsert,
|
|
5618
5631
|
parentSplitStyles
|
|
@@ -5620,20 +5633,22 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
5620
5633
|
for (var key3 in logs) (0, import_log.log)(key3, logs[key3]);
|
|
5621
5634
|
} catch {
|
|
5622
5635
|
}
|
|
5623
|
-
|
|
5636
|
+
(0, import_consoleLog.groupEnd)();
|
|
5624
5637
|
}
|
|
5625
5638
|
return process.env.NODE_ENV === "development" && debug === "profile" && time`split-styles-done`, result;
|
|
5626
5639
|
};
|
|
5627
|
-
function
|
|
5628
|
-
|
|
5629
|
-
|
|
5640
|
+
function mergeFlatTransforms(target, flatTransforms) {
|
|
5641
|
+
Object.entries(flatTransforms).sort(function(param, param1) {
|
|
5642
|
+
var [a] = param, [b] = param1;
|
|
5643
|
+
return (0, import_sortString.sortString)(a, b);
|
|
5644
|
+
}).forEach(function(param) {
|
|
5645
|
+
var [key, val] = param;
|
|
5646
|
+
mergeTransform(target, key, val, !0);
|
|
5647
|
+
});
|
|
5630
5648
|
}
|
|
5631
5649
|
function mergeStyle(styleState, key, val) {
|
|
5632
|
-
var disableNormalize = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1, {
|
|
5633
|
-
if (
|
|
5634
|
-
var _usedKeys, _key;
|
|
5635
|
-
classNames[key] = val, (_usedKeys = usedKeys)[_key = key] || (_usedKeys[_key] = 1);
|
|
5636
|
-
} else if (key in import_helpers2.stylePropsTransform) {
|
|
5650
|
+
var disableNormalize = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1, { viewProps, styleProps, staticConfig } = styleState;
|
|
5651
|
+
if (key in import_helpers2.stylePropsTransform) {
|
|
5637
5652
|
var _styleState;
|
|
5638
5653
|
(_styleState = styleState).flatTransforms || (_styleState.flatTransforms = {}), styleState.flatTransforms[key] = val;
|
|
5639
5654
|
} else {
|
|
@@ -5644,7 +5659,11 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
5644
5659
|
) viewProps[key] = out;
|
|
5645
5660
|
else {
|
|
5646
5661
|
var _styleState1;
|
|
5647
|
-
(_styleState1 = styleState).style || (_styleState1.style = {}), styleState.style[key] =
|
|
5662
|
+
(_styleState1 = styleState).style || (_styleState1.style = {}), styleState.style[key] = // if you dont do this you'll be passing props.transform arrays directly here and then mutating them
|
|
5663
|
+
// if theres any flatTransforms later, causing issues (mutating props is bad, in strict mode styles get borked)
|
|
5664
|
+
key === "transform" && Array.isArray(out) ? [
|
|
5665
|
+
...out
|
|
5666
|
+
] : out;
|
|
5648
5667
|
}
|
|
5649
5668
|
}
|
|
5650
5669
|
}
|
|
@@ -5659,6 +5678,16 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
5659
5678
|
}), key = key1;
|
|
5660
5679
|
}, { staticConfig, conf: conf2, styleProps } = styleState, styleOut = {};
|
|
5661
5680
|
for (var key in styleIn) _loop(key);
|
|
5681
|
+
if (!avoidMergeTransform) {
|
|
5682
|
+
if (Array.isArray(styleOut.transform)) {
|
|
5683
|
+
var _styleState_style, parentTransform = (_styleState_style = styleState.style) === null || _styleState_style === void 0 ? void 0 : _styleState_style.transform;
|
|
5684
|
+
parentTransform && (styleOut.transform = [
|
|
5685
|
+
...parentTransform,
|
|
5686
|
+
...styleOut.transform
|
|
5687
|
+
]);
|
|
5688
|
+
}
|
|
5689
|
+
styleState.flatTransforms && mergeFlatTransforms(styleOut, styleState.flatTransforms);
|
|
5690
|
+
}
|
|
5662
5691
|
return styleProps.noNormalize || (0, import_expandStyles.fixStyles)(styleOut), styleOut;
|
|
5663
5692
|
}, useInsertEffectCompat = import_constants2.isWeb ? import_react3.default.useInsertionEffect || import_constants2.useIsomorphicLayoutEffect : function() {
|
|
5664
5693
|
}, useSplitStyles = function(a, b, c, d, e, f, g, h, i, j) {
|
|
@@ -5982,7 +6011,7 @@ var require_subscribeToContextGroup_native = __commonJS({
|
|
|
5982
6011
|
});
|
|
5983
6012
|
module2.exports = __toCommonJS2(subscribeToContextGroup_exports);
|
|
5984
6013
|
var import_createShallowSetState = require_createShallowSetState_native(), import_useMedia = require_useMedia_native(), subscribeToContextGroup = function(param) {
|
|
5985
|
-
var {
|
|
6014
|
+
var { setStateShallow, pseudoGroups, mediaGroups, componentContext, state } = param;
|
|
5986
6015
|
if (pseudoGroups || mediaGroups) {
|
|
5987
6016
|
var _componentContext_groups_subscribe, _componentContext_groups, current = {
|
|
5988
6017
|
pseudo: {},
|
|
@@ -6643,7 +6672,7 @@ var require_Theme_native = __commonJS({
|
|
|
6643
6672
|
Theme.avoidForwardRef = !0;
|
|
6644
6673
|
function getThemedChildren(themeState, children, props) {
|
|
6645
6674
|
var isRoot = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1, stateRef = arguments.length > 4 ? arguments[4] : void 0, { shallow, forceClassName } = props, state = stateRef.current, hasEverThemed = state.hasEverThemed, shouldRenderChildrenWithTheme = hasEverThemed || themeState.isNew || isRoot || (0, import_useThemeState.hasThemeUpdatingProps)(props);
|
|
6646
|
-
if (process.env.NODE_ENV === "development" && props.debug && (children = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ThemeDebug.ThemeDebug, {
|
|
6675
|
+
if (process.env.NODE_ENV === "development" && props.debug === "visualize" && (children = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ThemeDebug.ThemeDebug, {
|
|
6647
6676
|
themeState,
|
|
6648
6677
|
themeProps: props,
|
|
6649
6678
|
children
|
|
@@ -7284,7 +7313,7 @@ var require_createComponent_native = __commonJS({
|
|
|
7284
7313
|
}
|
|
7285
7314
|
});
|
|
7286
7315
|
module2.exports = __toCommonJS2(createComponent_exports);
|
|
7287
|
-
var import_jsx_runtime = require("react/jsx-runtime"), import_compose_refs = require_index_native4(), import_constants2 = require_index_native2(), import_helpers2 = require_index_native3(), 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_getShorthandValue = require_getShorthandValue_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(), time2, debugKeyListeners, startVisualizer, componentSetStates = /* @__PURE__ */ new Set();
|
|
7316
|
+
var import_jsx_runtime = require("react/jsx-runtime"), import_compose_refs = require_index_native4(), import_constants2 = require_index_native2(), import_helpers2 = require_index_native3(), 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_consoleLog = require_consoleLog_native(), import_getShorthandValue = require_getShorthandValue_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(), time2, debugKeyListeners, startVisualizer, componentSetStates = /* @__PURE__ */ new Set();
|
|
7288
7317
|
typeof document < "u" && (cancelTouches = function() {
|
|
7289
7318
|
componentSetStates.forEach(function(setState) {
|
|
7290
7319
|
return setState(function(prev) {
|
|
@@ -7421,9 +7450,9 @@ var require_createComponent_native = __commonJS({
|
|
|
7421
7450
|
supportsCSSVars
|
|
7422
7451
|
});
|
|
7423
7452
|
else {
|
|
7424
|
-
|
|
7453
|
+
(0, import_consoleLog.groupEnd)();
|
|
7425
7454
|
var ch = propsIn.children, childLog = typeof ch == "string" ? ch.length > 4 ? ch.slice(0, 4) + "..." : ch : "";
|
|
7426
|
-
childLog.length && (childLog = `(children: ${childLog})`),
|
|
7455
|
+
childLog.length && (childLog = `(children: ${childLog})`), (0, import_consoleLog.groupCollapsed)(`${childLog} Props:`), (0, import_log.log)("props in:", propsIn), (0, import_log.log)("final props:", props), (0, import_log.log)({
|
|
7427
7456
|
state,
|
|
7428
7457
|
staticConfig,
|
|
7429
7458
|
elementType,
|
|
@@ -7437,7 +7466,7 @@ var require_createComponent_native = __commonJS({
|
|
|
7437
7466
|
isHOC,
|
|
7438
7467
|
hasAnimationProp,
|
|
7439
7468
|
useAnimations
|
|
7440
|
-
}),
|
|
7469
|
+
}), (0, import_consoleLog.groupEnd)();
|
|
7441
7470
|
}
|
|
7442
7471
|
}
|
|
7443
7472
|
process.env.NODE_ENV === "development" && time2 && time2`pre-theme-media`;
|
|
@@ -7542,34 +7571,31 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
7542
7571
|
}
|
|
7543
7572
|
return styleObject;
|
|
7544
7573
|
}, cssStyleDeclarationToObject = cssStyleDeclarationToObject2, computed = cssStyleDeclarationToObject2(getComputedStyle(stateRef.current.host));
|
|
7545
|
-
|
|
7574
|
+
(0, import_consoleLog.groupCollapsed)(`Rendered > (opacity: ${computed.opacity})`), console.warn(stateRef.current.host), console.warn(computed), (0, import_consoleLog.groupEnd)();
|
|
7546
7575
|
}
|
|
7547
|
-
}),
|
|
7576
|
+
}), (0, import_constants2.useIsomorphicLayoutEffect)(function() {
|
|
7548
7577
|
if (!disabled) {
|
|
7549
|
-
var tm;
|
|
7550
7578
|
if (state.unmounted === !0 && hasEnterStyle) {
|
|
7551
7579
|
setStateShallow({
|
|
7552
7580
|
unmounted: "should-enter"
|
|
7553
7581
|
});
|
|
7554
7582
|
return;
|
|
7555
7583
|
}
|
|
7556
|
-
if (state.unmounted)
|
|
7584
|
+
if (state.unmounted) {
|
|
7557
7585
|
setStateShallow({
|
|
7558
7586
|
unmounted: !1
|
|
7559
7587
|
});
|
|
7560
|
-
|
|
7561
|
-
|
|
7562
|
-
|
|
7563
|
-
var dispose = (0, import_subscribeToContextGroup.subscribeToContextGroup)({
|
|
7564
|
-
disabled,
|
|
7588
|
+
return;
|
|
7589
|
+
}
|
|
7590
|
+
var dispose = pseudoGroups || mediaGroups ? (0, import_subscribeToContextGroup.subscribeToContextGroup)({
|
|
7565
7591
|
componentContext,
|
|
7566
7592
|
setStateShallow,
|
|
7567
7593
|
state,
|
|
7568
7594
|
mediaGroups,
|
|
7569
7595
|
pseudoGroups
|
|
7570
|
-
});
|
|
7596
|
+
}) : null;
|
|
7571
7597
|
return function() {
|
|
7572
|
-
|
|
7598
|
+
dispose == null || dispose(), componentSetStates.delete(setState);
|
|
7573
7599
|
};
|
|
7574
7600
|
}
|
|
7575
7601
|
}, [
|
|
@@ -7736,7 +7762,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
7736
7762
|
if (process.env.NODE_ENV === "development" && debugProp && debugProp !== "profile") {
|
|
7737
7763
|
var element1 = typeof elementType == "string" ? elementType : "Component", title = `render <${element1} /> (${internalID}) with props`;
|
|
7738
7764
|
if (import_constants2.isWeb) {
|
|
7739
|
-
|
|
7765
|
+
(0, import_consoleLog.groupCollapsed)(title);
|
|
7740
7766
|
try {
|
|
7741
7767
|
(0, import_log.log)("viewProps", viewProps), (0, import_log.log)("children", content), typeof window < "u" && (0, import_log.log)({
|
|
7742
7768
|
propsIn,
|
|
@@ -7767,7 +7793,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
7767
7793
|
});
|
|
7768
7794
|
} catch {
|
|
7769
7795
|
} finally {
|
|
7770
|
-
|
|
7796
|
+
(0, import_consoleLog.groupEnd)();
|
|
7771
7797
|
}
|
|
7772
7798
|
} else {
|
|
7773
7799
|
(0, import_log.log)(title), (0, import_log.log)("state: ", state), import_isDevTools.isDevTools && (0, import_log.log)("viewProps", viewProps), (0, import_log.log)("final styles:");
|
|
@@ -9740,7 +9766,6 @@ var require_useProps_native = __commonJS({
|
|
|
9740
9766
|
return;
|
|
9741
9767
|
}
|
|
9742
9768
|
return (0, import_subscribeToContextGroup.subscribeToContextGroup)({
|
|
9743
|
-
disabled,
|
|
9744
9769
|
componentContext,
|
|
9745
9770
|
setStateShallow,
|
|
9746
9771
|
state,
|