@tamagui/core 1.109.6 → 1.109.8

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 CHANGED
@@ -1274,8 +1274,8 @@ var require_concatClassName_native = __commonJS({
1274
1274
  });
1275
1275
  module2.exports = __toCommonJS2(concatClassName_exports);
1276
1276
  function concatClassName(_cn) {
1277
- for (var _loop = function(x2) {
1278
- var _loop22 = function(i2) {
1277
+ for (var args = arguments, usedPrefixes = [], final = "", len = args.length, propObjects = null, x = len; x >= 0; x--) {
1278
+ var _loop = function(i2) {
1279
1279
  var name = names[i2];
1280
1280
  if (!name || name === " ") return "continue";
1281
1281
  if (name[0] !== "_") return final = name + " " + final, "continue";
@@ -1294,11 +1294,15 @@ var require_concatClassName_native = __commonJS({
1294
1294
  return res;
1295
1295
  })) return "continue";
1296
1296
  final = name + " " + final;
1297
- }, cns = args[x2];
1298
- if (!cns) return "continue";
1299
- if (!Array.isArray(cns) && typeof cns != "string") return propObjects = propObjects || [], propObjects.push(cns), "continue";
1300
- for (var names = Array.isArray(cns) ? cns : cns.split(" "), numNames = names.length, i = numNames - 1; i >= 0; i--) _loop22(i);
1301
- }, args = arguments, usedPrefixes = [], final = "", len = args.length, propObjects = null, x = len; x >= 0; x--) _loop(x);
1297
+ }, cns = args[x];
1298
+ if (cns) {
1299
+ if (!Array.isArray(cns) && typeof cns != "string") {
1300
+ propObjects = propObjects || [], propObjects.push(cns);
1301
+ continue;
1302
+ }
1303
+ for (var names = Array.isArray(cns) ? cns : cns.split(" "), numNames = names.length, i = numNames - 1; i >= 0; i--) _loop(i);
1304
+ }
1305
+ }
1302
1306
  return final;
1303
1307
  }
1304
1308
  var pseudoInvert = {
@@ -7133,7 +7137,7 @@ var require_getVariantExtras_native = __commonJS({
7133
7137
  return (0, import_createVariable.getVariableValue)(styleState.fontFamily || styleState.curProps.fontFamily) || props.fontFamily || (0, import_createVariable.getVariableValue)(styleState.conf.defaultFont);
7134
7138
  },
7135
7139
  get font() {
7136
- return fonts[this.fontFamily] || (props.fontFamily ? void 0 : styleState.conf.defaultFont);
7140
+ return fonts[this.fontFamily] || (!props.fontFamily || props.fontFamily[0] === "$" ? fonts[styleState.conf.defaultFont] : void 0);
7137
7141
  },
7138
7142
  // TODO do this in splitstlye
7139
7143
  // we avoid passing in default props for media queries because that would confuse things like SizableText.size:
@@ -7972,34 +7976,69 @@ var require_getSplitStyles_native = __commonJS({
7972
7976
  return validStyleProps[key] || ((_staticConfig_accept = staticConfig.accept) === null || _staticConfig_accept === void 0 ? void 0 : _staticConfig_accept[key]);
7973
7977
  }
7974
7978
  var getSplitStyles = function(props, staticConfig, theme, themeName, componentState, styleProps, parentSplitStyles, context, elementType, debug, skipThemeTokenResolution) {
7975
- var _loop = function(keyOg2) {
7976
- var _loop22 = function(i3) {
7979
+ conf = conf || (0, import_config.getConfig)(), import_constants.isWeb && styleProps.isAnimated && conf.animations.isReactNative && !styleProps.noNormalize && (styleProps.noNormalize = "values");
7980
+ var shorthands = conf.shorthands, isHOC = staticConfig.isHOC, isText = staticConfig.isText, isInput = staticConfig.isInput, variants = staticConfig.variants, isReactNative = staticConfig.isReactNative, inlineProps = staticConfig.inlineProps, inlineWhenUnflattened = staticConfig.inlineWhenUnflattened, parentStaticConfig = staticConfig.parentStaticConfig, acceptsClassName = staticConfig.acceptsClassName, viewProps = {}, mediaState2 = styleProps.mediaState || import_useMedia.mediaState, usedKeys = {}, shouldDoClasses = acceptsClassName && import_constants.isWeb && !styleProps.noClassNames, rulesToInsert = void 0, classNames = {}, transforms = {}, pseudos = null, space = props.space, hasMedia = !1, dynamicThemeAccess, pseudoGroups, mediaGroups, className = props.className || "", mediaStylesSeen = 0, curPropsState, styleState = {
7981
+ // this should go away, right now we're doing really crazy cumulative props,
7982
+ // as variants are resolved basically we go back and merge the results onto
7983
+ // the curProps, so that each following variant function recieves the current
7984
+ // "styles" with variants expanded. powerful, but i think too fancy
7985
+ // there's some part of the ui kit that depends on it we'd have to find and fix
7986
+ get curProps() {
7987
+ return curPropsState || (curPropsState = {}), curPropsState;
7988
+ },
7989
+ classNames,
7990
+ conf,
7991
+ props,
7992
+ styleProps,
7993
+ componentState,
7994
+ staticConfig,
7995
+ style: null,
7996
+ theme,
7997
+ usedKeys,
7998
+ viewProps,
7999
+ context,
8000
+ debug,
8001
+ skipThemeTokenResolution
8002
+ };
8003
+ process.env.NODE_ENV === "development" && debug && debug !== "profile" && import_constants.isClient && (consoleGroupCollapsed("getSplitStyles (collapsed)"), (0, import_log.log)({
8004
+ props,
8005
+ staticConfig,
8006
+ shouldDoClasses,
8007
+ styleProps,
8008
+ rulesToInsert,
8009
+ componentState,
8010
+ styleState,
8011
+ theme: _object_spread2({}, theme)
8012
+ }), console.groupEnd());
8013
+ var asChild = props.asChild, accept = staticConfig.accept, noSkip = styleProps.noSkip, disableExpandShorthands = styleProps.disableExpandShorthands, noExpand = styleProps.noExpand, webContainerType = conf.settings.webContainerType, parentVariants = parentStaticConfig == null ? void 0 : parentStaticConfig.variants;
8014
+ for (var keyOg in props) {
8015
+ var _loop = function(i2) {
7977
8016
  var _parentStaticConfig_variants;
7978
8017
  if (expanded) {
7979
- var _expanded_i = _sliced_to_array(expanded[i3], 2), k = _expanded_i[0], v = _expanded_i[1];
7980
- key4 = k, val2 = v;
8018
+ var _expanded_i = _sliced_to_array(expanded[i2], 2), k = _expanded_i[0], v = _expanded_i[1];
8019
+ key = k, val = v;
7981
8020
  }
7982
- if (val2 == null || key4 in usedKeys) return "continue";
7983
- if (isPseudo = key4 in import_helpers.validPseudoKeys, isMedia = !isPseudo && !isValidStyleKeyInit && (0, import_useMedia.isMediaKey)(key4), isMediaOrPseudo1 = !!(isMedia || isPseudo), isVariant = variants && key4 in variants, inlineProps != null && inlineProps.has(key4) || process.env.IS_STATIC === "is_static" && inlineWhenUnflattened != null && inlineWhenUnflattened.has(key4)) {
8021
+ if (val == null || key in usedKeys) return "continue";
8022
+ 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) || process.env.IS_STATIC === "is_static" && inlineWhenUnflattened != null && inlineWhenUnflattened.has(key)) {
7984
8023
  var _props_key;
7985
- viewProps[key4] = (_props_key = props[key4]) !== null && _props_key !== void 0 ? _props_key : val2;
8024
+ viewProps[key] = (_props_key = props[key]) !== null && _props_key !== void 0 ? _props_key : val;
7986
8025
  }
7987
8026
  var shouldPassThrough2 = styleProps.noExpand && isPseudo || isHOC && (isMediaOrPseudo1 || (parentStaticConfig == null || (_parentStaticConfig_variants = parentStaticConfig.variants) === null || _parentStaticConfig_variants === void 0 ? void 0 : _parentStaticConfig_variants[keyInit]));
7988
- if (shouldPassThrough2) return passDownProp(viewProps, key4, val2, isMediaOrPseudo1), process.env.NODE_ENV === "development" && debug === "verbose" && (consoleGroupCollapsed(" - passing down prop ".concat(key4)), (0, import_log.log)({
7989
- val: val2,
7990
- after: _object_spread2({}, viewProps[key4])
8027
+ if (shouldPassThrough2) return passDownProp(viewProps, key, val, isMediaOrPseudo1), process.env.NODE_ENV === "development" && debug === "verbose" && (consoleGroupCollapsed(" - passing down prop ".concat(key)), (0, import_log.log)({
8028
+ val,
8029
+ after: _object_spread2({}, viewProps[key])
7991
8030
  }), console.groupEnd()), "continue";
7992
8031
  if (isPseudo) {
7993
- if (!val2) return "continue";
7994
- var pseudoStyleObject = getSubStyle(styleState, key4, val2, styleProps.noClassNames), descriptor = import_pseudoDescriptors.pseudoDescriptors[key4], isEnter = key4 === "enterStyle", isExit = key4 === "exitStyle";
8032
+ if (!val) return "continue";
8033
+ var pseudoStyleObject = getSubStyle(styleState, key, val, styleProps.noClassNames), descriptor = import_pseudoDescriptors.pseudoDescriptors[key], isEnter = key === "enterStyle", isExit = key === "exitStyle";
7995
8034
  if (!descriptor) return "continue";
7996
8035
  if (!shouldDoClasses || process.env.IS_STATIC === "is_static") {
7997
8036
  var _pseudos, _key;
7998
- if (pseudos || (pseudos = {}), (_pseudos = pseudos)[_key = key4] || (_pseudos[_key] = {}), process.env.IS_STATIC === "is_static") return Object.assign(pseudos[key4], pseudoStyleObject), "continue";
8037
+ if (pseudos || (pseudos = {}), (_pseudos = pseudos)[_key = key] || (_pseudos[_key] = {}), process.env.IS_STATIC === "is_static") return Object.assign(pseudos[key], pseudoStyleObject), "continue";
7999
8038
  }
8000
8039
  if (shouldDoClasses && !isExit) {
8001
8040
  var pseudoStyles = (0, import_getStylesAtomic.getStyleAtomic)(pseudoStyleObject, descriptor);
8002
- process.env.NODE_ENV === "development" && debug === "verbose" && (consoleGroupCollapsed("pseudo (classes)", key4), (0, import_log.log)({
8041
+ process.env.NODE_ENV === "development" && debug === "verbose" && (consoleGroupCollapsed("pseudo (classes)", key), (0, import_log.log)({
8003
8042
  pseudoStyleObject,
8004
8043
  pseudoStyles
8005
8044
  }), console.groupEnd());
@@ -8021,7 +8060,7 @@ var require_getSplitStyles_native = __commonJS({
8021
8060
  }
8022
8061
  if (!shouldDoClasses || isExit || isEnter) {
8023
8062
  var descriptorKey = descriptor.stateKey || descriptor.name, isDisabled = componentState[descriptorKey] === !1;
8024
- isExit && (isDisabled = !styleProps.isExiting), isEnter && componentState.unmounted === !1 && (isDisabled = !0), process.env.NODE_ENV === "development" && debug === "verbose" && (consoleGroupCollapsed("pseudo", key4, {
8063
+ isExit && (isDisabled = !styleProps.isExiting), isEnter && componentState.unmounted === !1 && (isDisabled = !0), process.env.NODE_ENV === "development" && debug === "verbose" && (consoleGroupCollapsed("pseudo", key, {
8025
8064
  isDisabled
8026
8065
  }), (0, import_log.log)({
8027
8066
  pseudoStyleObject,
@@ -8037,7 +8076,7 @@ var require_getSplitStyles_native = __commonJS({
8037
8076
  var curImportance = usedKeys[pkey] || 0, shouldMerge = importance >= curImportance;
8038
8077
  if (shouldMerge) {
8039
8078
  var _pseudos1, _key1;
8040
- pseudos || (pseudos = {}), (_pseudos1 = pseudos)[_key1 = key4] || (_pseudos1[_key1] = {}), pseudos[key4][pkey] = val12, mergeStyle(styleState, pkey, val12);
8079
+ pseudos || (pseudos = {}), (_pseudos1 = pseudos)[_key1 = key] || (_pseudos1[_key1] = {}), pseudos[key][pkey] = val12, mergeStyle(styleState, pkey, val12);
8041
8080
  }
8042
8081
  process.env.NODE_ENV === "development" && debug === "verbose" && (0, import_log.log)(" subKey", pkey, shouldMerge, {
8043
8082
  importance,
@@ -8047,7 +8086,7 @@ var require_getSplitStyles_native = __commonJS({
8047
8086
  });
8048
8087
  }
8049
8088
  }
8050
- if (!isDisabled) for (var key12 in val2) {
8089
+ if (!isDisabled) for (var key12 in val) {
8051
8090
  var k1 = shorthands[key12] || key12;
8052
8091
  usedKeys[k1] = Math.max(importance, usedKeys[k1] || 0);
8053
8092
  }
@@ -8055,22 +8094,22 @@ var require_getSplitStyles_native = __commonJS({
8055
8094
  return "continue";
8056
8095
  }
8057
8096
  if (isMedia) {
8058
- if (!val2) return "continue";
8059
- var hasSpace = val2.space, mediaKeyShort = key4.slice(1);
8060
- if (hasMedia || (hasMedia = !0), (hasSpace || !shouldDoClasses || styleProps.willBeAnimated) && (((typeof hasMedia > "u" ? "undefined" : _type_of(hasMedia)) > "u" ? "undefined" : _type_of1(hasMedia)) !== "object" && (hasMedia = {}), hasMedia[mediaKeyShort] = !0), isMedia === "platform" && !(0, import_isActivePlatform.isActivePlatform)(key4)) return "continue";
8061
- if (process.env.NODE_ENV === "development" && debug === "verbose" && (0, import_log.log)(" \u{1F4FA} ".concat(key4), {
8062
- key: key4,
8063
- val: val2,
8097
+ if (!val) return "continue";
8098
+ var hasSpace = val.space, mediaKeyShort = key.slice(1);
8099
+ if (hasMedia || (hasMedia = !0), (hasSpace || !shouldDoClasses || styleProps.willBeAnimated) && (((typeof hasMedia > "u" ? "undefined" : _type_of(hasMedia)) > "u" ? "undefined" : _type_of1(hasMedia)) !== "object" && (hasMedia = {}), hasMedia[mediaKeyShort] = !0), isMedia === "platform" && !(0, import_isActivePlatform.isActivePlatform)(key)) return "continue";
8100
+ if (process.env.NODE_ENV === "development" && debug === "verbose" && (0, import_log.log)(" \u{1F4FA} ".concat(key), {
8101
+ key,
8102
+ val,
8064
8103
  props,
8065
8104
  shouldDoClasses,
8066
8105
  acceptsClassName,
8067
8106
  componentState,
8068
8107
  mediaState: mediaState2
8069
8108
  }), shouldDoClasses) {
8070
- var mediaStyle = getSubStyle(styleState, key4, val2, !1);
8109
+ var mediaStyle = getSubStyle(styleState, key, val, !1);
8071
8110
  if (hasSpace && (delete mediaStyle.space, mediaState2[mediaKeyShort])) {
8072
8111
  var importance1 = (0, import_useMedia.getMediaImportanceIfMoreImportant)(mediaKeyShort, "space", usedKeys, !0);
8073
- importance1 && (space = val2.space, usedKeys.space = importance1, process.env.NODE_ENV === "development" && debug === "verbose" && (0, import_log.log)("Found more important space for current media ".concat(mediaKeyShort, ": ").concat(val2, " (importance: ").concat(importance1, ")")));
8112
+ importance1 && (space = val.space, usedKeys.space = importance1, process.env.NODE_ENV === "development" && debug === "verbose" && (0, import_log.log)("Found more important space for current media ".concat(mediaKeyShort, ": ").concat(val, " (importance: ").concat(importance1, ")")));
8074
8113
  }
8075
8114
  var mediaStyles = (0, import_getStylesAtomic.getStylesAtomic)(mediaStyle), priority = mediaStylesSeen;
8076
8115
  mediaStylesSeen += 1;
@@ -8105,7 +8144,7 @@ var require_getSplitStyles_native = __commonJS({
8105
8144
  if (!mediaState2[mediaKeyShort]) return process.env.NODE_ENV === "development" && debug === "verbose" && (0, import_log.log)(" \u{1F4FA} \u274C DISABLED ".concat(mediaKeyShort)), "continue";
8106
8145
  process.env.NODE_ENV === "development" && debug === "verbose" && (0, import_log.log)(" \u{1F4FA} \u2705 ENABLED ".concat(mediaKeyShort));
8107
8146
  }
8108
- var mediaStyle1 = getSubStyle(styleState, key4, val2, !0), importanceBump = 0;
8147
+ var mediaStyle1 = getSubStyle(styleState, key, val, !0), importanceBump = 0;
8109
8148
  if (isThemeMedia) {
8110
8149
  dynamicThemeAccess = !0;
8111
8150
  var mediaThemeName = mediaKeyShort.slice(6);
@@ -8147,148 +8186,124 @@ var require_getSplitStyles_native = __commonJS({
8147
8186
  }
8148
8187
  return "continue";
8149
8188
  }
8150
- if (key4 === "pointerEvents") return viewProps[key4] = val2, "continue";
8189
+ if (key === "pointerEvents") return viewProps[key] = val, "continue";
8151
8190
  if (
8152
8191
  // is HOC we can just pass through the styles as props
8153
8192
  // this fixes issues where style prop got merged with wrong priority
8154
- !isHOC && (isValidStyleKey(key4, staticConfig) || import_constants.isAndroid && key4 === "elevation")
8155
- ) return mergeStyle(styleState, key4, val2), "continue";
8156
- isVariant || (viewProps[key4] = val2);
8157
- }, keyInit = keyOg2, valInit = props[keyInit];
8193
+ !isHOC && (isValidStyleKey(key, staticConfig) || import_constants.isAndroid && key === "elevation")
8194
+ ) return mergeStyle(styleState, key, val), "continue";
8195
+ isVariant || (viewProps[key] = val);
8196
+ }, keyInit = keyOg, valInit = props[keyInit];
8158
8197
  if (accept) {
8159
8198
  var accepted = accept[keyInit];
8160
- if ((accepted === "style" || accepted === "textStyle") && valInit && ((typeof valInit > "u" ? "undefined" : _type_of(valInit)) > "u" ? "undefined" : _type_of1(valInit)) === "object") return viewProps[keyInit] = getSubStyle(styleState, keyInit, valInit, styleProps.noClassNames), "continue";
8161
- }
8162
- if (process.env.NODE_ENV === "development" && debug === "verbose" && console.groupEnd(), disableExpandShorthands || keyInit in shorthands && (keyInit = shorthands[keyInit]), keyInit === "className" || keyInit in usedKeys) return "continue";
8163
- if (keyInit in import_skipProps.skipProps && !noSkip && !isHOC) {
8164
- if (keyInit === "group" && !1) var identifier2, containerType, containerCSS;
8165
- return "continue";
8199
+ if ((accepted === "style" || accepted === "textStyle") && valInit && ((typeof valInit > "u" ? "undefined" : _type_of(valInit)) > "u" ? "undefined" : _type_of1(valInit)) === "object") {
8200
+ viewProps[keyInit] = getSubStyle(styleState, keyInit, valInit, styleProps.noClassNames);
8201
+ continue;
8202
+ }
8166
8203
  }
8167
- var valInitType = (typeof valInit > "u" ? "undefined" : _type_of(valInit)) > "u" ? "undefined" : _type_of1(valInit), isValidStyleKeyInit = isValidStyleKey(keyInit, staticConfig);
8168
- if (0) {
8169
- var isValidClassName, isMediaOrPseudo;
8170
- if ((isValidClassName || isMediaOrPseudo) && !shouldDoClasses) var _styleState3;
8171
- }
8172
- if (!isValidStyleKeyInit) {
8173
- if (!import_constants.isAndroid && keyInit === "elevationAndroid") return "continue";
8174
- if (keyInit === "userSelect") keyInit = "selectable", valInit = valInit !== "none";
8175
- else if (keyInit.startsWith("data-")) return "continue";
8176
- }
8177
- if (keyInit === "dataSet") {
8178
- for (var keyInit1 in valInit) viewProps["data-".concat(hyphenate(keyInit1))] = valInit[keyInit1];
8179
- return "continue";
8180
- }
8181
- if (0) var didUseKeyInit;
8182
- var isShorthand = keyInit in shorthands, isVariant = !isValidStyleKeyInit && variants && keyInit in variants, isStyleLikeKey = isShorthand || isValidStyleKeyInit || isVariant, isPseudo = keyInit in import_helpers.validPseudoKeys, isMedia = !isStyleLikeKey && !isPseudo && (0, import_useMedia.isMediaKey)(keyInit), isMediaOrPseudo1 = !!(isMedia || isPseudo);
8183
- if (isMediaOrPseudo1 && keyInit.startsWith("$group-")) {
8184
- var name2 = keyInit.split("-")[1];
8185
- context != null && context.groups.subscribe && !(context != null && context.groups.state[name2]) && (keyInit = keyInit.replace("$group-", "$group-true-"));
8186
- }
8187
- var isStyleProp = isValidStyleKeyInit || isMediaOrPseudo1 || isVariant && !noExpand || isShorthand;
8188
- if (isStyleProp && (asChild === "except-style" || asChild === "except-style-web")) return "continue";
8189
- var shouldPassProp = !isStyleProp || // is in parent variants
8190
- isHOC && parentVariants && keyInit in parentVariants || (inlineProps == null ? void 0 : inlineProps.has(keyInit)), parentVariant = parentVariants == null ? void 0 : parentVariants[keyInit], isHOCShouldPassThrough = !!(isHOC && (isShorthand || isValidStyleKeyInit || isMediaOrPseudo1 || parentVariant || keyInit in import_skipProps.skipProps)), shouldPassThrough = shouldPassProp || isHOCShouldPassThrough;
8191
- if (process.env.NODE_ENV === "development" && debug === "verbose" && (console.groupEnd(), console.groupEnd(), consoleGroupCollapsed(" \u{1F511} ".concat(keyOg2).concat(keyInit !== keyOg2 ? " (shorthand for ".concat(keyInit, ")") : "", " ").concat(shouldPassThrough ? "(pass)" : "")), (0, import_log.log)({
8192
- isVariant,
8193
- valInit,
8194
- shouldPassProp
8195
- }), import_constants.isClient && (0, import_log.log)({
8196
- variants,
8197
- variant: variants == null ? void 0 : variants[keyInit],
8198
- isVariant,
8199
- isHOCShouldPassThrough,
8200
- curProps: _object_spread2({}, styleState.curProps),
8201
- parentStaticConfig
8202
- })), shouldPassThrough && (passDownProp(viewProps, keyInit, valInit, isMediaOrPseudo1), !isVariant) || !noSkip && keyInit in import_skipProps.skipProps) return process.env.NODE_ENV === "development" && debug === "verbose" && console.groupEnd(), "continue";
8203
- (isText || isInput) && valInit && (keyInit === "fontFamily" || keyInit === shorthands.fontFamily) && valInit in conf.fontsParsed && (styleState.fontFamily = valInit);
8204
- var avoidPropMap = isMediaOrPseudo1 || !isVariant && !isValidStyleKeyInit, expanded = avoidPropMap ? null : (0, import_propMapper.propMapper)(keyInit, valInit, styleState);
8205
- if (!avoidPropMap) {
8206
- if (!expanded) return "continue";
8207
- var next = (0, import_propMapper.getPropMappedFontFamily)(expanded);
8208
- next && (styleState.fontFamily = next);
8209
- }
8210
- if (process.env.NODE_ENV === "development" && debug === "verbose") {
8211
- consoleGroupCollapsed(" \u{1F4A0} expanded", keyInit, valInit);
8212
- try {
8213
- !import_constants.isServer && import_isDevTools.isDevTools && ((0, import_log.log)({
8214
- expanded,
8215
- styleProps,
8216
- componentState,
8204
+ if (process.env.NODE_ENV === "development" && debug === "verbose" && console.groupEnd(), disableExpandShorthands || keyInit in shorthands && (keyInit = shorthands[keyInit]), keyInit !== "className" && !(keyInit in usedKeys)) {
8205
+ if (keyInit in import_skipProps.skipProps && !noSkip && !isHOC) {
8206
+ if (keyInit === "group" && !1) var identifier, containerType, containerCSS;
8207
+ continue;
8208
+ }
8209
+ var valInitType = (typeof valInit > "u" ? "undefined" : _type_of(valInit)) > "u" ? "undefined" : _type_of1(valInit), isValidStyleKeyInit = isValidStyleKey(keyInit, staticConfig);
8210
+ if (0) {
8211
+ var isValidClassName, isMediaOrPseudo;
8212
+ if ((isValidClassName || isMediaOrPseudo) && !shouldDoClasses) var _styleState;
8213
+ }
8214
+ if (!isValidStyleKeyInit) {
8215
+ if (!import_constants.isAndroid && keyInit === "elevationAndroid") continue;
8216
+ if (keyInit === "userSelect") keyInit = "selectable", valInit = valInit !== "none";
8217
+ else if (keyInit.startsWith("data-")) continue;
8218
+ }
8219
+ if (keyInit === "dataSet") {
8220
+ for (var keyInit1 in valInit) viewProps["data-".concat(hyphenate(keyInit1))] = valInit[keyInit1];
8221
+ continue;
8222
+ }
8223
+ if (0) var didUseKeyInit;
8224
+ var isShorthand = keyInit in shorthands, isVariant = !isValidStyleKeyInit && variants && keyInit in variants, isStyleLikeKey = isShorthand || isValidStyleKeyInit || isVariant, isPseudo = keyInit in import_helpers.validPseudoKeys, isMedia = !isStyleLikeKey && !isPseudo && (0, import_useMedia.isMediaKey)(keyInit), isMediaOrPseudo1 = !!(isMedia || isPseudo);
8225
+ if (isMediaOrPseudo1 && keyInit.startsWith("$group-")) {
8226
+ var name = keyInit.split("-")[1];
8227
+ context != null && context.groups.subscribe && !(context != null && context.groups.state[name]) && (keyInit = keyInit.replace("$group-", "$group-true-"));
8228
+ }
8229
+ var isStyleProp = isValidStyleKeyInit || isMediaOrPseudo1 || isVariant && !noExpand || isShorthand;
8230
+ if (!(isStyleProp && (asChild === "except-style" || asChild === "except-style-web"))) {
8231
+ var shouldPassProp = !isStyleProp || // is in parent variants
8232
+ isHOC && parentVariants && keyInit in parentVariants || (inlineProps == null ? void 0 : inlineProps.has(keyInit)), parentVariant = parentVariants == null ? void 0 : parentVariants[keyInit], isHOCShouldPassThrough = !!(isHOC && (isShorthand || isValidStyleKeyInit || isMediaOrPseudo1 || parentVariant || keyInit in import_skipProps.skipProps)), shouldPassThrough = shouldPassProp || isHOCShouldPassThrough;
8233
+ if (process.env.NODE_ENV === "development" && debug === "verbose" && (console.groupEnd(), console.groupEnd(), consoleGroupCollapsed(" \u{1F511} ".concat(keyOg).concat(keyInit !== keyOg ? " (shorthand for ".concat(keyInit, ")") : "", " ").concat(shouldPassThrough ? "(pass)" : "")), (0, import_log.log)({
8217
8234
  isVariant,
8235
+ valInit,
8236
+ shouldPassProp
8237
+ }), import_constants.isClient && (0, import_log.log)({
8238
+ variants,
8218
8239
  variant: variants == null ? void 0 : variants[keyInit],
8219
- shouldPassProp,
8240
+ isVariant,
8220
8241
  isHOCShouldPassThrough,
8221
- usedKeys: _object_spread2({}, usedKeys),
8222
- curProps: _object_spread2({}, styleState.curProps)
8223
- }), (0, import_log.log)("expanded", expanded, `
8242
+ curProps: _object_spread2({}, styleState.curProps),
8243
+ parentStaticConfig
8244
+ })), shouldPassThrough && (passDownProp(viewProps, keyInit, valInit, isMediaOrPseudo1), !isVariant)) {
8245
+ process.env.NODE_ENV === "development" && debug === "verbose" && console.groupEnd();
8246
+ continue;
8247
+ }
8248
+ if (!noSkip && keyInit in import_skipProps.skipProps) {
8249
+ process.env.NODE_ENV === "development" && debug === "verbose" && console.groupEnd();
8250
+ continue;
8251
+ }
8252
+ (isText || isInput) && valInit && (keyInit === "fontFamily" || keyInit === shorthands.fontFamily) && valInit in conf.fontsParsed && (styleState.fontFamily = valInit);
8253
+ var avoidPropMap = isMediaOrPseudo1 || !isVariant && !isValidStyleKeyInit, expanded = avoidPropMap ? null : (0, import_propMapper.propMapper)(keyInit, valInit, styleState);
8254
+ if (!avoidPropMap) {
8255
+ if (!expanded) continue;
8256
+ var next = (0, import_propMapper.getPropMappedFontFamily)(expanded);
8257
+ next && (styleState.fontFamily = next);
8258
+ }
8259
+ if (process.env.NODE_ENV === "development" && debug === "verbose") {
8260
+ consoleGroupCollapsed(" \u{1F4A0} expanded", keyInit, valInit);
8261
+ try {
8262
+ !import_constants.isServer && import_isDevTools.isDevTools && ((0, import_log.log)({
8263
+ expanded,
8264
+ styleProps,
8265
+ componentState,
8266
+ isVariant,
8267
+ variant: variants == null ? void 0 : variants[keyInit],
8268
+ shouldPassProp,
8269
+ isHOCShouldPassThrough,
8270
+ usedKeys: _object_spread2({}, usedKeys),
8271
+ curProps: _object_spread2({}, styleState.curProps)
8272
+ }), (0, import_log.log)("expanded", expanded, `
8224
8273
  usedKeys`, _object_spread2({}, usedKeys), `
8225
8274
  current`, _object_spread2({}, styleState.style)));
8226
- } catch {
8227
- }
8228
- console.groupEnd();
8229
- }
8230
- for (var key4 = keyInit, val2 = valInit, max = expanded ? expanded.length : 1, i2 = 0; i2 < max; i2++) _loop22(i2);
8231
- if (process.env.NODE_ENV === "development" && debug === "verbose") {
8232
- try {
8233
- (0, import_log.log)(" \u2714\uFE0F expand complete", keyInit), (0, import_log.log)("style", _object_spread2({}, styleState.style)), (0, import_log.log)("transforms", _object_spread2({}, transforms)), (0, import_log.log)("viewProps", _object_spread2({}, viewProps));
8234
- } catch {
8275
+ } catch {
8276
+ }
8277
+ console.groupEnd();
8278
+ }
8279
+ for (var key = keyInit, val = valInit, max = expanded ? expanded.length : 1, i = 0; i < max; i++) _loop(i);
8280
+ if (process.env.NODE_ENV === "development" && debug === "verbose") {
8281
+ try {
8282
+ (0, import_log.log)(" \u2714\uFE0F expand complete", keyInit), (0, import_log.log)("style", _object_spread2({}, styleState.style)), (0, import_log.log)("transforms", _object_spread2({}, transforms)), (0, import_log.log)("viewProps", _object_spread2({}, viewProps));
8283
+ } catch {
8284
+ }
8285
+ console.groupEnd();
8286
+ }
8235
8287
  }
8236
- console.groupEnd();
8237
8288
  }
8238
- };
8239
- conf = conf || (0, import_config.getConfig)(), import_constants.isWeb && styleProps.isAnimated && conf.animations.isReactNative && !styleProps.noNormalize && (styleProps.noNormalize = "values");
8240
- var shorthands = conf.shorthands, isHOC = staticConfig.isHOC, isText = staticConfig.isText, isInput = staticConfig.isInput, variants = staticConfig.variants, isReactNative = staticConfig.isReactNative, inlineProps = staticConfig.inlineProps, inlineWhenUnflattened = staticConfig.inlineWhenUnflattened, parentStaticConfig = staticConfig.parentStaticConfig, acceptsClassName = staticConfig.acceptsClassName, viewProps = {}, mediaState2 = styleProps.mediaState || import_useMedia.mediaState, usedKeys = {}, shouldDoClasses = acceptsClassName && import_constants.isWeb && !styleProps.noClassNames, rulesToInsert = void 0, classNames = {}, transforms = {}, pseudos = null, space = props.space, hasMedia = !1, dynamicThemeAccess, pseudoGroups, mediaGroups, className = props.className || "", mediaStylesSeen = 0, curPropsState, styleState = {
8241
- // this should go away, right now we're doing really crazy cumulative props,
8242
- // as variants are resolved basically we go back and merge the results onto
8243
- // the curProps, so that each following variant function recieves the current
8244
- // "styles" with variants expanded. powerful, but i think too fancy
8245
- // there's some part of the ui kit that depends on it we'd have to find and fix
8246
- get curProps() {
8247
- return curPropsState || (curPropsState = {}), curPropsState;
8248
- },
8249
- classNames,
8250
- conf,
8251
- props,
8252
- styleProps,
8253
- componentState,
8254
- staticConfig,
8255
- style: null,
8256
- theme,
8257
- usedKeys,
8258
- viewProps,
8259
- context,
8260
- debug,
8261
- skipThemeTokenResolution
8262
- };
8263
- process.env.NODE_ENV === "development" && debug && debug !== "profile" && import_constants.isClient && (consoleGroupCollapsed("getSplitStyles (collapsed)"), (0, import_log.log)({
8264
- props,
8265
- staticConfig,
8266
- shouldDoClasses,
8267
- styleProps,
8268
- rulesToInsert,
8269
- componentState,
8270
- styleState,
8271
- theme: _object_spread2({}, theme)
8272
- }), console.groupEnd());
8273
- var asChild = props.asChild, accept = staticConfig.accept, noSkip = styleProps.noSkip, disableExpandShorthands = styleProps.disableExpandShorthands, noExpand = styleProps.noExpand, webContainerType = conf.settings.webContainerType, parentVariants = parentStaticConfig == null ? void 0 : parentStaticConfig.variants;
8274
- for (var keyOg in props) _loop(keyOg);
8289
+ }
8275
8290
  var avoidNormalize = styleProps.noNormalize === !1;
8276
8291
  if (!avoidNormalize) {
8277
8292
  if (styleState.style && ((0, import_expandStyles.fixStyles)(styleState.style), import_constants.isWeb && !isReactNative && (0, import_getStylesAtomic.styleToCSS)(styleState.style)), styleState.flatTransforms) {
8278
- var _styleState;
8279
- (_styleState = styleState).style || (_styleState.style = {}), Object.entries(styleState.flatTransforms).sort(function(param, param1) {
8293
+ var _styleState1;
8294
+ (_styleState1 = styleState).style || (_styleState1.style = {}), Object.entries(styleState.flatTransforms).sort(function(param, param1) {
8280
8295
  var _param = _sliced_to_array(param, 1), a = _param[0], _param1 = _sliced_to_array(param1, 1), b = _param1[0];
8281
8296
  return a.localeCompare(b);
8282
8297
  }).forEach(function(param) {
8283
- var _param = _sliced_to_array(param, 2), key4 = _param[0], val2 = _param[1];
8284
- mergeTransform(styleState.style, key4, val2, !0);
8298
+ var _param = _sliced_to_array(param, 2), key5 = _param[0], val3 = _param[1];
8299
+ mergeTransform(styleState.style, key5, val3, !0);
8285
8300
  });
8286
8301
  }
8287
8302
  if (parentSplitStyles) {
8288
- if (0) for (var key in parentSplitStyles.classNames) var val;
8289
- if (!shouldDoClasses) for (var key1 in parentSplitStyles.style) {
8290
- var _styleState1;
8291
- key1 in classNames || styleState.style && key1 in styleState.style || ((_styleState1 = styleState).style || (_styleState1.style = {}), styleState.style[key1] = parentSplitStyles.style[key1]);
8303
+ if (0) for (var key1 in parentSplitStyles.classNames) var val1;
8304
+ if (!shouldDoClasses) for (var key2 in parentSplitStyles.style) {
8305
+ var _styleState2;
8306
+ key2 in classNames || styleState.style && key2 in styleState.style || ((_styleState2 = styleState).style || (_styleState2.style = {}), styleState.style[key2] = parentSplitStyles.style[key2]);
8292
8307
  }
8293
8308
  }
8294
8309
  }
@@ -8299,7 +8314,7 @@ current`, _object_spread2({}, styleState.style)));
8299
8314
  if (!styleState.style.$$css) {
8300
8315
  var atomic, _iteratorNormalCompletion, _didIteratorError, _iteratorError;
8301
8316
  try {
8302
- for (var _iterator, _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) var atomicStyle, _props_animateOnly, _atomicStyle, key2, value, identifier, isAnimatedAndAnimateOnly, nonAnimatedAnimateOnly;
8317
+ for (var _iterator, _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) var atomicStyle, _props_animateOnly, _atomicStyle, key3, value, identifier1, isAnimatedAndAnimateOnly, nonAnimatedAnimateOnly;
8303
8318
  } catch (err) {
8304
8319
  } finally {
8305
8320
  try {
@@ -8308,8 +8323,8 @@ current`, _object_spread2({}, styleState.style)));
8308
8323
  }
8309
8324
  }
8310
8325
  if (transforms) for (var namespace in transforms) {
8311
- var _transforms_namespace, hash, val1, identifier1;
8312
- if (import_constants.isClient && !insertedTransforms[identifier1]) var rule;
8326
+ var _transforms_namespace, hash, val2, identifier2;
8327
+ if (import_constants.isClient && !insertedTransforms[identifier2]) var rule;
8313
8328
  }
8314
8329
  }
8315
8330
  if (isReactNative) {
@@ -8318,12 +8333,12 @@ current`, _object_spread2({}, styleState.style)));
8318
8333
  }
8319
8334
  var styleProp = props.style;
8320
8335
  if (styleProp) if (isHOC) viewProps.style = normalizeStyle(styleProp);
8321
- else for (var isArray = Array.isArray(styleProp), len = isArray ? styleProp.length : 1, i = 0; i < len; i++) {
8322
- var style = isArray ? styleProp[i] : styleProp;
8336
+ else for (var isArray = Array.isArray(styleProp), len = isArray ? styleProp.length : 1, i1 = 0; i1 < len; i1++) {
8337
+ var style = isArray ? styleProp[i1] : styleProp;
8323
8338
  if (style) if (style.$$css) Object.assign(styleState.classNames, style);
8324
8339
  else {
8325
- var _styleState2;
8326
- (_styleState2 = styleState).style || (_styleState2.style = {}), Object.assign(styleState.style, normalizeStyle(style));
8340
+ var _styleState3;
8341
+ (_styleState3 = styleState).style || (_styleState3.style = {}), Object.assign(styleState.style, normalizeStyle(style));
8327
8342
  }
8328
8343
  }
8329
8344
  var style1 = styleState.style;
@@ -8355,7 +8370,7 @@ current`, _object_spread2({}, styleState.style)));
8355
8370
  if (!styleProps.noMergeStyle && !(styleProps.isAnimated && !conf.animations.supportsCSSVars && isReactNative) && isReactNative) {
8356
8371
  var cnStyles, _iteratorNormalCompletion1, _didIteratorError1, _iteratorError1;
8357
8372
  try {
8358
- for (var _iterator1, _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = !0) var name;
8373
+ for (var _iterator1, _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = !0) var name1;
8359
8374
  } catch (err) {
8360
8375
  } finally {
8361
8376
  try {
@@ -8376,7 +8391,7 @@ current`, _object_spread2({}, styleState.style)));
8376
8391
  rulesToInsert,
8377
8392
  parentSplitStyles
8378
8393
  });
8379
- for (var key3 in logs) (0, import_log.log)(key3, logs[key3]);
8394
+ for (var key4 in logs) (0, import_log.log)(key4, logs[key4]);
8380
8395
  } catch {
8381
8396
  }
8382
8397
  console.groupEnd();