@tamagui/web 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.
Files changed (39) hide show
  1. package/dist/cjs/helpers/getSplitStyles.native.js +177 -169
  2. package/dist/cjs/helpers/getSplitStyles.native.js.map +2 -2
  3. package/dist/cjs/helpers/getVariantExtras.js +1 -1
  4. package/dist/cjs/helpers/getVariantExtras.js.map +1 -1
  5. package/dist/cjs/helpers/getVariantExtras.native.js +1 -1
  6. package/dist/cjs/helpers/getVariantExtras.native.js.map +1 -1
  7. package/dist/esm/helpers/getSplitStyles.native.js +177 -169
  8. package/dist/esm/helpers/getSplitStyles.native.js.map +2 -2
  9. package/dist/esm/helpers/getVariantExtras.js +1 -1
  10. package/dist/esm/helpers/getVariantExtras.js.map +1 -1
  11. package/dist/esm/helpers/getVariantExtras.mjs +1 -1
  12. package/dist/esm/helpers/getVariantExtras.mjs.map +1 -1
  13. package/dist/esm/helpers/getVariantExtras.native.js +1 -1
  14. package/dist/esm/helpers/getVariantExtras.native.js.map +1 -1
  15. package/package.json +11 -11
  16. package/src/helpers/getVariantExtras.tsx +3 -1
  17. package/types/helpers/getVariantExtras.d.ts.map +1 -1
  18. package/dist/cjs/html.js +0 -219
  19. package/dist/cjs/html.js.map +0 -6
  20. package/dist/cjs/html.native.js +0 -437
  21. package/dist/cjs/html.native.js.map +0 -6
  22. package/dist/cjs/views/html.js +0 -1
  23. package/dist/cjs/views/html.js.map +0 -6
  24. package/dist/cjs/views/html.native.js +0 -2
  25. package/dist/cjs/views/html.native.js.map +0 -6
  26. package/dist/esm/html.js +0 -196
  27. package/dist/esm/html.js.map +0 -6
  28. package/dist/esm/html.mjs +0 -193
  29. package/dist/esm/html.mjs.map +0 -1
  30. package/dist/esm/html.native.js +0 -233
  31. package/dist/esm/html.native.js.map +0 -6
  32. package/dist/esm/views/html.js +0 -1
  33. package/dist/esm/views/html.js.map +0 -6
  34. package/dist/esm/views/html.mjs +0 -2
  35. package/dist/esm/views/html.mjs.map +0 -1
  36. package/dist/esm/views/html.native.js +0 -1
  37. package/dist/esm/views/html.native.js.map +0 -6
  38. package/types/html.d.ts.map +0 -1
  39. package/types/views/html.d.ts +0 -1
@@ -103,37 +103,72 @@ function isValidStyleKey(key, staticConfig) {
103
103
  return validStyleProps[key] || ((_staticConfig_accept = staticConfig.accept) === null || _staticConfig_accept === void 0 ? void 0 : _staticConfig_accept[key]);
104
104
  }
105
105
  var getSplitStyles = function(props, staticConfig, theme, themeName, componentState, styleProps, parentSplitStyles, context, elementType, debug, skipThemeTokenResolution) {
106
- var _loop = function(keyOg2) {
107
- var _loop2 = function(i3) {
106
+ conf = conf || getConfig(), isWeb && styleProps.isAnimated && conf.animations.isReactNative && !styleProps.noNormalize && (styleProps.noNormalize = "values");
107
+ 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 = {}, mediaState = styleProps.mediaState || globalMediaState, usedKeys = {}, shouldDoClasses = acceptsClassName && 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 = {
108
+ // this should go away, right now we're doing really crazy cumulative props,
109
+ // as variants are resolved basically we go back and merge the results onto
110
+ // the curProps, so that each following variant function recieves the current
111
+ // "styles" with variants expanded. powerful, but i think too fancy
112
+ // there's some part of the ui kit that depends on it we'd have to find and fix
113
+ get curProps() {
114
+ return curPropsState || (curPropsState = {}), curPropsState;
115
+ },
116
+ classNames,
117
+ conf,
118
+ props,
119
+ styleProps,
120
+ componentState,
121
+ staticConfig,
122
+ style: null,
123
+ theme,
124
+ usedKeys,
125
+ viewProps,
126
+ context,
127
+ debug,
128
+ skipThemeTokenResolution
129
+ };
130
+ process.env.NODE_ENV === "development" && debug && debug !== "profile" && isClient && (consoleGroupCollapsed("getSplitStyles (collapsed)"), log({
131
+ props,
132
+ staticConfig,
133
+ shouldDoClasses,
134
+ styleProps,
135
+ rulesToInsert,
136
+ componentState,
137
+ styleState,
138
+ theme: _object_spread({}, theme)
139
+ }), console.groupEnd());
140
+ 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;
141
+ for (var keyOg in props) {
142
+ var _loop = function(i2) {
108
143
  var _parentStaticConfig_variants;
109
144
  if (expanded) {
110
- var _expanded_i = _sliced_to_array(expanded[i3], 2), k = _expanded_i[0], v = _expanded_i[1];
111
- key4 = k, val2 = v;
145
+ var _expanded_i = _sliced_to_array(expanded[i2], 2), k = _expanded_i[0], v = _expanded_i[1];
146
+ key = k, val = v;
112
147
  }
113
- if (val2 == null || key4 in usedKeys) return "continue";
114
- if (isPseudo = key4 in validPseudoKeys, isMedia = !isPseudo && !isValidStyleKeyInit && 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))) {
148
+ if (val == null || key in usedKeys) return "continue";
149
+ if (isPseudo = key in validPseudoKeys, isMedia = !isPseudo && !isValidStyleKeyInit && 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))) {
115
150
  var _props_key;
116
- viewProps[key4] = (_props_key = props[key4]) !== null && _props_key !== void 0 ? _props_key : val2;
151
+ viewProps[key] = (_props_key = props[key]) !== null && _props_key !== void 0 ? _props_key : val;
117
152
  }
118
153
  var shouldPassThrough2 = styleProps.noExpand && isPseudo || isHOC && (isMediaOrPseudo1 || (parentStaticConfig == null || (_parentStaticConfig_variants = parentStaticConfig.variants) === null || _parentStaticConfig_variants === void 0 ? void 0 : _parentStaticConfig_variants[keyInit]));
119
154
  if (shouldPassThrough2)
120
- return passDownProp(viewProps, key4, val2, isMediaOrPseudo1), process.env.NODE_ENV === "development" && debug === "verbose" && (consoleGroupCollapsed(" - passing down prop ".concat(key4)), log({
121
- val: val2,
122
- after: _object_spread({}, viewProps[key4])
155
+ return passDownProp(viewProps, key, val, isMediaOrPseudo1), process.env.NODE_ENV === "development" && debug === "verbose" && (consoleGroupCollapsed(" - passing down prop ".concat(key)), log({
156
+ val,
157
+ after: _object_spread({}, viewProps[key])
123
158
  }), console.groupEnd()), "continue";
124
159
  if (isPseudo) {
125
- if (!val2) return "continue";
126
- var pseudoStyleObject = getSubStyle(styleState, key4, val2, styleProps.noClassNames), descriptor = pseudoDescriptors[key4], isEnter = key4 === "enterStyle", isExit = key4 === "exitStyle";
160
+ if (!val) return "continue";
161
+ var pseudoStyleObject = getSubStyle(styleState, key, val, styleProps.noClassNames), descriptor = pseudoDescriptors[key], isEnter = key === "enterStyle", isExit = key === "exitStyle";
127
162
  if (!descriptor)
128
163
  return "continue";
129
164
  if (!shouldDoClasses || process.env.IS_STATIC === "is_static") {
130
165
  var _pseudos, _key;
131
- if (pseudos || (pseudos = {}), (_pseudos = pseudos)[_key = key4] || (_pseudos[_key] = {}), process.env.IS_STATIC === "is_static")
132
- return Object.assign(pseudos[key4], pseudoStyleObject), "continue";
166
+ if (pseudos || (pseudos = {}), (_pseudos = pseudos)[_key = key] || (_pseudos[_key] = {}), process.env.IS_STATIC === "is_static")
167
+ return Object.assign(pseudos[key], pseudoStyleObject), "continue";
133
168
  }
134
169
  if (shouldDoClasses && !isExit) {
135
170
  var pseudoStyles = getStyleAtomic(pseudoStyleObject, descriptor);
136
- process.env.NODE_ENV === "development" && debug === "verbose" && (consoleGroupCollapsed("pseudo (classes)", key4), log({
171
+ process.env.NODE_ENV === "development" && debug === "verbose" && (consoleGroupCollapsed("pseudo (classes)", key), log({
137
172
  pseudoStyleObject,
138
173
  pseudoStyles
139
174
  }), console.groupEnd());
@@ -156,7 +191,7 @@ var getSplitStyles = function(props, staticConfig, theme, themeName, componentSt
156
191
  }
157
192
  if (!shouldDoClasses || isExit || isEnter) {
158
193
  var descriptorKey = descriptor.stateKey || descriptor.name, isDisabled = componentState[descriptorKey] === !1;
159
- isExit && (isDisabled = !styleProps.isExiting), isEnter && componentState.unmounted === !1 && (isDisabled = !0), process.env.NODE_ENV === "development" && debug === "verbose" && (consoleGroupCollapsed("pseudo", key4, {
194
+ isExit && (isDisabled = !styleProps.isExiting), isEnter && componentState.unmounted === !1 && (isDisabled = !0), process.env.NODE_ENV === "development" && debug === "verbose" && (consoleGroupCollapsed("pseudo", key, {
160
195
  isDisabled
161
196
  }), log({
162
197
  pseudoStyleObject,
@@ -173,7 +208,7 @@ var getSplitStyles = function(props, staticConfig, theme, themeName, componentSt
173
208
  var curImportance = usedKeys[pkey] || 0, shouldMerge = importance >= curImportance;
174
209
  if (shouldMerge) {
175
210
  var _pseudos1, _key1;
176
- pseudos || (pseudos = {}), (_pseudos1 = pseudos)[_key1 = key4] || (_pseudos1[_key1] = {}), pseudos[key4][pkey] = val12, mergeStyle(styleState, pkey, val12);
211
+ pseudos || (pseudos = {}), (_pseudos1 = pseudos)[_key1 = key] || (_pseudos1[_key1] = {}), pseudos[key][pkey] = val12, mergeStyle(styleState, pkey, val12);
177
212
  }
178
213
  process.env.NODE_ENV === "development" && debug === "verbose" && log(" subKey", pkey, shouldMerge, {
179
214
  importance,
@@ -184,7 +219,7 @@ var getSplitStyles = function(props, staticConfig, theme, themeName, componentSt
184
219
  }
185
220
  }
186
221
  if (!isDisabled)
187
- for (var key12 in val2) {
222
+ for (var key12 in val) {
188
223
  var k1 = shorthands[key12] || key12;
189
224
  usedKeys[k1] = Math.max(importance, usedKeys[k1] || 0);
190
225
  }
@@ -192,23 +227,23 @@ var getSplitStyles = function(props, staticConfig, theme, themeName, componentSt
192
227
  return "continue";
193
228
  }
194
229
  if (isMedia) {
195
- if (!val2) return "continue";
196
- var hasSpace = val2.space, mediaKeyShort = key4.slice(1);
197
- if (hasMedia || (hasMedia = !0), (hasSpace || !shouldDoClasses || styleProps.willBeAnimated) && ((typeof hasMedia > "u" ? "undefined" : _type_of(hasMedia)) !== "object" && (hasMedia = {}), hasMedia[mediaKeyShort] = !0), isMedia === "platform" && !isActivePlatform(key4))
230
+ if (!val) return "continue";
231
+ var hasSpace = val.space, mediaKeyShort = key.slice(1);
232
+ if (hasMedia || (hasMedia = !0), (hasSpace || !shouldDoClasses || styleProps.willBeAnimated) && ((typeof hasMedia > "u" ? "undefined" : _type_of(hasMedia)) !== "object" && (hasMedia = {}), hasMedia[mediaKeyShort] = !0), isMedia === "platform" && !isActivePlatform(key))
198
233
  return "continue";
199
- if (process.env.NODE_ENV === "development" && debug === "verbose" && log(" \u{1F4FA} ".concat(key4), {
200
- key: key4,
201
- val: val2,
234
+ if (process.env.NODE_ENV === "development" && debug === "verbose" && log(" \u{1F4FA} ".concat(key), {
235
+ key,
236
+ val,
202
237
  props,
203
238
  shouldDoClasses,
204
239
  acceptsClassName,
205
240
  componentState,
206
241
  mediaState
207
242
  }), shouldDoClasses) {
208
- var mediaStyle = getSubStyle(styleState, key4, val2, !1);
243
+ var mediaStyle = getSubStyle(styleState, key, val, !1);
209
244
  if (hasSpace && (delete mediaStyle.space, mediaState[mediaKeyShort])) {
210
245
  var importance1 = getMediaImportanceIfMoreImportant(mediaKeyShort, "space", usedKeys, !0);
211
- importance1 && (space = val2.space, usedKeys.space = importance1, process.env.NODE_ENV === "development" && debug === "verbose" && log("Found more important space for current media ".concat(mediaKeyShort, ": ").concat(val2, " (importance: ").concat(importance1, ")")));
246
+ importance1 && (space = val.space, usedKeys.space = importance1, process.env.NODE_ENV === "development" && debug === "verbose" && log("Found more important space for current media ".concat(mediaKeyShort, ": ").concat(val, " (importance: ").concat(importance1, ")")));
212
247
  }
213
248
  var mediaStyles = getStylesAtomic(mediaStyle), priority = mediaStylesSeen;
214
249
  mediaStylesSeen += 1;
@@ -245,7 +280,7 @@ var getSplitStyles = function(props, staticConfig, theme, themeName, componentSt
245
280
  return process.env.NODE_ENV === "development" && debug === "verbose" && log(" \u{1F4FA} \u274C DISABLED ".concat(mediaKeyShort)), "continue";
246
281
  process.env.NODE_ENV === "development" && debug === "verbose" && log(" \u{1F4FA} \u2705 ENABLED ".concat(mediaKeyShort));
247
282
  }
248
- var mediaStyle1 = getSubStyle(styleState, key4, val2, !0), importanceBump = 0;
283
+ var mediaStyle1 = getSubStyle(styleState, key, val, !0), importanceBump = 0;
249
284
  if (isThemeMedia) {
250
285
  dynamicThemeAccess = !0;
251
286
  var mediaThemeName = mediaKeyShort.slice(6);
@@ -294,163 +329,136 @@ var getSplitStyles = function(props, staticConfig, theme, themeName, componentSt
294
329
  }
295
330
  return "continue";
296
331
  }
297
- if (key4 === "pointerEvents")
298
- return viewProps[key4] = val2, "continue";
332
+ if (key === "pointerEvents")
333
+ return viewProps[key] = val, "continue";
299
334
  if (
300
335
  // is HOC we can just pass through the styles as props
301
336
  // this fixes issues where style prop got merged with wrong priority
302
- !isHOC && (isValidStyleKey(key4, staticConfig) || isAndroid && key4 === "elevation")
337
+ !isHOC && (isValidStyleKey(key, staticConfig) || isAndroid && key === "elevation")
303
338
  )
304
- return mergeStyle(styleState, key4, val2), "continue";
305
- isVariant || (viewProps[key4] = val2);
306
- }, keyInit = keyOg2, valInit = props[keyInit];
339
+ return mergeStyle(styleState, key, val), "continue";
340
+ isVariant || (viewProps[key] = val);
341
+ }, keyInit = keyOg, valInit = props[keyInit];
307
342
  if (accept) {
308
343
  var accepted = accept[keyInit];
309
- if ((accepted === "style" || accepted === "textStyle") && valInit && (typeof valInit > "u" ? "undefined" : _type_of(valInit)) === "object")
310
- return viewProps[keyInit] = getSubStyle(styleState, keyInit, valInit, styleProps.noClassNames), "continue";
311
- }
312
- if (process.env.NODE_ENV === "development" && debug === "verbose" && console.groupEnd(), disableExpandShorthands || keyInit in shorthands && (keyInit = shorthands[keyInit]), keyInit === "className" || keyInit in usedKeys) return "continue";
313
- if (keyInit in skipProps && !noSkip && !isHOC) {
314
- if (keyInit === "group" && 0)
315
- var identifier2, containerType, containerCSS;
316
- return "continue";
317
- }
318
- var valInitType = typeof valInit > "u" ? "undefined" : _type_of(valInit), isValidStyleKeyInit = isValidStyleKey(keyInit, staticConfig);
319
- if (0 && isValidStyleKeyInit && valInitType === "string" && valInit[0] === "_") {
320
- var isValidClassName, isMediaOrPseudo;
321
- if ((isValidClassName || isMediaOrPseudo) && !shouldDoClasses)
322
- var _styleState3;
323
- }
324
- if (!isValidStyleKeyInit) {
325
- if (!isAndroid && keyInit === "elevationAndroid")
326
- return "continue";
327
- if (keyInit === "userSelect")
328
- keyInit = "selectable", valInit = valInit !== "none";
329
- else if (keyInit.startsWith("data-"))
330
- return "continue";
331
- }
332
- if (keyInit === "dataSet") {
333
- for (var keyInit1 in valInit)
334
- viewProps["data-".concat(hyphenate(keyInit1))] = valInit[keyInit1];
335
- return "continue";
336
- }
337
- if (0 && !noExpand)
338
- var didUseKeyInit;
339
- var isShorthand = keyInit in shorthands, isVariant = !isValidStyleKeyInit && variants && keyInit in variants, isStyleLikeKey = isShorthand || isValidStyleKeyInit || isVariant, isPseudo = keyInit in validPseudoKeys, isMedia = !isStyleLikeKey && !isPseudo && isMediaKey(keyInit), isMediaOrPseudo1 = !!(isMedia || isPseudo);
340
- if (isMediaOrPseudo1 && keyInit.startsWith("$group-")) {
341
- var name2 = keyInit.split("-")[1];
342
- context != null && context.groups.subscribe && !(context != null && context.groups.state[name2]) && (keyInit = keyInit.replace("$group-", "$group-true-"));
343
- }
344
- var isStyleProp = isValidStyleKeyInit || isMediaOrPseudo1 || isVariant && !noExpand || isShorthand;
345
- if (isStyleProp && (asChild === "except-style" || asChild === "except-style-web"))
346
- return "continue";
347
- var shouldPassProp = !isStyleProp || // is in parent variants
348
- 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 skipProps)), shouldPassThrough = shouldPassProp || isHOCShouldPassThrough;
349
- 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)" : "")), log({
350
- isVariant,
351
- valInit,
352
- shouldPassProp
353
- }), isClient && log({
354
- variants,
355
- variant: variants == null ? void 0 : variants[keyInit],
356
- isVariant,
357
- isHOCShouldPassThrough,
358
- curProps: _object_spread({}, styleState.curProps),
359
- parentStaticConfig
360
- })), shouldPassThrough && (passDownProp(viewProps, keyInit, valInit, isMediaOrPseudo1), !isVariant) || !noSkip && keyInit in skipProps)
361
- return process.env.NODE_ENV === "development" && debug === "verbose" && console.groupEnd(), "continue";
362
- (isText || isInput) && valInit && (keyInit === "fontFamily" || keyInit === shorthands.fontFamily) && valInit in conf.fontsParsed && (styleState.fontFamily = valInit);
363
- var avoidPropMap = isMediaOrPseudo1 || !isVariant && !isValidStyleKeyInit, expanded = avoidPropMap ? null : propMapper(keyInit, valInit, styleState);
364
- if (!avoidPropMap) {
365
- if (!expanded) return "continue";
366
- var next = getPropMappedFontFamily(expanded);
367
- next && (styleState.fontFamily = next);
344
+ if ((accepted === "style" || accepted === "textStyle") && valInit && (typeof valInit > "u" ? "undefined" : _type_of(valInit)) === "object") {
345
+ viewProps[keyInit] = getSubStyle(styleState, keyInit, valInit, styleProps.noClassNames);
346
+ continue;
347
+ }
368
348
  }
369
- if (process.env.NODE_ENV === "development" && debug === "verbose") {
370
- consoleGroupCollapsed(" \u{1F4A0} expanded", keyInit, valInit);
371
- try {
372
- !isServer && isDevTools && (log({
373
- expanded,
374
- styleProps,
375
- componentState,
349
+ if (process.env.NODE_ENV === "development" && debug === "verbose" && console.groupEnd(), disableExpandShorthands || keyInit in shorthands && (keyInit = shorthands[keyInit]), keyInit !== "className" && !(keyInit in usedKeys)) {
350
+ if (keyInit in skipProps && !noSkip && !isHOC) {
351
+ if (keyInit === "group" && 0)
352
+ var identifier, containerType, containerCSS;
353
+ continue;
354
+ }
355
+ var valInitType = typeof valInit > "u" ? "undefined" : _type_of(valInit), isValidStyleKeyInit = isValidStyleKey(keyInit, staticConfig);
356
+ if (0 && isValidStyleKeyInit && valInitType === "string" && valInit[0] === "_") {
357
+ var isValidClassName, isMediaOrPseudo;
358
+ if ((isValidClassName || isMediaOrPseudo) && !shouldDoClasses)
359
+ var _styleState;
360
+ }
361
+ if (!isValidStyleKeyInit) {
362
+ if (!isAndroid && keyInit === "elevationAndroid")
363
+ continue;
364
+ if (keyInit === "userSelect")
365
+ keyInit = "selectable", valInit = valInit !== "none";
366
+ else if (keyInit.startsWith("data-"))
367
+ continue;
368
+ }
369
+ if (keyInit === "dataSet") {
370
+ for (var keyInit1 in valInit)
371
+ viewProps["data-".concat(hyphenate(keyInit1))] = valInit[keyInit1];
372
+ continue;
373
+ }
374
+ if (0 && !noExpand)
375
+ var didUseKeyInit;
376
+ var isShorthand = keyInit in shorthands, isVariant = !isValidStyleKeyInit && variants && keyInit in variants, isStyleLikeKey = isShorthand || isValidStyleKeyInit || isVariant, isPseudo = keyInit in validPseudoKeys, isMedia = !isStyleLikeKey && !isPseudo && isMediaKey(keyInit), isMediaOrPseudo1 = !!(isMedia || isPseudo);
377
+ if (isMediaOrPseudo1 && keyInit.startsWith("$group-")) {
378
+ var name = keyInit.split("-")[1];
379
+ context != null && context.groups.subscribe && !(context != null && context.groups.state[name]) && (keyInit = keyInit.replace("$group-", "$group-true-"));
380
+ }
381
+ var isStyleProp = isValidStyleKeyInit || isMediaOrPseudo1 || isVariant && !noExpand || isShorthand;
382
+ if (!(isStyleProp && (asChild === "except-style" || asChild === "except-style-web"))) {
383
+ var shouldPassProp = !isStyleProp || // is in parent variants
384
+ 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 skipProps)), shouldPassThrough = shouldPassProp || isHOCShouldPassThrough;
385
+ 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)" : "")), log({
376
386
  isVariant,
387
+ valInit,
388
+ shouldPassProp
389
+ }), isClient && log({
390
+ variants,
377
391
  variant: variants == null ? void 0 : variants[keyInit],
378
- shouldPassProp,
392
+ isVariant,
379
393
  isHOCShouldPassThrough,
380
- usedKeys: _object_spread({}, usedKeys),
381
- curProps: _object_spread({}, styleState.curProps)
382
- }), log("expanded", expanded, `
394
+ curProps: _object_spread({}, styleState.curProps),
395
+ parentStaticConfig
396
+ })), shouldPassThrough && (passDownProp(viewProps, keyInit, valInit, isMediaOrPseudo1), !isVariant)) {
397
+ process.env.NODE_ENV === "development" && debug === "verbose" && console.groupEnd();
398
+ continue;
399
+ }
400
+ if (!noSkip && keyInit in skipProps) {
401
+ process.env.NODE_ENV === "development" && debug === "verbose" && console.groupEnd();
402
+ continue;
403
+ }
404
+ (isText || isInput) && valInit && (keyInit === "fontFamily" || keyInit === shorthands.fontFamily) && valInit in conf.fontsParsed && (styleState.fontFamily = valInit);
405
+ var avoidPropMap = isMediaOrPseudo1 || !isVariant && !isValidStyleKeyInit, expanded = avoidPropMap ? null : propMapper(keyInit, valInit, styleState);
406
+ if (!avoidPropMap) {
407
+ if (!expanded) continue;
408
+ var next = getPropMappedFontFamily(expanded);
409
+ next && (styleState.fontFamily = next);
410
+ }
411
+ if (process.env.NODE_ENV === "development" && debug === "verbose") {
412
+ consoleGroupCollapsed(" \u{1F4A0} expanded", keyInit, valInit);
413
+ try {
414
+ !isServer && isDevTools && (log({
415
+ expanded,
416
+ styleProps,
417
+ componentState,
418
+ isVariant,
419
+ variant: variants == null ? void 0 : variants[keyInit],
420
+ shouldPassProp,
421
+ isHOCShouldPassThrough,
422
+ usedKeys: _object_spread({}, usedKeys),
423
+ curProps: _object_spread({}, styleState.curProps)
424
+ }), log("expanded", expanded, `
383
425
  usedKeys`, _object_spread({}, usedKeys), `
384
426
  current`, _object_spread({}, styleState.style)));
385
- } catch {
386
- }
387
- console.groupEnd();
388
- }
389
- for (var key4 = keyInit, val2 = valInit, max = expanded ? expanded.length : 1, i2 = 0; i2 < max; i2++) _loop2(i2);
390
- if (process.env.NODE_ENV === "development" && debug === "verbose") {
391
- try {
392
- log(" \u2714\uFE0F expand complete", keyInit), log("style", _object_spread({}, styleState.style)), log("transforms", _object_spread({}, transforms)), log("viewProps", _object_spread({}, viewProps));
393
- } catch {
427
+ } catch {
428
+ }
429
+ console.groupEnd();
430
+ }
431
+ for (var key = keyInit, val = valInit, max = expanded ? expanded.length : 1, i = 0; i < max; i++) _loop(i);
432
+ if (process.env.NODE_ENV === "development" && debug === "verbose") {
433
+ try {
434
+ log(" \u2714\uFE0F expand complete", keyInit), log("style", _object_spread({}, styleState.style)), log("transforms", _object_spread({}, transforms)), log("viewProps", _object_spread({}, viewProps));
435
+ } catch {
436
+ }
437
+ console.groupEnd();
438
+ }
394
439
  }
395
- console.groupEnd();
396
440
  }
397
- };
398
- conf = conf || getConfig(), isWeb && styleProps.isAnimated && conf.animations.isReactNative && !styleProps.noNormalize && (styleProps.noNormalize = "values");
399
- 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 = {}, mediaState = styleProps.mediaState || globalMediaState, usedKeys = {}, shouldDoClasses = acceptsClassName && 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 = {
400
- // this should go away, right now we're doing really crazy cumulative props,
401
- // as variants are resolved basically we go back and merge the results onto
402
- // the curProps, so that each following variant function recieves the current
403
- // "styles" with variants expanded. powerful, but i think too fancy
404
- // there's some part of the ui kit that depends on it we'd have to find and fix
405
- get curProps() {
406
- return curPropsState || (curPropsState = {}), curPropsState;
407
- },
408
- classNames,
409
- conf,
410
- props,
411
- styleProps,
412
- componentState,
413
- staticConfig,
414
- style: null,
415
- theme,
416
- usedKeys,
417
- viewProps,
418
- context,
419
- debug,
420
- skipThemeTokenResolution
421
- };
422
- process.env.NODE_ENV === "development" && debug && debug !== "profile" && isClient && (consoleGroupCollapsed("getSplitStyles (collapsed)"), log({
423
- props,
424
- staticConfig,
425
- shouldDoClasses,
426
- styleProps,
427
- rulesToInsert,
428
- componentState,
429
- styleState,
430
- theme: _object_spread({}, theme)
431
- }), console.groupEnd());
432
- 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;
433
- for (var keyOg in props) _loop(keyOg);
441
+ }
434
442
  var avoidNormalize = styleProps.noNormalize === !1;
435
443
  if (!avoidNormalize) {
436
444
  if (styleState.style && (fixStyles(styleState.style), isWeb && !isReactNative && styleToCSS(styleState.style)), styleState.flatTransforms) {
437
- var _styleState;
438
- (_styleState = styleState).style || (_styleState.style = {}), Object.entries(styleState.flatTransforms).sort(function(param, param1) {
445
+ var _styleState1;
446
+ (_styleState1 = styleState).style || (_styleState1.style = {}), Object.entries(styleState.flatTransforms).sort(function(param, param1) {
439
447
  var _param = _sliced_to_array(param, 1), a = _param[0], _param1 = _sliced_to_array(param1, 1), b = _param1[0];
440
448
  return a.localeCompare(b);
441
449
  }).forEach(function(param) {
442
- var _param = _sliced_to_array(param, 2), key4 = _param[0], val2 = _param[1];
443
- mergeTransform(styleState.style, key4, val2, !0);
450
+ var _param = _sliced_to_array(param, 2), key5 = _param[0], val3 = _param[1];
451
+ mergeTransform(styleState.style, key5, val3, !0);
444
452
  });
445
453
  }
446
454
  if (parentSplitStyles) {
447
455
  if (0 && shouldDoClasses)
448
- for (var key in parentSplitStyles.classNames)
449
- var val;
456
+ for (var key1 in parentSplitStyles.classNames)
457
+ var val1;
450
458
  if (!shouldDoClasses)
451
- for (var key1 in parentSplitStyles.style) {
452
- var _styleState1;
453
- key1 in classNames || styleState.style && key1 in styleState.style || ((_styleState1 = styleState).style || (_styleState1.style = {}), styleState.style[key1] = parentSplitStyles.style[key1]);
459
+ for (var key2 in parentSplitStyles.style) {
460
+ var _styleState2;
461
+ key2 in classNames || styleState.style && key2 in styleState.style || ((_styleState2 = styleState).style || (_styleState2.style = {}), styleState.style[key2] = parentSplitStyles.style[key2]);
454
462
  }
455
463
  }
456
464
  }
@@ -463,7 +471,7 @@ current`, _object_spread({}, styleState.style)));
463
471
  var atomic, _iteratorNormalCompletion, _didIteratorError, _iteratorError;
464
472
  try {
465
473
  for (var _iterator, _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0)
466
- var atomicStyle, _props_animateOnly, _atomicStyle, key2, value, identifier, isAnimatedAndAnimateOnly, nonAnimatedAnimateOnly;
474
+ var atomicStyle, _props_animateOnly, _atomicStyle, key3, value, identifier1, isAnimatedAndAnimateOnly, nonAnimatedAnimateOnly;
467
475
  } catch (err) {
468
476
  } finally {
469
477
  try {
@@ -473,8 +481,8 @@ current`, _object_spread({}, styleState.style)));
473
481
  }
474
482
  if (transforms)
475
483
  for (var namespace in transforms) {
476
- var _transforms_namespace, hash, val1, identifier1;
477
- if (isClient && !insertedTransforms[identifier1])
484
+ var _transforms_namespace, hash, val2, identifier2;
485
+ if (isClient && !insertedTransforms[identifier2])
478
486
  var rule;
479
487
  }
480
488
  }
@@ -489,14 +497,14 @@ current`, _object_spread({}, styleState.style)));
489
497
  if (isHOC)
490
498
  viewProps.style = normalizeStyle(styleProp);
491
499
  else
492
- for (var isArray = Array.isArray(styleProp), len = isArray ? styleProp.length : 1, i = 0; i < len; i++) {
493
- var style = isArray ? styleProp[i] : styleProp;
500
+ for (var isArray = Array.isArray(styleProp), len = isArray ? styleProp.length : 1, i1 = 0; i1 < len; i1++) {
501
+ var style = isArray ? styleProp[i1] : styleProp;
494
502
  if (style)
495
503
  if (style.$$css)
496
504
  Object.assign(styleState.classNames, style);
497
505
  else {
498
- var _styleState2;
499
- (_styleState2 = styleState).style || (_styleState2.style = {}), Object.assign(styleState.style, normalizeStyle(style));
506
+ var _styleState3;
507
+ (_styleState3 = styleState).style || (_styleState3.style = {}), Object.assign(styleState.style, normalizeStyle(style));
500
508
  }
501
509
  }
502
510
  var style1 = styleState.style;
@@ -531,7 +539,7 @@ current`, _object_spread({}, styleState.style)));
531
539
  var cnStyles, _iteratorNormalCompletion1, _didIteratorError1, _iteratorError1;
532
540
  try {
533
541
  for (var _iterator1, _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = !0)
534
- var name;
542
+ var name1;
535
543
  } catch (err) {
536
544
  } finally {
537
545
  try {
@@ -555,8 +563,8 @@ current`, _object_spread({}, styleState.style)));
555
563
  rulesToInsert,
556
564
  parentSplitStyles
557
565
  });
558
- for (var key3 in logs)
559
- log(key3, logs[key3]);
566
+ for (var key4 in logs)
567
+ log(key4, logs[key4]);
560
568
  } catch {
561
569
  }
562
570
  console.groupEnd();