tamagui 1.125.1 → 1.125.3
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 +134 -110
- package/dist/native.js.map +3 -3
- package/dist/test.native.js +115 -77
- package/dist/test.native.js.map +3 -3
- package/package.json +55 -55
package/dist/test.native.js
CHANGED
|
@@ -2408,7 +2408,7 @@ var require_insertStyleRule_native = __commonJS({
|
|
|
2408
2408
|
return insertStyleRules;
|
|
2409
2409
|
},
|
|
2410
2410
|
insertedTransforms: function() {
|
|
2411
|
-
return
|
|
2411
|
+
return insertedTransforms;
|
|
2412
2412
|
},
|
|
2413
2413
|
listenForSheetChanges: function() {
|
|
2414
2414
|
return listenForSheetChanges;
|
|
@@ -2427,18 +2427,18 @@ var require_insertStyleRule_native = __commonJS({
|
|
|
2427
2427
|
}
|
|
2428
2428
|
});
|
|
2429
2429
|
module2.exports = __toCommonJS2(insertStyleRule_exports);
|
|
2430
|
-
var import_constants4 = require_index_native6(), import_helpers = require_index_native7(), import_createVariable = require_createVariable_native(), totalSelectorsInserted = /* @__PURE__ */ new Map(), allSelectors = {}, allRules = {},
|
|
2430
|
+
var import_constants4 = require_index_native6(), import_helpers = require_index_native7(), import_createVariable = require_createVariable_native(), totalSelectorsInserted = /* @__PURE__ */ new Map(), allSelectors = {}, allRules = {}, insertedTransforms = {}, getAllSelectors = function() {
|
|
2431
2431
|
return allSelectors;
|
|
2432
2432
|
}, getAllRules = function() {
|
|
2433
2433
|
return Object.values(allRules);
|
|
2434
2434
|
}, getAllTransforms = function() {
|
|
2435
|
-
return
|
|
2435
|
+
return insertedTransforms;
|
|
2436
2436
|
};
|
|
2437
2437
|
function addTransform(identifier, css, rule) {
|
|
2438
2438
|
var s = css.indexOf("transform:");
|
|
2439
2439
|
if (s !== -1) {
|
|
2440
2440
|
var startI = s + 10, endI = css.indexOf(";"), value = css.slice(startI, endI);
|
|
2441
|
-
if (!
|
|
2441
|
+
if (!insertedTransforms[identifier]) return insertedTransforms[identifier] = value, !0;
|
|
2442
2442
|
}
|
|
2443
2443
|
}
|
|
2444
2444
|
function listenForSheetChanges() {
|
|
@@ -3546,6 +3546,59 @@ var require_defaultComponentState_native = __commonJS({
|
|
|
3546
3546
|
}
|
|
3547
3547
|
});
|
|
3548
3548
|
|
|
3549
|
+
// ../../core/web/dist/cjs/helpers/consoleLog.native.js
|
|
3550
|
+
var require_consoleLog_native = __commonJS({
|
|
3551
|
+
"../../core/web/dist/cjs/helpers/consoleLog.native.js"(exports2, module2) {
|
|
3552
|
+
"use strict";
|
|
3553
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
3554
|
+
for (var name in all) __defProp2(target, name, {
|
|
3555
|
+
get: all[name],
|
|
3556
|
+
enumerable: !0
|
|
3557
|
+
});
|
|
3558
|
+
}, __copyProps2 = function(to, from, except, desc) {
|
|
3559
|
+
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
3560
|
+
if (from && typeof from == "object" || typeof from == "function") try {
|
|
3561
|
+
for (var _loop = function() {
|
|
3562
|
+
var key = _step.value;
|
|
3563
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
3564
|
+
get: function() {
|
|
3565
|
+
return from[key];
|
|
3566
|
+
},
|
|
3567
|
+
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
3568
|
+
});
|
|
3569
|
+
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
3570
|
+
} catch (err) {
|
|
3571
|
+
_didIteratorError = !0, _iteratorError = err;
|
|
3572
|
+
} finally {
|
|
3573
|
+
try {
|
|
3574
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
3575
|
+
} finally {
|
|
3576
|
+
if (_didIteratorError)
|
|
3577
|
+
throw _iteratorError;
|
|
3578
|
+
}
|
|
3579
|
+
}
|
|
3580
|
+
return to;
|
|
3581
|
+
}, __toCommonJS2 = function(mod) {
|
|
3582
|
+
return __copyProps2(__defProp2({}, "__esModule", {
|
|
3583
|
+
value: !0
|
|
3584
|
+
}), mod);
|
|
3585
|
+
}, consoleLog_exports = {};
|
|
3586
|
+
__export2(consoleLog_exports, {
|
|
3587
|
+
gc: function() {
|
|
3588
|
+
return gc;
|
|
3589
|
+
},
|
|
3590
|
+
groupCollapsed: function() {
|
|
3591
|
+
return groupCollapsed;
|
|
3592
|
+
},
|
|
3593
|
+
groupEnd: function() {
|
|
3594
|
+
return groupEnd;
|
|
3595
|
+
}
|
|
3596
|
+
});
|
|
3597
|
+
module2.exports = __toCommonJS2(consoleLog_exports);
|
|
3598
|
+
var import_constants4 = require_index_native6(), groupEnd = console.groupEnd.bind(console), gc = console.groupCollapsed.bind(console), groupCollapsed = import_constants4.isWeb ? gc : console.info;
|
|
3599
|
+
}
|
|
3600
|
+
});
|
|
3601
|
+
|
|
3549
3602
|
// ../../core/web/dist/cjs/helpers/getShorthandValue.native.js
|
|
3550
3603
|
var require_getShorthandValue_native = __commonJS({
|
|
3551
3604
|
"../../core/web/dist/cjs/helpers/getShorthandValue.native.js"(exports2, module2) {
|
|
@@ -4789,6 +4842,8 @@ var require_log_native = __commonJS({
|
|
|
4789
4842
|
(0, import_useMedia._disableMediaTouch)(!0);
|
|
4790
4843
|
try {
|
|
4791
4844
|
return console.log(...args);
|
|
4845
|
+
} catch (err) {
|
|
4846
|
+
console.error(err);
|
|
4792
4847
|
} finally {
|
|
4793
4848
|
(0, import_useMedia._disableMediaTouch)(!1);
|
|
4794
4849
|
}
|
|
@@ -4836,13 +4891,10 @@ var require_normalizeValueWithProperty_native = __commonJS({
|
|
|
4836
4891
|
__export2(normalizeValueWithProperty_exports, {
|
|
4837
4892
|
normalizeValueWithProperty: function() {
|
|
4838
4893
|
return normalizeValueWithProperty;
|
|
4839
|
-
},
|
|
4840
|
-
reverseMapClassNameToValue: function() {
|
|
4841
|
-
return reverseMapClassNameToValue;
|
|
4842
4894
|
}
|
|
4843
4895
|
});
|
|
4844
4896
|
module2.exports = __toCommonJS2(normalizeValueWithProperty_exports);
|
|
4845
|
-
var import_constants4 = require_index_native6(), import_helpers = require_index_native7(),
|
|
4897
|
+
var import_constants4 = require_index_native6(), import_helpers = require_index_native7(), stylePropsAllPlusTransforms = {
|
|
4846
4898
|
...import_helpers.stylePropsAll,
|
|
4847
4899
|
translateX: !0,
|
|
4848
4900
|
translateY: !0
|
|
@@ -4853,15 +4905,6 @@ var require_normalizeValueWithProperty_native = __commonJS({
|
|
|
4853
4905
|
var res = value;
|
|
4854
4906
|
return value && typeof value == "object" ? value : (typeof value == "number" ? res = `${value}px` : property && (res = `${res}`), res);
|
|
4855
4907
|
}
|
|
4856
|
-
var rcache = {};
|
|
4857
|
-
function reverseMapClassNameToValue(key, className) {
|
|
4858
|
-
var selectors = (0, import_insertStyleRule.getAllSelectors)(), cssRule = selectors[className];
|
|
4859
|
-
if (rcache[cssRule]) return rcache[cssRule];
|
|
4860
|
-
if (cssRule) {
|
|
4861
|
-
var cssVal = cssRule.replace(/.*:/, "").replace(/;.*/, "").trim(), res;
|
|
4862
|
-
return cssVal.startsWith("var(") ? res = cssVal : import_helpers.stylePropsUnitless[key] ? res = +cssVal : cssVal.endsWith("px") ? res = +cssVal.replace("px", "") : res = cssVal, rcache[cssRule] = res, res;
|
|
4863
|
-
}
|
|
4864
|
-
}
|
|
4865
4908
|
}
|
|
4866
4909
|
});
|
|
4867
4910
|
|
|
@@ -6006,7 +6049,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6006
6049
|
}
|
|
6007
6050
|
});
|
|
6008
6051
|
module2.exports = __toCommonJS2(getSplitStyles_exports);
|
|
6009
|
-
var import_constants4 = require_index_native6(), import_helpers = require_index_native7(), 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(),
|
|
6052
|
+
var import_constants4 = require_index_native6(), import_helpers = require_index_native7(), 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 = "-";
|
|
6010
6053
|
function isValidStyleKey(key, validStyles, accept) {
|
|
6011
6054
|
return key in validStyles ? !0 : accept && key in accept;
|
|
6012
6055
|
}
|
|
@@ -6025,13 +6068,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6025
6068
|
return "continue";
|
|
6026
6069
|
}
|
|
6027
6070
|
var valInitType = typeof valInit, isValidStyleKeyInit = isValidStyleKey(keyInit, validStyles, accept);
|
|
6028
|
-
if (0)
|
|
6029
|
-
if (staticConfig.isReactNative && keyInit.startsWith("data-")) var _viewProps2, _dataSet;
|
|
6030
|
-
if (isValidStyleKeyInit && valInitType === "string" && valInit[0] === "_") {
|
|
6031
|
-
var isValidClassName, isMediaOrPseudo;
|
|
6032
|
-
if ((isValidClassName || isMediaOrPseudo) && !shouldDoClasses) var _styleState3;
|
|
6033
|
-
}
|
|
6034
|
-
}
|
|
6071
|
+
if (0) var _viewProps2, _dataSet;
|
|
6035
6072
|
if (!isValidStyleKeyInit) {
|
|
6036
6073
|
if (!import_constants4.isAndroid && keyInit === "elevationAndroid") return "continue";
|
|
6037
6074
|
if (keyInit === "userSelect") keyInit = "selectable", valInit = valInit !== "none";
|
|
@@ -6042,8 +6079,8 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6042
6079
|
return "continue";
|
|
6043
6080
|
}
|
|
6044
6081
|
if (0) var didUseKeyInit;
|
|
6045
|
-
var isVariant = !isValidStyleKeyInit && variants && keyInit in variants, isStyleLikeKey = isValidStyleKeyInit || isVariant, isPseudo = keyInit in import_helpers.validPseudoKeys, isMedia = !isStyleLikeKey && !isPseudo && (0, import_useMedia.isMediaKey)(keyInit),
|
|
6046
|
-
if (
|
|
6082
|
+
var isVariant = !isValidStyleKeyInit && variants && keyInit in variants, isStyleLikeKey = isValidStyleKeyInit || isVariant, isPseudo = keyInit in import_helpers.validPseudoKeys, isMedia = !isStyleLikeKey && !isPseudo && (0, import_useMedia.isMediaKey)(keyInit), isMediaOrPseudo = !!(isMedia || isPseudo);
|
|
6083
|
+
if (isMediaOrPseudo && keyInit.startsWith("$group-")) {
|
|
6047
6084
|
var parts = keyInit.split("-");
|
|
6048
6085
|
if (
|
|
6049
6086
|
// check if its actually a simple group selector to avoid breaking selectors
|
|
@@ -6053,16 +6090,16 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6053
6090
|
context != null && context.groups.subscribe && !(context != null && context.groups.state[name2]) && (keyInit = keyInit.replace("$group-", "$group-true-"));
|
|
6054
6091
|
}
|
|
6055
6092
|
}
|
|
6056
|
-
var isStyleProp = isValidStyleKeyInit ||
|
|
6093
|
+
var isStyleProp = isValidStyleKeyInit || isMediaOrPseudo || isVariant && !noExpand;
|
|
6057
6094
|
if (isStyleProp && (asChild === "except-style" || asChild === "except-style-web")) return "continue";
|
|
6058
6095
|
var shouldPassProp = !isStyleProp && isHOC || // is in parent variants
|
|
6059
|
-
isHOC && parentVariants && keyInit in parentVariants || (inlineProps == null ? void 0 : inlineProps.has(keyInit)), parentVariant = parentVariants == null ? void 0 : parentVariants[keyInit], isHOCShouldPassThrough = !!(isHOC && (isValidStyleKeyInit ||
|
|
6060
|
-
if (shouldPassThrough && (passDownProp(viewProps, keyInit, valInit,
|
|
6096
|
+
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;
|
|
6097
|
+
if (shouldPassThrough && (passDownProp(viewProps, keyInit, valInit, isMediaOrPseudo), !isVariant) || !noSkip && keyInit in import_skipProps.skipProps) return "continue";
|
|
6061
6098
|
(isText || isInput) && valInit && (keyInit === "fontFamily" || keyInit === shorthands.fontFamily) && valInit in conf.fontsParsed && (styleState.fontFamily = valInit);
|
|
6062
|
-
var disablePropMap =
|
|
6099
|
+
var disablePropMap = isMediaOrPseudo || !isStyleLikeKey;
|
|
6063
6100
|
(0, import_propMapper.propMapper)(keyInit, valInit, styleState, disablePropMap, function(key4, val2) {
|
|
6064
6101
|
var _parentStaticConfig_variants;
|
|
6065
|
-
if (!isHOC && disablePropMap && !
|
|
6102
|
+
if (!isHOC && disablePropMap && !isMediaOrPseudo) {
|
|
6066
6103
|
viewProps[key4] = val2;
|
|
6067
6104
|
return;
|
|
6068
6105
|
}
|
|
@@ -6075,18 +6112,18 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6075
6112
|
mergeStyle(styleState, key4, val2);
|
|
6076
6113
|
return;
|
|
6077
6114
|
}
|
|
6078
|
-
if (isPseudo = key4 in import_helpers.validPseudoKeys, isMedia = !isPseudo && (0, import_useMedia.isMediaKey)(key4),
|
|
6115
|
+
if (isPseudo = key4 in import_helpers.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)) {
|
|
6079
6116
|
var _props_key;
|
|
6080
6117
|
viewProps[key4] = (_props_key = props[key4]) !== null && _props_key !== void 0 ? _props_key : val2;
|
|
6081
6118
|
}
|
|
6082
|
-
var shouldPassThrough2 = styleProps.noExpand && isPseudo || isHOC && (
|
|
6119
|
+
var shouldPassThrough2 = styleProps.noExpand && isPseudo || isHOC && (isMediaOrPseudo || (parentStaticConfig == null || (_parentStaticConfig_variants = parentStaticConfig.variants) === null || _parentStaticConfig_variants === void 0 ? void 0 : _parentStaticConfig_variants[keyInit]));
|
|
6083
6120
|
if (shouldPassThrough2) {
|
|
6084
|
-
passDownProp(viewProps, key4, val2,
|
|
6121
|
+
passDownProp(viewProps, key4, val2, isMediaOrPseudo);
|
|
6085
6122
|
return;
|
|
6086
6123
|
}
|
|
6087
6124
|
if (isPseudo) {
|
|
6088
6125
|
if (!val2) return;
|
|
6089
|
-
var pseudoStyleObject = getSubStyle(styleState, key4, val2, styleProps.noClass);
|
|
6126
|
+
var pseudoStyleObject = getSubStyle(styleState, key4, val2, styleProps.noClass && process.env.IS_STATIC !== "is_static");
|
|
6090
6127
|
if (!shouldDoClasses || process.env.IS_STATIC === "is_static") {
|
|
6091
6128
|
var _pseudos, _key;
|
|
6092
6129
|
if (pseudos || (pseudos = {}), (_pseudos = pseudos)[_key = key4] || (_pseudos[_key] = {}), process.env.IS_STATIC === "is_static") {
|
|
@@ -6101,7 +6138,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6101
6138
|
try {
|
|
6102
6139
|
for (var _iterator2 = pseudoStyles[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = !0) {
|
|
6103
6140
|
var psuedoStyle = _step2.value, fullKey = `${psuedoStyle[import_helpers.StyleObjectProperty]}${PROP_SPLIT}${descriptor.name}`;
|
|
6104
|
-
fullKey in usedKeys || (addStyleToInsertRules(rulesToInsert, psuedoStyle),
|
|
6141
|
+
fullKey in usedKeys || (addStyleToInsertRules(rulesToInsert, psuedoStyle), classNames[fullKey] = psuedoStyle[import_helpers.StyleObjectIdentifier]);
|
|
6105
6142
|
}
|
|
6106
6143
|
} catch (err) {
|
|
6107
6144
|
_didIteratorError2 = !0, _iteratorError2 = err;
|
|
@@ -6156,7 +6193,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6156
6193
|
var style3 = _step12.value, property = style3[import_helpers.StyleObjectProperty], isSubStyle = property[0] === "$";
|
|
6157
6194
|
if (!(isSubStyle && !(0, import_isActivePlatform.isActivePlatform)(property))) {
|
|
6158
6195
|
var out = (0, import_createMediaStyle.createMediaStyle)(style3, mediaKeyShort, import_useMedia.mediaQueryConfig, isMedia, !1, priority), subKey = isSubStyle ? style3[2] : "", fullKey1 = `${style3[import_helpers.StyleObjectProperty]}${subKey}${PROP_SPLIT}${mediaKeyShort}${style3[import_helpers.StyleObjectPseudo] || ""}`;
|
|
6159
|
-
fullKey1 in usedKeys || (addStyleToInsertRules(rulesToInsert, out),
|
|
6196
|
+
fullKey1 in usedKeys || (addStyleToInsertRules(rulesToInsert, out), classNames[fullKey1] = out[import_helpers.StyleObjectIdentifier]);
|
|
6160
6197
|
}
|
|
6161
6198
|
}
|
|
6162
6199
|
} catch (err) {
|
|
@@ -6170,8 +6207,8 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6170
6207
|
}
|
|
6171
6208
|
} else {
|
|
6172
6209
|
var mergeMediaStyle2 = function(key5, val3) {
|
|
6173
|
-
var
|
|
6174
|
-
(
|
|
6210
|
+
var _styleState3;
|
|
6211
|
+
(_styleState3 = styleState).style || (_styleState3.style = {});
|
|
6175
6212
|
var didMerge = mergeMediaByImportance(styleState, mediaKeyShort, key5, val3, usedKeys, mediaState3[mediaKeyShort], importanceBump, debug);
|
|
6176
6213
|
didMerge && key5 === "fontFamily" && (styleState.fontFamily = mediaStyle1.fontFamily);
|
|
6177
6214
|
}, mergeMediaStyle = mergeMediaStyle2, isThemeMedia = isMedia === "theme", isGroupMedia = isMedia === "group", isPlatformMedia = isMedia === "platform";
|
|
@@ -6226,7 +6263,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6226
6263
|
});
|
|
6227
6264
|
};
|
|
6228
6265
|
conf = conf || (0, import_config.getConfig)(), import_constants4.isWeb && styleProps.isAnimated && conf.animations.isReactNative && !styleProps.noNormalize && (styleProps.noNormalize = "values");
|
|
6229
|
-
var { shorthands } = conf, { isHOC, isText, isInput, variants, isReactNative, inlineProps, inlineWhenUnflattened, parentStaticConfig, acceptsClassName } = staticConfig, viewProps = {}, mediaState3 = styleProps.mediaState || import_useMedia.mediaState, usedKeys = {}, shouldDoClasses = acceptsClassName && import_constants4.isWeb && !styleProps.noClass, rulesToInsert = void 0, classNames = {},
|
|
6266
|
+
var { shorthands } = conf, { isHOC, isText, isInput, variants, isReactNative, inlineProps, inlineWhenUnflattened, parentStaticConfig, acceptsClassName } = staticConfig, viewProps = {}, mediaState3 = styleProps.mediaState || import_useMedia.mediaState, usedKeys = {}, shouldDoClasses = acceptsClassName && import_constants4.isWeb && !styleProps.noClass, rulesToInsert = void 0, classNames = {}, pseudos = null, space = props.space, hasMedia = !1, dynamicThemeAccess, pseudoGroups, mediaGroups, className = props.className || "", mediaStylesSeen = 0, validStyles = staticConfig.validStyles || (staticConfig.isText || staticConfig.isInput ? import_helpers.stylePropsText : import_helpers.validStyles), styleState = {
|
|
6230
6267
|
classNames,
|
|
6231
6268
|
conf,
|
|
6232
6269
|
props,
|
|
@@ -6254,13 +6291,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6254
6291
|
if (!avoidNormalize) {
|
|
6255
6292
|
if (styleState.style && ((0, import_expandStyles.fixStyles)(styleState.style), !styleProps.noExpand && !styleProps.noMergeStyle && import_constants4.isWeb && !isReactNative && (0, import_getCSSStylesAtomic.styleToCSS)(styleState.style)), styleState.flatTransforms) {
|
|
6256
6293
|
var _styleState;
|
|
6257
|
-
(_styleState = styleState).style || (_styleState.style = {}),
|
|
6258
|
-
var [a] = param, [b] = param1;
|
|
6259
|
-
return (0, import_sortString.sortString)(a, b);
|
|
6260
|
-
}).forEach(function(param) {
|
|
6261
|
-
var [key4, val2] = param;
|
|
6262
|
-
mergeTransform(styleState.style, key4, val2, !0);
|
|
6263
|
-
});
|
|
6294
|
+
(_styleState = styleState).style || (_styleState.style = {}), mergeFlatTransforms(styleState.style, styleState.flatTransforms);
|
|
6264
6295
|
}
|
|
6265
6296
|
if (parentSplitStyles) {
|
|
6266
6297
|
if (0) for (var key in parentSplitStyles.classNames) var val;
|
|
@@ -6282,10 +6313,6 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6282
6313
|
} finally {
|
|
6283
6314
|
}
|
|
6284
6315
|
}
|
|
6285
|
-
if (transforms) for (var namespace in transforms) {
|
|
6286
|
-
var hash, val1, identifier1;
|
|
6287
|
-
if (import_constants4.isClient && !insertedTransforms[identifier1]) var rule;
|
|
6288
|
-
}
|
|
6289
6316
|
}
|
|
6290
6317
|
if (isReactNative) {
|
|
6291
6318
|
if (viewProps.tabIndex === 0) var _viewProps, _accessible;
|
|
@@ -6344,16 +6371,18 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6344
6371
|
}
|
|
6345
6372
|
return result;
|
|
6346
6373
|
};
|
|
6347
|
-
function
|
|
6348
|
-
|
|
6349
|
-
|
|
6374
|
+
function mergeFlatTransforms(target, flatTransforms) {
|
|
6375
|
+
Object.entries(flatTransforms).sort(function(param, param1) {
|
|
6376
|
+
var [a] = param, [b] = param1;
|
|
6377
|
+
return (0, import_sortString.sortString)(a, b);
|
|
6378
|
+
}).forEach(function(param) {
|
|
6379
|
+
var [key, val] = param;
|
|
6380
|
+
mergeTransform(target, key, val, !0);
|
|
6381
|
+
});
|
|
6350
6382
|
}
|
|
6351
6383
|
function mergeStyle(styleState, key, val) {
|
|
6352
|
-
var disableNormalize = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1, {
|
|
6353
|
-
if (
|
|
6354
|
-
var _usedKeys, _key;
|
|
6355
|
-
classNames[key] = val, (_usedKeys = usedKeys)[_key = key] || (_usedKeys[_key] = 1);
|
|
6356
|
-
} else if (key in import_helpers.stylePropsTransform) {
|
|
6384
|
+
var disableNormalize = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1, { viewProps, styleProps, staticConfig } = styleState;
|
|
6385
|
+
if (key in import_helpers.stylePropsTransform) {
|
|
6357
6386
|
var _styleState;
|
|
6358
6387
|
(_styleState = styleState).flatTransforms || (_styleState.flatTransforms = {}), styleState.flatTransforms[key] = val;
|
|
6359
6388
|
} else {
|
|
@@ -6364,7 +6393,11 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6364
6393
|
) viewProps[key] = out;
|
|
6365
6394
|
else {
|
|
6366
6395
|
var _styleState1;
|
|
6367
|
-
(_styleState1 = styleState).style || (_styleState1.style = {}), styleState.style[key] =
|
|
6396
|
+
(_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
|
|
6397
|
+
// if theres any flatTransforms later, causing issues (mutating props is bad, in strict mode styles get borked)
|
|
6398
|
+
key === "transform" && Array.isArray(out) ? [
|
|
6399
|
+
...out
|
|
6400
|
+
] : out;
|
|
6368
6401
|
}
|
|
6369
6402
|
}
|
|
6370
6403
|
}
|
|
@@ -6379,6 +6412,16 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6379
6412
|
}), key = key1;
|
|
6380
6413
|
}, { staticConfig, conf: conf2, styleProps } = styleState, styleOut = {};
|
|
6381
6414
|
for (var key in styleIn) _loop(key);
|
|
6415
|
+
if (!avoidMergeTransform) {
|
|
6416
|
+
if (Array.isArray(styleOut.transform)) {
|
|
6417
|
+
var _styleState_style, parentTransform = (_styleState_style = styleState.style) === null || _styleState_style === void 0 ? void 0 : _styleState_style.transform;
|
|
6418
|
+
parentTransform && (styleOut.transform = [
|
|
6419
|
+
...parentTransform,
|
|
6420
|
+
...styleOut.transform
|
|
6421
|
+
]);
|
|
6422
|
+
}
|
|
6423
|
+
styleState.flatTransforms && mergeFlatTransforms(styleOut, styleState.flatTransforms);
|
|
6424
|
+
}
|
|
6382
6425
|
return styleProps.noNormalize || (0, import_expandStyles.fixStyles)(styleOut), styleOut;
|
|
6383
6426
|
}, useInsertEffectCompat = import_constants4.isWeb ? import_react3.default.useInsertionEffect || import_constants4.useIsomorphicLayoutEffect : function() {
|
|
6384
6427
|
}, useSplitStyles = function(a, b, c, d, e, f, g, h, i, j) {
|
|
@@ -6697,7 +6740,7 @@ var require_subscribeToContextGroup_native = __commonJS({
|
|
|
6697
6740
|
});
|
|
6698
6741
|
module2.exports = __toCommonJS2(subscribeToContextGroup_exports);
|
|
6699
6742
|
var import_createShallowSetState = require_createShallowSetState_native(), import_useMedia = require_useMedia_native(), subscribeToContextGroup = function(param) {
|
|
6700
|
-
var {
|
|
6743
|
+
var { setStateShallow, pseudoGroups, mediaGroups, componentContext, state } = param;
|
|
6701
6744
|
if (pseudoGroups || mediaGroups) {
|
|
6702
6745
|
var _componentContext_groups_subscribe, _componentContext_groups, current = {
|
|
6703
6746
|
pseudo: {},
|
|
@@ -7934,7 +7977,7 @@ var require_createComponent_native = __commonJS({
|
|
|
7934
7977
|
}
|
|
7935
7978
|
});
|
|
7936
7979
|
module2.exports = __toCommonJS2(createComponent_exports);
|
|
7937
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), import_constants4 = require_index_native6(), import_helpers = require_index_native7(), 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(), componentSetStates = /* @__PURE__ */ new Set();
|
|
7980
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), import_constants4 = require_index_native6(), import_helpers = require_index_native7(), 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(), componentSetStates = /* @__PURE__ */ new Set();
|
|
7938
7981
|
typeof document < "u" && (cancelTouches = function() {
|
|
7939
7982
|
componentSetStates.forEach(function(setState) {
|
|
7940
7983
|
return setState(function(prev) {
|
|
@@ -8099,32 +8142,29 @@ var require_createComponent_native = __commonJS({
|
|
|
8099
8142
|
pressIn: !1
|
|
8100
8143
|
});
|
|
8101
8144
|
};
|
|
8102
|
-
|
|
8145
|
+
(0, import_constants4.useIsomorphicLayoutEffect)(function() {
|
|
8103
8146
|
if (!disabled) {
|
|
8104
|
-
var tm;
|
|
8105
8147
|
if (state.unmounted === !0 && hasEnterStyle) {
|
|
8106
8148
|
setStateShallow({
|
|
8107
8149
|
unmounted: "should-enter"
|
|
8108
8150
|
});
|
|
8109
8151
|
return;
|
|
8110
8152
|
}
|
|
8111
|
-
if (state.unmounted)
|
|
8153
|
+
if (state.unmounted) {
|
|
8112
8154
|
setStateShallow({
|
|
8113
8155
|
unmounted: !1
|
|
8114
8156
|
});
|
|
8115
|
-
|
|
8116
|
-
|
|
8117
|
-
|
|
8118
|
-
var dispose = (0, import_subscribeToContextGroup.subscribeToContextGroup)({
|
|
8119
|
-
disabled,
|
|
8157
|
+
return;
|
|
8158
|
+
}
|
|
8159
|
+
var dispose = pseudoGroups || mediaGroups ? (0, import_subscribeToContextGroup.subscribeToContextGroup)({
|
|
8120
8160
|
componentContext,
|
|
8121
8161
|
setStateShallow,
|
|
8122
8162
|
state,
|
|
8123
8163
|
mediaGroups,
|
|
8124
8164
|
pseudoGroups
|
|
8125
|
-
});
|
|
8165
|
+
}) : null;
|
|
8126
8166
|
return function() {
|
|
8127
|
-
|
|
8167
|
+
dispose == null || dispose(), componentSetStates.delete(setState);
|
|
8128
8168
|
};
|
|
8129
8169
|
}
|
|
8130
8170
|
}, [
|
|
@@ -10232,7 +10272,6 @@ var require_useProps_native = __commonJS({
|
|
|
10232
10272
|
return;
|
|
10233
10273
|
}
|
|
10234
10274
|
return (0, import_subscribeToContextGroup.subscribeToContextGroup)({
|
|
10235
|
-
disabled,
|
|
10236
10275
|
componentContext,
|
|
10237
10276
|
setStateShallow,
|
|
10238
10277
|
state,
|
|
@@ -29149,7 +29188,7 @@ var require_Tabs_native = __commonJS({
|
|
|
29149
29188
|
}, Tabs_exports = {};
|
|
29150
29189
|
__export2(Tabs_exports, {
|
|
29151
29190
|
Tabs: function() {
|
|
29152
|
-
return
|
|
29191
|
+
return Tabs2;
|
|
29153
29192
|
},
|
|
29154
29193
|
useTabsContext: function() {
|
|
29155
29194
|
return useTabsContext;
|
|
@@ -29368,7 +29407,7 @@ var require_Tabs_native = __commonJS({
|
|
|
29368
29407
|
ref: forwardedRef
|
|
29369
29408
|
})
|
|
29370
29409
|
});
|
|
29371
|
-
}),
|
|
29410
|
+
}), Tabs2 = (0, import_helpers.withStaticProperties)(TabsComponent, {
|
|
29372
29411
|
List: TabsList,
|
|
29373
29412
|
/**
|
|
29374
29413
|
* @deprecated Use Tabs.Tab instead
|
|
@@ -29377,7 +29416,6 @@ var require_Tabs_native = __commonJS({
|
|
|
29377
29416
|
Tab: TabsTrigger,
|
|
29378
29417
|
Content: TabsContent
|
|
29379
29418
|
});
|
|
29380
|
-
Tabs.displayName = TABS_NAME;
|
|
29381
29419
|
function makeTriggerId(baseId, value) {
|
|
29382
29420
|
return `${baseId}-trigger-${value}`;
|
|
29383
29421
|
}
|