tamagui 1.90.0 → 1.90.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.
@@ -497,7 +497,8 @@ var require_PresenceChild_native = __commonJS({
497
497
  * we want to make a new context value to ensure they get re-rendered
498
498
  * so they can detect that layout change.
499
499
  */
500
- presenceAffectsLayout ? [] : [
500
+ // @ts-expect-error its ok
501
+ presenceAffectsLayout ? void 0 : [
501
502
  isPresent,
502
503
  exitVariant,
503
504
  enterVariant
@@ -3033,9 +3034,6 @@ var require_useMedia_native = __commonJS({
3033
3034
  mediaState: function() {
3034
3035
  return mediaState3;
3035
3036
  },
3036
- mergeMediaByImportance: function() {
3037
- return mergeMediaByImportance;
3038
- },
3039
3037
  setMediaShouldUpdate: function() {
3040
3038
  return setMediaShouldUpdate;
3041
3039
  },
@@ -3242,10 +3240,6 @@ var require_useMedia_native = __commonJS({
3242
3240
  var conf = (0, import_config.getConfig)(), importance = isSizeMedia && !conf.settings.mediaPropOrder ? getMediaKeyImportance(mediaKey) : defaultMediaImportance;
3243
3241
  return !importancesUsed[key] || importance > importancesUsed[key] ? importance : null;
3244
3242
  };
3245
- function mergeMediaByImportance(onto, mediaKey, key, value, importancesUsed, isSizeMedia, importanceBump) {
3246
- var importance = getMediaImportanceIfMoreImportant(mediaKey, key, importancesUsed, isSizeMedia);
3247
- return importanceBump && (importance = (importance || 0) + importanceBump), importance === null ? !1 : (importancesUsed[key] = importance, onto[key] = value, !0);
3248
- }
3249
3243
  function camelToHyphen(str) {
3250
3244
  return str.replace(/[A-Z]/g, function(m) {
3251
3245
  return "-".concat(m.toLowerCase());
@@ -7377,197 +7371,192 @@ var require_getSplitStyles_native = __commonJS({
7377
7371
  if (!(isStyleProp && (props.asChild === "except-style" || props.asChild === "except-style-web"))) {
7378
7372
  var shouldPassProp = !isStyleProp || // is in parent variants
7379
7373
  isHOC && (parentStaticConfig == null ? void 0 : parentStaticConfig.variants) && keyInit in parentStaticConfig.variants || (inlineProps == null ? void 0 : inlineProps.has(keyInit)), parentVariant = parentStaticConfig == null || (_parentStaticConfig_variants = parentStaticConfig.variants) === null || _parentStaticConfig_variants === void 0 ? void 0 : _parentStaticConfig_variants[keyInit], isHOCShouldPassThrough = !!(isHOC && (isShorthand || isValidStyleKeyInit || isMediaOrPseudo1 || parentVariant || keyInit in import_skipProps.skipProps)), shouldPassThrough = shouldPassProp || isHOCShouldPassThrough;
7380
- if (!(shouldPassThrough && (passDownProp(viewProps, keyInit, valInit, isMediaOrPseudo1), !isVariant)) && !(!styleProps.noSkip && keyInit in import_skipProps.skipProps)) {
7381
- (isText || isInput) && valInit && (keyInit === "fontFamily" || keyInit === shorthands.fontFamily) && valInit in conf.fontsParsed && (styleState.fontFamily = valInit);
7382
- var avoidPropMap = isMediaOrPseudo1 || !isVariant && !isValidStyleKeyInit, expanded = avoidPropMap ? null : (0, import_propMapper.propMapper)(keyInit, valInit, styleState);
7383
- if (!avoidPropMap) {
7384
- if (!expanded)
7385
- continue;
7386
- var next = (0, import_propMapper.getPropMappedFontFamily)(expanded);
7387
- next && (styleState.fontFamily = next);
7374
+ if (shouldPassThrough && (passDownProp(viewProps, keyInit, valInit, isMediaOrPseudo1), !isVariant) || !styleProps.noSkip && keyInit in import_skipProps.skipProps)
7375
+ continue;
7376
+ (isText || isInput) && valInit && (keyInit === "fontFamily" || keyInit === shorthands.fontFamily) && valInit in conf.fontsParsed && (styleState.fontFamily = valInit);
7377
+ var avoidPropMap = isMediaOrPseudo1 || !isVariant && !isValidStyleKeyInit, expanded = avoidPropMap ? null : (0, import_propMapper.propMapper)(keyInit, valInit, styleState);
7378
+ if (!avoidPropMap) {
7379
+ if (!expanded)
7380
+ continue;
7381
+ var next = (0, import_propMapper.getPropMappedFontFamily)(expanded);
7382
+ next && (styleState.fontFamily = next);
7383
+ }
7384
+ if (0)
7385
+ try {
7386
+ } catch (e) {
7388
7387
  }
7389
- if (0)
7390
- try {
7391
- } catch (e) {
7388
+ for (var key = keyInit, val = valInit, max2 = expanded ? expanded.length : 1, i = 0; i < max2; i++) {
7389
+ var _parentStaticConfig_variants1;
7390
+ if (expanded) {
7391
+ var _expanded_i = _sliced_to_array(expanded[i], 2), k = _expanded_i[0], v = _expanded_i[1];
7392
+ key = k, val = v;
7393
+ }
7394
+ if (val != null && !(key in usedKeys)) {
7395
+ if (isPseudo = key in import_helpers.validPseudoKeys, isMedia = !isPseudo && !isValidStyleKeyInit && (0, import_useMedia.isMediaKey)(key), isMediaOrPseudo1 = !!(isMedia || isPseudo), isVariant = variants && key in variants, inlineProps != null && inlineProps.has(key) || IS_STATIC && inlineWhenUnflattened != null && inlineWhenUnflattened.has(key)) {
7396
+ var _props_key;
7397
+ viewProps[key] = (_props_key = props[key]) !== null && _props_key !== void 0 ? _props_key : val;
7392
7398
  }
7393
- for (var key = keyInit, val = valInit, max2 = expanded ? expanded.length : 1, i = 0; i < max2; i++) {
7394
- var _parentStaticConfig_variants1;
7395
- if (expanded) {
7396
- var _expanded_i = _sliced_to_array(expanded[i], 2), k = _expanded_i[0], v = _expanded_i[1];
7397
- key = k, val = v;
7399
+ var shouldPassThrough1 = styleProps.noExpand && isPseudo || isHOC && (isMediaOrPseudo1 || (parentStaticConfig == null || (_parentStaticConfig_variants1 = parentStaticConfig.variants) === null || _parentStaticConfig_variants1 === void 0 ? void 0 : _parentStaticConfig_variants1[keyInit]));
7400
+ if (shouldPassThrough1) {
7401
+ passDownProp(viewProps, key, val, isMediaOrPseudo1);
7402
+ continue;
7398
7403
  }
7399
- if (val != null && !(key in usedKeys)) {
7400
- if (isPseudo = key in import_helpers.validPseudoKeys, isMedia = !isPseudo && !isValidStyleKeyInit && (0, import_useMedia.isMediaKey)(key), isMediaOrPseudo1 = !!(isMedia || isPseudo), isVariant = variants && key in variants, inlineProps != null && inlineProps.has(key) || IS_STATIC && inlineWhenUnflattened != null && inlineWhenUnflattened.has(key)) {
7401
- var _props_key;
7402
- viewProps[key] = (_props_key = props[key]) !== null && _props_key !== void 0 ? _props_key : val;
7403
- }
7404
- var shouldPassThrough1 = styleProps.noExpand && isPseudo || isHOC && (isMediaOrPseudo1 || (parentStaticConfig == null || (_parentStaticConfig_variants1 = parentStaticConfig.variants) === null || _parentStaticConfig_variants1 === void 0 ? void 0 : _parentStaticConfig_variants1[keyInit]));
7405
- if (shouldPassThrough1) {
7406
- passDownProp(viewProps, key, val, isMediaOrPseudo1);
7404
+ if (isPseudo) {
7405
+ if (!val)
7407
7406
  continue;
7408
- }
7409
- if (isPseudo) {
7410
- if (!val)
7411
- continue;
7412
- var pseudoStyleObject = getSubStyle(styleState, key, val, styleProps.noClassNames), descriptor = import_pseudoDescriptors.pseudoDescriptors[key], isEnter = key === "enterStyle", isExit = key === "exitStyle";
7413
- if (!descriptor)
7407
+ var pseudoStyleObject = getSubStyle(styleState, key, val, styleProps.noClassNames), descriptor = import_pseudoDescriptors.pseudoDescriptors[key], isEnter = key === "enterStyle", isExit = key === "exitStyle";
7408
+ if (!descriptor)
7409
+ continue;
7410
+ if (!shouldDoClasses || IS_STATIC) {
7411
+ var _pseudos, _key;
7412
+ if (pseudos || (pseudos = {}), (_pseudos = pseudos)[_key = key] || (_pseudos[_key] = {}), IS_STATIC) {
7413
+ Object.assign(pseudos[key], pseudoStyleObject);
7414
7414
  continue;
7415
- if (!shouldDoClasses || IS_STATIC) {
7416
- var _pseudos, _key;
7417
- if (pseudos || (pseudos = {}), (_pseudos = pseudos)[_key = key] || (_pseudos[_key] = {}), IS_STATIC) {
7418
- Object.assign(pseudos[key], pseudoStyleObject);
7419
- continue;
7420
- }
7421
7415
  }
7422
- if (shouldDoClasses && !isExit) {
7423
- var pseudoStyles = (0, import_getStylesAtomic.getStyleAtomic)(pseudoStyleObject, descriptor), _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
7416
+ }
7417
+ if (shouldDoClasses && !isExit) {
7418
+ var pseudoStyles = (0, import_getStylesAtomic.getStyleAtomic)(pseudoStyleObject, descriptor), _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
7419
+ try {
7420
+ for (var _iterator = pseudoStyles[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
7421
+ var psuedoStyle = _step.value, fullKey = "".concat(psuedoStyle.property).concat(PROP_SPLIT).concat(descriptor.name);
7422
+ fullKey in usedKeys || mergeClassName(transforms, classNames, fullKey, psuedoStyle.identifier, isMediaOrPseudo1, !0);
7423
+ }
7424
+ } catch (err) {
7425
+ _didIteratorError = !0, _iteratorError = err;
7426
+ } finally {
7424
7427
  try {
7425
- for (var _iterator = pseudoStyles[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
7426
- var psuedoStyle = _step.value, fullKey = "".concat(psuedoStyle.property).concat(PROP_SPLIT).concat(descriptor.name);
7427
- fullKey in usedKeys || mergeClassName(transforms, classNames, fullKey, psuedoStyle.identifier, isMediaOrPseudo1, !0);
7428
- }
7429
- } catch (err) {
7430
- _didIteratorError = !0, _iteratorError = err;
7428
+ !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
7431
7429
  } finally {
7432
- try {
7433
- !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
7434
- } finally {
7435
- if (_didIteratorError)
7436
- throw _iteratorError;
7437
- }
7430
+ if (_didIteratorError)
7431
+ throw _iteratorError;
7438
7432
  }
7439
7433
  }
7440
- if (!shouldDoClasses || isExit || isEnter) {
7441
- var descriptorKey = descriptor.stateKey || descriptor.name, isDisabled = componentState[descriptorKey] === !1;
7442
- isExit && (isDisabled = !styleProps.isExiting), isEnter && (isDisabled = componentState.unmounted === "should-enter" ? !0 : !componentState.unmounted);
7443
- var importance = descriptor.priority;
7444
- for (var pkey in pseudoStyleObject) {
7445
- var val1 = pseudoStyleObject[pkey];
7446
- if (isDisabled) {
7447
- var defaultValues = animatableDefaults[pkey];
7448
- defaultValues != null && !(pkey in usedKeys) && (!styleState.style || !(pkey in styleState.style)) && mergeStyle(styleState, pkey, defaultValues);
7449
- } else {
7450
- var curImportance = usedKeys[pkey] || 0, shouldMerge = importance >= curImportance;
7451
- if (shouldMerge) {
7452
- var _pseudos1, _key1;
7453
- pseudos || (pseudos = {}), (_pseudos1 = pseudos)[_key1 = key] || (_pseudos1[_key1] = {}), pseudos[key][pkey] = val1, mergeStyle(styleState, pkey, val1);
7454
- }
7434
+ }
7435
+ if (!shouldDoClasses || isExit || isEnter) {
7436
+ var descriptorKey = descriptor.stateKey || descriptor.name, isDisabled = componentState[descriptorKey] === !1;
7437
+ isExit && (isDisabled = !styleProps.isExiting), isEnter && (isDisabled = componentState.unmounted === "should-enter" ? !0 : !componentState.unmounted);
7438
+ var importance = descriptor.priority;
7439
+ for (var pkey in pseudoStyleObject) {
7440
+ var val1 = pseudoStyleObject[pkey];
7441
+ if (isDisabled) {
7442
+ var defaultValues = animatableDefaults[pkey];
7443
+ defaultValues != null && !(pkey in usedKeys) && (!styleState.style || !(pkey in styleState.style)) && mergeStyle(styleState, pkey, defaultValues);
7444
+ } else {
7445
+ var curImportance = usedKeys[pkey] || 0, shouldMerge = importance >= curImportance;
7446
+ if (shouldMerge) {
7447
+ var _pseudos1, _key1;
7448
+ pseudos || (pseudos = {}), (_pseudos1 = pseudos)[_key1 = key] || (_pseudos1[_key1] = {}), pseudos[key][pkey] = val1, mergeStyle(styleState, pkey, val1);
7455
7449
  }
7456
7450
  }
7457
- if (!isDisabled)
7458
- for (var key1 in val) {
7459
- var k1 = shorthands[key1] || key1;
7460
- usedKeys[k1] = Math.max(importance, usedKeys[k1] || 0);
7461
- }
7462
7451
  }
7463
- continue;
7452
+ if (!isDisabled)
7453
+ for (var key1 in val) {
7454
+ var k1 = shorthands[key1] || key1;
7455
+ usedKeys[k1] = Math.max(importance, usedKeys[k1] || 0);
7456
+ }
7464
7457
  }
7465
- if (isMedia) {
7466
- if (!val)
7458
+ continue;
7459
+ }
7460
+ if (isMedia) {
7461
+ if (!val)
7462
+ continue;
7463
+ if (isMedia === "platform") {
7464
+ var platform = key.slice(10);
7465
+ if (
7466
+ // supports web, ios, android
7467
+ platform !== import_constants4.currentPlatform && // supports web, native
7468
+ platform !== "native"
7469
+ )
7467
7470
  continue;
7468
- if (isMedia === "platform") {
7469
- var platform = key.slice(10);
7470
- if (
7471
- // supports web, ios, android
7472
- platform !== import_constants4.currentPlatform && // supports web, native
7473
- platform !== "native"
7474
- )
7475
- continue;
7471
+ }
7472
+ hasMedia || (hasMedia = !0);
7473
+ var mediaKeyShort = key.slice(1), hasSpace = val.space;
7474
+ if ((hasSpace || !shouldDoClasses) && (Array.isArray(hasMedia) || (hasMedia = []), hasMedia.push(mediaKeyShort)), shouldDoClasses) {
7475
+ var mediaStyle = getSubStyle(styleState, key, val, !1);
7476
+ if (hasSpace && (delete mediaStyle.space, mediaState3[mediaKeyShort])) {
7477
+ var importance1 = (0, import_useMedia.getMediaImportanceIfMoreImportant)(mediaKeyShort, "space", usedKeys, !0);
7478
+ importance1 && (space = val.space, usedKeys.space = importance1);
7476
7479
  }
7477
- hasMedia || (hasMedia = !0);
7478
- var mediaStyle = getSubStyle(
7479
- styleState,
7480
- key,
7481
- val,
7482
- // TODO try true like pseudo
7483
- !1
7484
- ), mediaKeyShort = key.slice(1), hasSpace = val.space;
7485
- if ((hasSpace || !shouldDoClasses) && (Array.isArray(hasMedia) || (hasMedia = []), hasMedia.push(mediaKeyShort)), shouldDoClasses) {
7486
- if (hasSpace && (delete mediaStyle.space, mediaState3[mediaKeyShort])) {
7487
- var importance1 = (0, import_useMedia.getMediaImportanceIfMoreImportant)(mediaKeyShort, "space", usedKeys, !0);
7488
- importance1 && (space = val.space, usedKeys.space = importance1);
7480
+ var mediaStyles = (0, import_getStylesAtomic.getStylesAtomic)(mediaStyle), priority = mediaStylesSeen;
7481
+ mediaStylesSeen += 1;
7482
+ var _iteratorNormalCompletion1 = !0, _didIteratorError1 = !1, _iteratorError1 = void 0;
7483
+ try {
7484
+ for (var _iterator1 = mediaStyles[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = !0) {
7485
+ var style = _step1.value, out = (0, import_createMediaStyle.createMediaStyle)(style, mediaKeyShort, import_useMedia.mediaQueryConfig, isMedia, !1, priority), fullKey1 = "".concat(style.property).concat(PROP_SPLIT).concat(mediaKeyShort).concat(style.pseudo || "");
7486
+ fullKey1 in usedKeys || mergeClassName(transforms, classNames, fullKey1, out.identifier, !0, !0);
7489
7487
  }
7490
- var mediaStyles = (0, import_getStylesAtomic.getStylesAtomic)(mediaStyle), priority = mediaStylesSeen;
7491
- mediaStylesSeen += 1;
7492
- var _iteratorNormalCompletion1 = !0, _didIteratorError1 = !1, _iteratorError1 = void 0;
7488
+ } catch (err) {
7489
+ _didIteratorError1 = !0, _iteratorError1 = err;
7490
+ } finally {
7493
7491
  try {
7494
- for (var _iterator1 = mediaStyles[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = !0) {
7495
- var style = _step1.value, out = (0, import_createMediaStyle.createMediaStyle)(style, mediaKeyShort, import_useMedia.mediaQueryConfig, isMedia, !1, priority), fullKey1 = "".concat(style.property).concat(PROP_SPLIT).concat(mediaKeyShort).concat(style.pseudo || "");
7496
- fullKey1 in usedKeys || mergeClassName(transforms, classNames, fullKey1, out.identifier, !0, !0);
7497
- }
7498
- } catch (err) {
7499
- _didIteratorError1 = !0, _iteratorError1 = err;
7492
+ !_iteratorNormalCompletion1 && _iterator1.return != null && _iterator1.return();
7500
7493
  } finally {
7501
- try {
7502
- !_iteratorNormalCompletion1 && _iterator1.return != null && _iterator1.return();
7503
- } finally {
7504
- if (_didIteratorError1)
7505
- throw _iteratorError1;
7506
- }
7494
+ if (_didIteratorError1)
7495
+ throw _iteratorError1;
7507
7496
  }
7508
- } else {
7509
- var isThemeMedia = isMedia === "theme", isGroupMedia = isMedia === "group", isPlatformMedia = isMedia === "platform";
7510
- if (!isThemeMedia && !isPlatformMedia && !isGroupMedia && !mediaState3[mediaKeyShort])
7497
+ }
7498
+ } else {
7499
+ var mediaStyle1 = getSubStyle(styleState, key, val, !0), isThemeMedia = isMedia === "theme", isGroupMedia = isMedia === "group", isPlatformMedia = isMedia === "platform";
7500
+ if (!isThemeMedia && !isPlatformMedia && !isGroupMedia && !mediaState3[mediaKeyShort])
7501
+ continue;
7502
+ var importanceBump = 0;
7503
+ if (isThemeMedia) {
7504
+ dynamicThemeAccess = !0;
7505
+ var mediaThemeName = mediaKeyShort.slice(6);
7506
+ if (!(themeName === mediaThemeName || themeName.startsWith(mediaThemeName)))
7511
7507
  continue;
7512
- var importanceBump = 0;
7513
- if (isThemeMedia) {
7514
- dynamicThemeAccess = !0;
7515
- var mediaThemeName = mediaKeyShort.slice(6);
7516
- if (!(themeName === mediaThemeName || themeName.startsWith(mediaThemeName)))
7517
- continue;
7518
- } else if (isGroupMedia) {
7519
- var _componentState_group, groupInfo = (0, import_getGroupPropParts.getGroupPropParts)(mediaKeyShort), groupName = groupInfo.name, groupContext = context == null ? void 0 : context.groups.state[groupName];
7520
- if (!groupContext)
7508
+ } else if (isGroupMedia) {
7509
+ var _componentState_group, groupInfo = (0, import_getGroupPropParts.getGroupPropParts)(mediaKeyShort), groupName = groupInfo.name, groupContext = context == null ? void 0 : context.groups.state[groupName];
7510
+ if (!groupContext)
7511
+ continue;
7512
+ var groupPseudoKey = groupInfo.pseudo, groupMediaKey = groupInfo.media, componentGroupState = (_componentState_group = componentState.group) === null || _componentState_group === void 0 ? void 0 : _componentState_group[groupName];
7513
+ if (groupMediaKey) {
7514
+ mediaGroups || (mediaGroups = /* @__PURE__ */ new Set()), mediaGroups.add(groupMediaKey);
7515
+ var mediaState1 = componentGroupState == null ? void 0 : componentGroupState.media, isActive = mediaState1 == null ? void 0 : mediaState1[groupMediaKey];
7516
+ if (!mediaState1 && groupContext.layout && (isActive = (0, import_useMedia.mediaKeyMatch)(groupMediaKey, groupContext.layout)), !isActive)
7521
7517
  continue;
7522
- var groupPseudoKey = groupInfo.pseudo, groupMediaKey = groupInfo.media, componentGroupState = (_componentState_group = componentState.group) === null || _componentState_group === void 0 ? void 0 : _componentState_group[groupName];
7523
- if (groupMediaKey) {
7524
- mediaGroups || (mediaGroups = /* @__PURE__ */ new Set()), mediaGroups.add(groupMediaKey);
7525
- var mediaState1 = componentGroupState == null ? void 0 : componentGroupState.media, isActive = mediaState1 == null ? void 0 : mediaState1[groupMediaKey];
7526
- if (!mediaState1 && groupContext.layout && (isActive = (0, import_useMedia.mediaKeyMatch)(groupMediaKey, groupContext.layout)), !isActive)
7527
- continue;
7528
- importanceBump = 2;
7529
- }
7530
- if (groupPseudoKey) {
7531
- pseudoGroups || (pseudoGroups = /* @__PURE__ */ new Set()), pseudoGroups.add(groupName);
7532
- var componentGroupPseudoState = (componentGroupState || // fallback to context initially
7533
- context.groups.state[groupName]).pseudo, isActive1 = componentGroupPseudoState == null ? void 0 : componentGroupPseudoState[groupPseudoKey];
7534
- if (!isActive1)
7535
- continue;
7536
- var priority1 = import_pseudoDescriptors.pseudoPriorities[groupPseudoKey];
7537
- importanceBump = priority1;
7538
- }
7518
+ importanceBump = 2;
7539
7519
  }
7540
- for (var subKey in mediaStyle) {
7541
- var _styleState2;
7542
- if (subKey === "space") {
7543
- space = valInit.space;
7520
+ if (groupPseudoKey) {
7521
+ pseudoGroups || (pseudoGroups = /* @__PURE__ */ new Set()), pseudoGroups.add(groupName);
7522
+ var componentGroupPseudoState = (componentGroupState || // fallback to context initially
7523
+ context.groups.state[groupName]).pseudo, isActive1 = componentGroupPseudoState == null ? void 0 : componentGroupPseudoState[groupPseudoKey];
7524
+ if (!isActive1)
7544
7525
  continue;
7545
- }
7546
- (_styleState2 = styleState).style || (_styleState2.style = {}), (0, import_useMedia.mergeMediaByImportance)(styleState.style, mediaKeyShort, subKey, mediaStyle[subKey], usedKeys, mediaState3[mediaKeyShort], importanceBump), key === "fontFamily" && (styleState.fontFamily = mediaStyle.fontFamily);
7526
+ var priority1 = import_pseudoDescriptors.pseudoPriorities[groupPseudoKey];
7527
+ importanceBump = priority1;
7547
7528
  }
7548
7529
  }
7549
- continue;
7550
- }
7551
- if (key === "pointerEvents") {
7552
- viewProps[key] = val;
7553
- continue;
7554
- }
7555
- if (
7556
- // is HOC we can just pass through the styles as props
7557
- // this fixes issues where style prop got merged with wrong priority
7558
- !isHOC && (isValidStyleKey(key, staticConfig) || import_constants4.isAndroid && key === "elevation")
7559
- ) {
7560
- mergeStyle(styleState, key, val);
7561
- continue;
7530
+ for (var subKey in mediaStyle1) {
7531
+ var _styleState2;
7532
+ if (subKey === "space") {
7533
+ space = valInit.space;
7534
+ continue;
7535
+ }
7536
+ (_styleState2 = styleState).style || (_styleState2.style = {}), mergeMediaByImportance(styleState, mediaKeyShort, subKey, mediaStyle1[subKey], usedKeys, mediaState3[mediaKeyShort], importanceBump), key === "fontFamily" && (styleState.fontFamily = mediaStyle1.fontFamily);
7537
+ }
7562
7538
  }
7563
- isVariant || (viewProps[key] = val);
7539
+ continue;
7564
7540
  }
7565
- }
7566
- if (0)
7567
- try {
7568
- } catch (e) {
7541
+ if (key === "pointerEvents") {
7542
+ viewProps[key] = val;
7543
+ continue;
7544
+ }
7545
+ if (
7546
+ // is HOC we can just pass through the styles as props
7547
+ // this fixes issues where style prop got merged with wrong priority
7548
+ !isHOC && (isValidStyleKey(key, staticConfig) || import_constants4.isAndroid && key === "elevation")
7549
+ ) {
7550
+ mergeStyle(styleState, key, val);
7551
+ continue;
7569
7552
  }
7553
+ isVariant || (viewProps[key] = val);
7554
+ }
7570
7555
  }
7556
+ if (0)
7557
+ try {
7558
+ } catch (e) {
7559
+ }
7571
7560
  }
7572
7561
  }
7573
7562
  }
@@ -7600,9 +7589,9 @@ var require_getSplitStyles_native = __commonJS({
7600
7589
  }
7601
7590
  var avoidNormalize = styleProps.noNormalize === !1;
7602
7591
  if (!avoidNormalize) {
7603
- if (styleState.style && ((0, import_expandStyles.fixStyles)(styleState.style), import_constants4.isWeb && !staticConfig.isReactNative && (0, import_getStylesAtomic.styleToCSS)(styleState.style)), styleState.transforms) {
7592
+ if (styleState.style && ((0, import_expandStyles.fixStyles)(styleState.style), import_constants4.isWeb && !staticConfig.isReactNative && (0, import_getStylesAtomic.styleToCSS)(styleState.style)), styleState.flatTransforms) {
7604
7593
  var _styleState4;
7605
- (_styleState4 = styleState).style || (_styleState4.style = {}), Object.entries(styleState.transforms).sort(function(param, param1) {
7594
+ (_styleState4 = styleState).style || (_styleState4.style = {}), Object.entries(styleState.flatTransforms).sort(function(param, param1) {
7606
7595
  var _param = _sliced_to_array(param, 1), a = _param[0], _param1 = _sliced_to_array(param1, 1), b = _param1[0];
7607
7596
  return a.localeCompare(b);
7608
7597
  }).forEach(function(param) {
@@ -7709,7 +7698,7 @@ var require_getSplitStyles_native = __commonJS({
7709
7698
  classNames[key] = val, (_usedKeys = usedKeys)[_key = key] || (_usedKeys[_key] = 1);
7710
7699
  } else if (key in import_helpers.stylePropsTransform) {
7711
7700
  var _styleState;
7712
- (_styleState = styleState).transforms || (_styleState.transforms = {}), styleState.transforms[key] = val;
7701
+ (_styleState = styleState).flatTransforms || (_styleState.flatTransforms = {}), styleState.flatTransforms[key] = val;
7713
7702
  } else {
7714
7703
  var shouldNormalize = import_constants4.isWeb && !disableNormalize && !styleProps.noNormalize, out = shouldNormalize ? (0, import_normalizeValueWithProperty.normalizeValueWithProperty)(val, key) : val;
7715
7704
  if (
@@ -7780,6 +7769,10 @@ var require_getSplitStyles_native = __commonJS({
7780
7769
  } else
7781
7770
  viewProps[key] = val;
7782
7771
  }
7772
+ function mergeMediaByImportance(styleState, mediaKey, key, value, importancesUsed, isSizeMedia, importanceBump) {
7773
+ var importance = (0, import_useMedia.getMediaImportanceIfMoreImportant)(mediaKey, key, importancesUsed, isSizeMedia);
7774
+ return importanceBump && (importance = (importance || 0) + importanceBump), importance === null ? !1 : (importancesUsed[key] = importance, mergeStyle(styleState, key, value), !0);
7775
+ }
7783
7776
  }
7784
7777
  });
7785
7778
 
@@ -8832,9 +8825,9 @@ var require_createComponent_native = __commonJS({
8832
8825
  };
8833
8826
  disposeGroupsListener = componentContext.groups.subscribe(function(name2, param) {
8834
8827
  var layout = param.layout, pseudo = param.pseudo, persist = function() {
8828
+ var group = _object_spread_props8(_object_spread9({}, state.group), _define_property9({}, name2, current));
8835
8829
  setStateShallow({
8836
- // force it to be referentially different so it always updates
8837
- group: _object_spread_props8(_object_spread9({}, state.group), _define_property9({}, name2, current))
8830
+ group
8838
8831
  });
8839
8832
  };
8840
8833
  if (pseudo && pseudoGroups != null && pseudoGroups.has(name2))
@@ -8853,18 +8846,18 @@ var require_createComponent_native = __commonJS({
8853
8846
  pseudoGroups ? Object.keys(_to_consumable_array2(pseudoGroups)).join("") : 0,
8854
8847
  mediaGroups ? Object.keys(_to_consumable_array2(mediaGroups)).join("") : 0
8855
8848
  ]);
8856
- var runtimePressStyle = !disabled && noClassNames && (pseudos == null ? void 0 : pseudos.pressStyle), runtimeFocusStyle = !disabled && noClassNames && (pseudos == null ? void 0 : pseudos.focusStyle), attachFocus = !!(runtimePressStyle || runtimeFocusStyle || onFocus || onBlur), attachPress = !!(groupName || runtimePressStyle || onPress || onPressOut || onPressIn || onMouseDown || onMouseUp || onLongPress || onClick), runtimeHoverStyle = !disabled && noClassNames && (pseudos == null ? void 0 : pseudos.hoverStyle), needsHoverState = runtimeHoverStyle || onHoverIn || onHoverOut, isHoverable = import_constants4.isWeb && !!(groupName || needsHoverState || onMouseEnter || onMouseLeave), shouldAttach = !!(attachFocus || attachPress || isHoverable || runtimePressStyle || runtimeHoverStyle || runtimeFocusStyle), events = shouldAttach && !isDisabled && !props.asChild ? _object_spread9(_object_spread_props8(_object_spread9({
8849
+ var runtimePressStyle = !disabled && noClassNames && (pseudos == null ? void 0 : pseudos.pressStyle), runtimeFocusStyle = !disabled && noClassNames && (pseudos == null ? void 0 : pseudos.focusStyle), attachFocus = !!(runtimePressStyle || runtimeFocusStyle || onFocus || onBlur), attachPress = !!(groupName || runtimePressStyle || onPress || onPressOut || onPressIn || onMouseDown || onMouseUp || onLongPress || onClick), runtimeHoverStyle = !disabled && noClassNames && (pseudos == null ? void 0 : pseudos.hoverStyle), needsHoverState = !!(groupName || runtimeHoverStyle || onHoverIn || onHoverOut), attachHover = import_constants4.isWeb && !!(groupName || needsHoverState || onMouseEnter || onMouseLeave), shouldAttach = !!(attachFocus || attachPress || attachHover || runtimePressStyle || runtimeHoverStyle || runtimeFocusStyle), needsPressState = !!(groupName || runtimeHoverStyle), events = shouldAttach && !isDisabled && !props.asChild ? _object_spread9(_object_spread_props8(_object_spread9({
8857
8850
  onPressOut: attachPress ? function(e) {
8858
8851
  unPress(), onPressOut == null || onPressOut(e), onMouseUp == null || onMouseUp(e);
8859
8852
  } : void 0
8860
- }, (isHoverable || attachPress) && {
8853
+ }, (attachHover || attachPress) && {
8861
8854
  onMouseEnter: function(e) {
8862
8855
  var next = {};
8863
- needsHoverState && (next.hover = !0), runtimePressStyle && state.pressIn && (next.press = !0), setStateShallow(next), onHoverIn == null || onHoverIn(e), onMouseEnter == null || onMouseEnter(e);
8856
+ needsHoverState && (next.hover = !0), needsPressState && state.pressIn && (next.press = !0), setStateShallow(next), onHoverIn == null || onHoverIn(e), onMouseEnter == null || onMouseEnter(e);
8864
8857
  },
8865
8858
  onMouseLeave: function(e) {
8866
8859
  var next = {};
8867
- mouseUps.add(unPress), needsHoverState && (next.hover = !1), runtimePressStyle && state.pressIn && (next.press = !1, next.pressIn = !1), setStateShallow(next), onHoverOut == null || onHoverOut(e), onMouseLeave == null || onMouseLeave(e);
8860
+ mouseUps.add(unPress), needsHoverState && (next.hover = !1), needsPressState && state.pressIn && (next.press = !1, next.pressIn = !1), setStateShallow(next), onHoverOut == null || onHoverOut(e), onMouseLeave == null || onMouseLeave(e);
8868
8861
  }
8869
8862
  }), {
8870
8863
  onPressIn: attachPress ? function(e) {