@tamagui/web 1.100.6 → 1.101.1

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 (143) hide show
  1. package/dist/cjs/createComponent.js +24 -16
  2. package/dist/cjs/createComponent.js.map +1 -1
  3. package/dist/cjs/createComponent.native.js +14 -11
  4. package/dist/cjs/createComponent.native.js.map +2 -2
  5. package/dist/cjs/createTokens.js.map +1 -1
  6. package/dist/cjs/createTokens.native.js.map +1 -1
  7. package/dist/cjs/helpers/createMediaStyle.js +2 -6
  8. package/dist/cjs/helpers/createMediaStyle.js.map +1 -1
  9. package/dist/cjs/helpers/createMediaStyle.native.js +51 -7
  10. package/dist/cjs/helpers/createMediaStyle.native.js.map +2 -2
  11. package/dist/cjs/helpers/expandStyles.js.map +1 -1
  12. package/dist/cjs/helpers/expandStyles.native.js.map +1 -1
  13. package/dist/cjs/helpers/getSplitStyles.js +77 -60
  14. package/dist/cjs/helpers/getSplitStyles.js.map +1 -1
  15. package/dist/cjs/helpers/getSplitStyles.native.js +55 -42
  16. package/dist/cjs/helpers/getSplitStyles.native.js.map +2 -2
  17. package/dist/cjs/helpers/getStylesAtomic.js +7 -6
  18. package/dist/cjs/helpers/getStylesAtomic.js.map +1 -1
  19. package/dist/cjs/helpers/insertStyleRule.js +17 -14
  20. package/dist/cjs/helpers/insertStyleRule.js.map +1 -1
  21. package/dist/cjs/helpers/insertStyleRule.native.js +4 -3
  22. package/dist/cjs/helpers/insertStyleRule.native.js.map +2 -2
  23. package/dist/cjs/helpers/propMapper.js +1 -1
  24. package/dist/cjs/helpers/propMapper.js.map +1 -1
  25. package/dist/cjs/helpers/propMapper.native.js +1 -1
  26. package/dist/cjs/helpers/propMapper.native.js.map +2 -2
  27. package/dist/cjs/hooks/useDidHydrateOnce.js +6 -4
  28. package/dist/cjs/hooks/useDidHydrateOnce.js.map +1 -1
  29. package/dist/cjs/hooks/useDidHydrateOnce.native.js +11 -1
  30. package/dist/cjs/hooks/useDidHydrateOnce.native.js.map +2 -2
  31. package/dist/cjs/hooks/useMedia.js +18 -14
  32. package/dist/cjs/hooks/useMedia.js.map +1 -1
  33. package/dist/cjs/hooks/useMedia.native.js +20 -13
  34. package/dist/cjs/hooks/useMedia.native.js.map +2 -2
  35. package/dist/cjs/views/TamaguiProvider.js.map +1 -1
  36. package/dist/cjs/views/TamaguiProvider.native.js.map +1 -1
  37. package/dist/esm/createComponent.js +30 -17
  38. package/dist/esm/createComponent.js.map +1 -1
  39. package/dist/esm/createComponent.mjs +19 -17
  40. package/dist/esm/createComponent.native.js +15 -12
  41. package/dist/esm/createComponent.native.js.map +2 -2
  42. package/dist/esm/createTokens.js.map +1 -1
  43. package/dist/esm/createTokens.native.js.map +1 -1
  44. package/dist/esm/helpers/createMediaStyle.js +2 -6
  45. package/dist/esm/helpers/createMediaStyle.js.map +1 -1
  46. package/dist/esm/helpers/createMediaStyle.mjs +2 -10
  47. package/dist/esm/helpers/createMediaStyle.native.js +49 -6
  48. package/dist/esm/helpers/createMediaStyle.native.js.map +2 -2
  49. package/dist/esm/helpers/expandStyles.js.map +1 -1
  50. package/dist/esm/helpers/expandStyles.native.js.map +1 -1
  51. package/dist/esm/helpers/getSplitStyles.js +81 -60
  52. package/dist/esm/helpers/getSplitStyles.js.map +1 -1
  53. package/dist/esm/helpers/getSplitStyles.mjs +83 -64
  54. package/dist/esm/helpers/getSplitStyles.native.js +56 -43
  55. package/dist/esm/helpers/getSplitStyles.native.js.map +2 -2
  56. package/dist/esm/helpers/getStylesAtomic.js +7 -6
  57. package/dist/esm/helpers/getStylesAtomic.js.map +1 -1
  58. package/dist/esm/helpers/getStylesAtomic.mjs +3 -7
  59. package/dist/esm/helpers/insertStyleRule.js +17 -13
  60. package/dist/esm/helpers/insertStyleRule.js.map +1 -1
  61. package/dist/esm/helpers/insertStyleRule.mjs +6 -5
  62. package/dist/esm/helpers/insertStyleRule.native.js +4 -2
  63. package/dist/esm/helpers/insertStyleRule.native.js.map +2 -2
  64. package/dist/esm/helpers/propMapper.js +1 -1
  65. package/dist/esm/helpers/propMapper.js.map +1 -1
  66. package/dist/esm/helpers/propMapper.mjs +1 -2
  67. package/dist/esm/helpers/propMapper.native.js +1 -1
  68. package/dist/esm/helpers/propMapper.native.js.map +2 -2
  69. package/dist/esm/hooks/useDidHydrateOnce.js +7 -5
  70. package/dist/esm/hooks/useDidHydrateOnce.js.map +1 -1
  71. package/dist/esm/hooks/useDidHydrateOnce.mjs +9 -5
  72. package/dist/esm/hooks/useDidHydrateOnce.native.js +12 -2
  73. package/dist/esm/hooks/useDidHydrateOnce.native.js.map +2 -2
  74. package/dist/esm/hooks/useMedia.js +18 -14
  75. package/dist/esm/hooks/useMedia.js.map +1 -1
  76. package/dist/esm/hooks/useMedia.mjs +22 -14
  77. package/dist/esm/hooks/useMedia.native.js +20 -13
  78. package/dist/esm/hooks/useMedia.native.js.map +2 -2
  79. package/dist/esm/views/TamaguiProvider.js.map +1 -1
  80. package/dist/esm/views/TamaguiProvider.native.js.map +1 -1
  81. package/package.json +12 -12
  82. package/src/createComponent.tsx +39 -22
  83. package/src/createTokens.ts +1 -21
  84. package/src/helpers/createMediaStyle.ts +2 -6
  85. package/src/helpers/expandStyles.ts +2 -1
  86. package/src/helpers/getSplitStyles.tsx +116 -88
  87. package/src/helpers/getStylesAtomic.ts +7 -5
  88. package/src/helpers/insertStyleRule.tsx +6 -3
  89. package/src/helpers/propMapper.ts +1 -2
  90. package/src/hooks/useDidHydrateOnce.tsx +22 -17
  91. package/src/hooks/useMedia.tsx +31 -24
  92. package/src/types.tsx +12 -2
  93. package/src/views/TamaguiProvider.tsx +0 -1
  94. package/types/_withStableStyle.d.ts +0 -1
  95. package/types/_withStableStyle.d.ts.map +1 -1
  96. package/types/config.d.ts +1 -1
  97. package/types/constants/accessibilityDirectMap.d.ts.map +1 -1
  98. package/types/constants/webToNativeProps.native.d.ts.map +1 -1
  99. package/types/createComponent.d.ts.map +1 -1
  100. package/types/createFont.d.ts.map +1 -1
  101. package/types/createTheme.d.ts.map +1 -1
  102. package/types/createTokens.d.ts +1 -1
  103. package/types/createTokens.d.ts.map +1 -1
  104. package/types/createVariable.d.ts +1 -1
  105. package/types/createVariable.d.ts.map +1 -1
  106. package/types/createVariables.d.ts +1 -1
  107. package/types/createVariables.d.ts.map +1 -1
  108. package/types/helpers/ThemeManagerContext.d.ts +0 -1
  109. package/types/helpers/ThemeManagerContext.d.ts.map +1 -1
  110. package/types/helpers/createMediaStyle.d.ts.map +1 -1
  111. package/types/helpers/createShallowSetState.d.ts.map +1 -1
  112. package/types/helpers/expandStyles.d.ts.map +1 -1
  113. package/types/helpers/getSplitStyles.d.ts.map +1 -1
  114. package/types/helpers/getStylesAtomic.d.ts.map +1 -1
  115. package/types/helpers/insertStyleRule.d.ts.map +1 -1
  116. package/types/helpers/isTamaguiElement.d.ts +1 -2
  117. package/types/helpers/isTamaguiElement.d.ts.map +1 -1
  118. package/types/helpers/propMapper.d.ts.map +1 -1
  119. package/types/helpers/setElementProps.d.ts.map +1 -1
  120. package/types/helpers/themeable.d.ts.map +1 -1
  121. package/types/hooks/useConfiguration.d.ts +50 -52
  122. package/types/hooks/useConfiguration.d.ts.map +1 -1
  123. package/types/hooks/useDidHydrateOnce.d.ts +1 -1
  124. package/types/hooks/useDidHydrateOnce.d.ts.map +1 -1
  125. package/types/hooks/useMedia.d.ts +3 -4
  126. package/types/hooks/useMedia.d.ts.map +1 -1
  127. package/types/hooks/useTheme.d.ts.map +1 -1
  128. package/types/styled.d.ts.map +1 -1
  129. package/types/types.d.ts +3 -2
  130. package/types/types.d.ts.map +1 -1
  131. package/types/views/Configuration.d.ts +0 -1
  132. package/types/views/Configuration.d.ts.map +1 -1
  133. package/types/views/TamaguiProvider.d.ts.map +1 -1
  134. package/dist/esm/constants/accessibilityDirectMap.native.mjs +0 -6
  135. package/dist/esm/constants/webToNativeProps.native.mjs +0 -77
  136. package/dist/esm/helpers/getStylesAtomic.native.mjs +0 -7
  137. package/dist/esm/helpers/getThemeCSSRules.native.mjs +0 -4
  138. package/dist/esm/helpers/matchMedia.native.mjs +0 -14
  139. package/dist/esm/helpers/normalizeStylePropKeys.native.mjs +0 -13
  140. package/dist/esm/helpers/setElementProps.native.mjs +0 -6
  141. package/dist/esm/helpers/webPropsToSkip.native.mjs +0 -55
  142. package/dist/esm/views/FontLanguage.native.mjs +0 -15
  143. package/dist/esm/views/ThemeDebug.native.mjs +0 -9
@@ -1,5 +1,5 @@
1
1
  import { currentPlatform, isClient, isServer, isWeb, useIsomorphicLayoutEffect } from "@tamagui/constants";
2
- import { stylePropsText, stylePropsTransform, tokenCategories, validPseudoKeys, validStyles } from "@tamagui/helpers";
2
+ import { StyleObjectIdentifier, StyleObjectProperty, StyleObjectPseudo, StyleObjectRules, stylePropsText, stylePropsTransform, tokenCategories, validPseudoKeys, validStyles } from "@tamagui/helpers";
3
3
  import { useInsertionEffect } from "react";
4
4
  import { getConfig } from "../config.mjs";
5
5
  import { accessibilityDirectMap } from "../constants/accessibilityDirectMap.mjs";
@@ -17,7 +17,6 @@ import { getPropMappedFontFamily, propMapper } from "./propMapper.mjs";
17
17
  import { pseudoDescriptors, pseudoPriorities } from "./pseudoDescriptors.mjs";
18
18
  import { skipProps } from "./skipProps.mjs";
19
19
  import { transformsToString } from "./transformsToString.mjs";
20
- const IS_STATIC = process.env.IS_STATIC === "is_static";
21
20
  let conf;
22
21
  const PROP_SPLIT = "-";
23
22
  function isValidStyleKey(key, staticConfig) {
@@ -53,9 +52,17 @@ const getSplitStyles = (props, staticConfig, theme, themeName, componentState, s
53
52
  pseudoGroups,
54
53
  mediaGroups,
55
54
  className = props.className || "",
56
- mediaStylesSeen = 0;
55
+ mediaStylesSeen = 0,
56
+ curPropsState;
57
57
  const styleState = {
58
- curProps: {},
58
+ // this should go away, right now we're doing really crazy cumulative props,
59
+ // as variants are resolved basically we go back and merge the results onto
60
+ // the curProps, so that each following variant function recieves the current
61
+ // "styles" with variants expanded. powerful, but i think too fancy
62
+ // there's some part of the ui kit that depends on it we'd have to find and fix
63
+ get curProps() {
64
+ return curPropsState ||= {}, curPropsState;
65
+ },
59
66
  classNames,
60
67
  conf,
61
68
  props,
@@ -81,24 +88,36 @@ const getSplitStyles = (props, staticConfig, theme, themeName, componentState, s
81
88
  ...theme
82
89
  }
83
90
  }), console.groupEnd());
91
+ const {
92
+ asChild
93
+ } = props,
94
+ {
95
+ accept
96
+ } = staticConfig,
97
+ {
98
+ noSkip,
99
+ disableExpandShorthands,
100
+ noExpand
101
+ } = styleProps,
102
+ {
103
+ webContainerType
104
+ } = conf.settings,
105
+ parentVariants = parentStaticConfig?.variants;
84
106
  for (const keyOg in props) {
85
107
  let keyInit = keyOg,
86
- valInit = props[keyOg];
87
- if (staticConfig.accept && (staticConfig.accept[keyInit] === "style" || staticConfig.accept[keyInit] === "textStyle") && typeof valInit == "object") {
88
- const styleObject = getSubStyle(styleState, keyInit, valInit, styleProps.noClassNames);
89
- viewProps[keyInit] = styleObject;
90
- continue;
108
+ valInit = props[keyInit];
109
+ if (accept) {
110
+ const accepted = accept[keyInit];
111
+ if ((accepted === "style" || accepted === "textStyle") && valInit && typeof valInit == "object") {
112
+ viewProps[keyInit] = getSubStyle(styleState, keyInit, valInit, styleProps.noClassNames);
113
+ continue;
114
+ }
91
115
  }
92
- if (process.env.NODE_ENV === "development" && debug === "verbose" && console.groupEnd(), styleProps.disableExpandShorthands || keyInit in shorthands && (keyInit = shorthands[keyInit]), keyInit === "className" || keyInit in usedKeys || props.asChild && webViewFlexCompatStyles[keyInit] === valInit) continue;
93
- if (keyInit in skipProps && !styleProps.noSkip && !isHOC) {
116
+ if (process.env.NODE_ENV === "development" && debug === "verbose" && console.groupEnd(), disableExpandShorthands || keyInit in shorthands && (keyInit = shorthands[keyInit]), keyInit === "className" || keyInit in usedKeys || asChild && webViewFlexCompatStyles[keyInit] === valInit) continue;
117
+ if (keyInit in skipProps && !noSkip && !isHOC) {
94
118
  if (keyInit === "group") {
95
119
  const identifier = `t_group_${valInit}`,
96
- containerType = conf.settings.webContainerType || "inline-size",
97
- containerCSS = {
98
- identifier,
99
- property: "container",
100
- rules: [`.${identifier} { container-name: ${valInit}; container-type: ${containerType}; }`]
101
- };
120
+ containerCSS = ["continer", void 0, identifier, void 0, [`.${identifier} { container-name: ${valInit}; container-type: ${webContainerType || "inline-size"}; }`]];
102
121
  addStyleToInsertRules(rulesToInsert, containerCSS);
103
122
  }
104
123
  continue;
@@ -116,11 +135,11 @@ const getSplitStyles = (props, staticConfig, theme, themeName, componentState, s
116
135
  continue;
117
136
  }
118
137
  }
119
- if (valInit !== props[keyInit] && (styleState.curProps[keyInit] = valInit), keyInit === "dataSet") {
138
+ if (keyInit === "dataSet") {
120
139
  for (const keyInit2 in valInit) viewProps[`data-${hyphenate(keyInit2)}`] = valInit[keyInit2];
121
140
  continue;
122
141
  }
123
- if (!styleProps.noExpand) {
142
+ if (!noExpand) {
124
143
  if (keyInit === "disabled" && valInit === !0 && (viewProps["aria-disabled"] = !0, (elementType === "button" || elementType === "form" || elementType === "input" || elementType === "select" || elementType === "textarea") && (viewProps.disabled = !0), !variants?.disabled)) continue;
125
144
  if (keyInit === "testID") {
126
145
  viewProps[isReactNative ? keyInit : "data-testid"] = valInit;
@@ -191,12 +210,12 @@ const getSplitStyles = (props, staticConfig, theme, themeName, componentState, s
191
210
  const name = keyInit.split("-")[1];
192
211
  context?.groups.subscribe && !context?.groups.state[name] && (keyInit = keyInit.replace("$group-", "$group-true-"));
193
212
  }
194
- const isStyleProp = isValidStyleKeyInit || isMediaOrPseudo || isVariant && !styleProps.noExpand || isShorthand;
195
- if (isStyleProp && (props.asChild === "except-style" || props.asChild === "except-style-web")) continue;
213
+ const isStyleProp = isValidStyleKeyInit || isMediaOrPseudo || isVariant && !noExpand || isShorthand;
214
+ if (isStyleProp && (asChild === "except-style" || asChild === "except-style-web")) continue;
196
215
  const shouldPassProp = !isStyleProp ||
197
216
  // is in parent variants
198
- isHOC && parentStaticConfig?.variants && keyInit in parentStaticConfig.variants || inlineProps?.has(keyInit),
199
- parentVariant = parentStaticConfig?.variants?.[keyInit],
217
+ isHOC && parentVariants && keyInit in parentVariants || inlineProps?.has(keyInit),
218
+ parentVariant = parentVariants?.[keyInit],
200
219
  isHOCShouldPassThrough = !!(isHOC && (isShorthand || isValidStyleKeyInit || isMediaOrPseudo || parentVariant || keyInit in skipProps)),
201
220
  shouldPassThrough = shouldPassProp || isHOCShouldPassThrough;
202
221
  if (process.env.NODE_ENV === "development" && debug === "verbose" && (console.groupEnd(), console.groupEnd(), console.groupCollapsed(` \u{1F511} ${keyOg}${keyInit !== keyOg ? ` (shorthand for ${keyInit})` : ""} ${shouldPassThrough ? "(pass)" : ""}`), log({
@@ -216,7 +235,7 @@ const getSplitStyles = (props, staticConfig, theme, themeName, componentState, s
216
235
  process.env.NODE_ENV === "development" && debug === "verbose" && console.groupEnd();
217
236
  continue;
218
237
  }
219
- if (!styleProps.noSkip && keyInit in skipProps) {
238
+ if (!noSkip && keyInit in skipProps) {
220
239
  process.env.NODE_ENV === "development" && debug === "verbose" && console.groupEnd();
221
240
  continue;
222
241
  }
@@ -265,7 +284,7 @@ current`, {
265
284
  key = k, val = v;
266
285
  }
267
286
  if (val == null || key in usedKeys) continue;
268
- if (isPseudo = key in validPseudoKeys, isMedia = !isPseudo && !isValidStyleKeyInit && isMediaKey(key), isMediaOrPseudo = !!(isMedia || isPseudo), isVariant = variants && key in variants, (inlineProps?.has(key) || IS_STATIC && inlineWhenUnflattened?.has(key)) && (viewProps[key] = props[key] ?? val), styleProps.noExpand && isPseudo || isHOC && (isMediaOrPseudo || parentStaticConfig?.variants?.[keyInit])) {
287
+ if (isPseudo = key in validPseudoKeys, isMedia = !isPseudo && !isValidStyleKeyInit && isMediaKey(key), isMediaOrPseudo = !!(isMedia || isPseudo), isVariant = variants && key in variants, (inlineProps?.has(key) || process.env.IS_STATIC === "is_static" && inlineWhenUnflattened?.has(key)) && (viewProps[key] = props[key] ?? val), styleProps.noExpand && isPseudo || isHOC && (isMediaOrPseudo || parentStaticConfig?.variants?.[keyInit])) {
269
288
  passDownProp(viewProps, key, val, isMediaOrPseudo), process.env.NODE_ENV === "development" && debug === "verbose" && (console.groupCollapsed(` - passing down prop ${key}`), log({
270
289
  val,
271
290
  after: {
@@ -281,7 +300,7 @@ current`, {
281
300
  isEnter = key === "enterStyle",
282
301
  isExit = key === "exitStyle";
283
302
  if (!descriptor) continue;
284
- if ((!shouldDoClasses || IS_STATIC) && (pseudos ||= {}, pseudos[key] ||= {}, IS_STATIC)) {
303
+ if ((!shouldDoClasses || process.env.IS_STATIC === "is_static") && (pseudos ||= {}, pseudos[key] ||= {}, process.env.IS_STATIC === "is_static")) {
285
304
  Object.assign(pseudos[key], pseudoStyleObject);
286
305
  continue;
287
306
  }
@@ -292,8 +311,8 @@ current`, {
292
311
  pseudoStyles
293
312
  }), console.groupEnd());
294
313
  for (const psuedoStyle of pseudoStyles) {
295
- const fullKey = `${psuedoStyle.property}${PROP_SPLIT}${descriptor.name}`;
296
- fullKey in usedKeys || (addStyleToInsertRules(rulesToInsert, psuedoStyle), mergeClassName(transforms, classNames, fullKey, psuedoStyle.identifier, isMediaOrPseudo, !0));
314
+ const fullKey = `${psuedoStyle[StyleObjectProperty]}${PROP_SPLIT}${descriptor.name}`;
315
+ fullKey in usedKeys || (addStyleToInsertRules(rulesToInsert, psuedoStyle), mergeClassName(transforms, classNames, fullKey, psuedoStyle[StyleObjectIdentifier], isMediaOrPseudo, !0));
297
316
  }
298
317
  }
299
318
  if (!shouldDoClasses || isExit || isEnter) {
@@ -333,7 +352,9 @@ current`, {
333
352
  }
334
353
  if (isMedia) {
335
354
  if (!val) continue;
336
- if (isMedia === "platform") {
355
+ const hasSpace = val.space,
356
+ mediaKeyShort = key.slice(1);
357
+ if (hasMedia ||= !0, (hasSpace || !shouldDoClasses || styleProps.willBeAnimated) && (Array.isArray(hasMedia) || (hasMedia = []), hasMedia.push(mediaKeyShort)), isMedia === "platform") {
337
358
  const platform = key.slice(10);
338
359
  if (
339
360
  // supports web, ios, android
@@ -341,18 +362,15 @@ current`, {
341
362
  // supports web, native
342
363
  platform !== "web") continue;
343
364
  }
344
- hasMedia ||= !0;
345
- const mediaKeyShort = key.slice(1);
346
- process.env.NODE_ENV === "development" && debug === "verbose" && log(` \u{1F4FA} ${key}`, {
365
+ if (process.env.NODE_ENV === "development" && debug === "verbose" && log(` \u{1F4FA} ${key}`, {
347
366
  key,
348
367
  val,
349
368
  props,
350
369
  shouldDoClasses,
351
370
  acceptsClassName,
352
- componentState
353
- });
354
- const hasSpace = val.space;
355
- if ((hasSpace || !shouldDoClasses) && (Array.isArray(hasMedia) || (hasMedia = []), hasMedia.push(mediaKeyShort)), shouldDoClasses) {
371
+ componentState,
372
+ mediaState
373
+ }), shouldDoClasses) {
356
374
  const mediaStyle = getSubStyle(styleState, key, val, !1);
357
375
  if (hasSpace && (delete mediaStyle.space, mediaState[mediaKeyShort])) {
358
376
  const importance = getMediaImportanceIfMoreImportant(mediaKeyShort, "space", usedKeys, !0);
@@ -364,14 +382,20 @@ current`, {
364
382
  for (const style of mediaStyles) {
365
383
  const out = createMediaStyle(style, mediaKeyShort, mediaQueryConfig, isMedia, !1, priority);
366
384
  process.env.NODE_ENV === "development" && debug === "verbose" && log("\u{1F4FA} media style:", out);
367
- const fullKey = `${style.property}${PROP_SPLIT}${mediaKeyShort}${style.pseudo || ""}`;
368
- fullKey in usedKeys || (addStyleToInsertRules(rulesToInsert, out), mergeClassName(transforms, classNames, fullKey, out.identifier, !0, !0));
385
+ const fullKey = `${style[StyleObjectProperty]}${PROP_SPLIT}${mediaKeyShort}${style[StyleObjectPseudo] || ""}`;
386
+ fullKey in usedKeys || (addStyleToInsertRules(rulesToInsert, out), mergeClassName(transforms, classNames, fullKey, out[StyleObjectIdentifier], !0, !0));
369
387
  }
370
388
  } else {
371
- const mediaStyle = getSubStyle(styleState, key, val, !0),
372
- isThemeMedia = isMedia === "theme",
389
+ const isThemeMedia = isMedia === "theme",
373
390
  isGroupMedia = isMedia === "group";
374
- if (!isThemeMedia && !(isMedia === "platform") && !isGroupMedia && !mediaState[mediaKeyShort]) continue;
391
+ if (!isThemeMedia && !(isMedia === "platform") && !isGroupMedia) {
392
+ if (!mediaState[mediaKeyShort]) {
393
+ process.env.NODE_ENV === "development" && debug === "verbose" && log(` \u{1F4FA} \u274C DISABLED ${mediaKeyShort}`);
394
+ continue;
395
+ }
396
+ process.env.NODE_ENV === "development" && debug === "verbose" && log(` \u{1F4FA} \u2705 ENABLED ${mediaKeyShort}`);
397
+ }
398
+ const mediaStyle = getSubStyle(styleState, key, val, !0);
375
399
  let importanceBump = 0;
376
400
  if (isThemeMedia) {
377
401
  dynamicThemeAccess = !0;
@@ -434,7 +458,7 @@ current`, {
434
458
  console.groupEnd();
435
459
  }
436
460
  }
437
- if (!(styleProps.noNormalize === !1) && (styleState.style && (fixStyles(styleState.style), isWeb && !staticConfig.isReactNative && styleToCSS(styleState.style)), styleState.flatTransforms && (styleState.style ||= {}, Object.entries(styleState.flatTransforms).sort(([a], [b]) => a.localeCompare(b)).forEach(([key, val]) => {
461
+ if (!(styleProps.noNormalize === !1) && (styleState.style && (fixStyles(styleState.style), isWeb && !isReactNative && styleToCSS(styleState.style)), styleState.flatTransforms && (styleState.style ||= {}, Object.entries(styleState.flatTransforms).sort(([a], [b]) => a.localeCompare(b)).forEach(([key, val]) => {
438
462
  mergeTransform(styleState.style, key, val, !0);
439
463
  })), parentSplitStyles)) {
440
464
  if (shouldDoClasses) for (const key in parentSplitStyles.classNames) {
@@ -449,12 +473,12 @@ current`, {
449
473
  if (!styleState.style.$$css) {
450
474
  const atomic = getStylesAtomic(styleState.style);
451
475
  for (const atomicStyle of atomic) {
452
- const key = atomicStyle.property,
476
+ const [key, value, identifier] = atomicStyle,
453
477
  isAnimatedAndAnimateOnly = styleProps.isAnimated && styleProps.noClassNames && (!props.animateOnly || props.animateOnly.includes(key)),
454
478
  nonAnimatedAnimateOnly = !isAnimatedAndAnimateOnly && !styleProps.isAnimated && props.animateOnly?.includes(key);
455
- isAnimatedAndAnimateOnly ? (retainedStyles ||= {}, retainedStyles[key] = styleState.style[key]) : nonAnimatedAnimateOnly ? (retainedStyles ||= {}, retainedStyles[key] = atomicStyle.value, shouldRetain = !0) : (addStyleToInsertRules(rulesToInsert, atomicStyle), mergeClassName(transforms, classNames, key, atomicStyle.identifier, !1, !0));
479
+ isAnimatedAndAnimateOnly ? (retainedStyles ||= {}, retainedStyles[key] = styleState.style[key]) : nonAnimatedAnimateOnly ? (retainedStyles ||= {}, retainedStyles[key] = value, shouldRetain = !0) : (addStyleToInsertRules(rulesToInsert, atomicStyle), mergeClassName(transforms, classNames, key, identifier, !1, !0));
456
480
  }
457
- process.env.NODE_ENV === "development" && props.debug === "verbose" && (console.groupEnd(), console.groupCollapsed("\u{1F539} getSplitStyles final style object"), console.info(styleState.style), console.groupEnd()), (shouldRetain || !IS_STATIC) && (styleState.style = retainedStyles || {});
481
+ process.env.NODE_ENV === "development" && props.debug === "verbose" && (console.groupEnd(), console.groupCollapsed("\u{1F539} getSplitStyles final style object"), console.info(styleState.style), console.groupEnd()), (shouldRetain || process.env.IS_STATIC !== "is_static") && (styleState.style = retainedStyles || {});
458
482
  }
459
483
  if (transforms) for (const namespace in transforms) {
460
484
  if (!transforms[namespace]) {
@@ -465,11 +489,7 @@ current`, {
465
489
  identifier = `_transform${hash}`;
466
490
  if (isClient && !insertedTransforms[identifier]) {
467
491
  const rule = `.${identifier} { transform: ${val}; }`;
468
- addStyleToInsertRules(rulesToInsert, {
469
- identifier,
470
- rules: [rule],
471
- property: namespace
472
- });
492
+ addStyleToInsertRules(rulesToInsert, [namespace, val, identifier, void 0, [rule]]);
473
493
  }
474
494
  classNames[namespace] = identifier;
475
495
  }
@@ -496,19 +516,18 @@ current`, {
496
516
  }
497
517
  }
498
518
  const result = {
499
- space,
500
- hasMedia,
501
- fontFamily: styleState.fontFamily,
502
- viewProps,
503
- style: styleState.style,
504
- pseudos,
505
- classNames,
506
- rulesToInsert,
507
- dynamicThemeAccess,
508
- pseudoGroups,
509
- mediaGroups
510
- },
511
- asChild = props.asChild;
519
+ space,
520
+ hasMedia,
521
+ fontFamily: styleState.fontFamily,
522
+ viewProps,
523
+ style: styleState.style,
524
+ pseudos,
525
+ classNames,
526
+ rulesToInsert,
527
+ dynamicThemeAccess,
528
+ pseudoGroups,
529
+ mediaGroups
530
+ };
512
531
  if (!(asChild === "except-style" || asChild === "except-style-web")) {
513
532
  const style = styleState.style;
514
533
  {
@@ -597,7 +616,7 @@ const getSubStyle = (styleState, subKey, styleIn, avoidMergeTransform) => {
597
616
  }, [res.rulesToInsert]), res;
598
617
  };
599
618
  function addStyleToInsertRules(rulesToInsert, styleObject) {
600
- shouldInsertStyleRules(styleObject.identifier) && (process.env.TAMAGUI_REACT_19 || updateRules(styleObject.identifier, styleObject.rules), rulesToInsert.push(styleObject));
619
+ shouldInsertStyleRules(styleObject[StyleObjectIdentifier]) && (process.env.TAMAGUI_REACT_19 || updateRules(styleObject[StyleObjectIdentifier], styleObject[StyleObjectRules]), rulesToInsert.push(styleObject));
601
620
  }
602
621
  function processIDRefList(idRefList) {
603
622
  return Array.isArray(idRefList) ? idRefList.join(" ") : idRefList;
@@ -1,5 +1,5 @@
1
1
  import { currentPlatform, isAndroid, isClient, isServer, isWeb, useIsomorphicLayoutEffect } from "@tamagui/constants";
2
- import { stylePropsText, stylePropsTransform, tokenCategories, validPseudoKeys, validStyles } from "@tamagui/helpers";
2
+ import { StyleObjectIdentifier, StyleObjectProperty, StyleObjectPseudo, stylePropsText, stylePropsTransform, tokenCategories, validPseudoKeys, validStyles } from "@tamagui/helpers";
3
3
  import { useInsertionEffect } from "react";
4
4
  import { getConfig, getFont } from "../config";
5
5
  import "../constants/accessibilityDirectMap";
@@ -96,15 +96,22 @@ function _unsupported_iterable_to_array(o, minLen) {
96
96
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
97
97
  }
98
98
  }
99
- var IS_STATIC = process.env.IS_STATIC === "is_static", conf, PROP_SPLIT = "-";
99
+ var conf, PROP_SPLIT = "-";
100
100
  function isValidStyleKey(key, staticConfig) {
101
101
  var _staticConfig_accept, validStyleProps = staticConfig.validStyles || (staticConfig.isText || staticConfig.isInput ? stylePropsText : validStyles);
102
102
  return validStyleProps[key] || ((_staticConfig_accept = staticConfig.accept) === null || _staticConfig_accept === void 0 ? void 0 : _staticConfig_accept[key]);
103
103
  }
104
104
  var getSplitStyles = function(props, staticConfig, theme, themeName, componentState, styleProps, parentSplitStyles, context, elementType, debug, skipThemeTokenResolution) {
105
105
  conf = conf || getConfig(), isWeb && styleProps.isAnimated && conf.animations.isReactNative && !styleProps.noNormalize && (styleProps.noNormalize = "values");
106
- 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, styleState = {
107
- curProps: {},
106
+ 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 = {
107
+ // this should go away, right now we're doing really crazy cumulative props,
108
+ // as variants are resolved basically we go back and merge the results onto
109
+ // the curProps, so that each following variant function recieves the current
110
+ // "styles" with variants expanded. powerful, but i think too fancy
111
+ // there's some part of the ui kit that depends on it we'd have to find and fix
112
+ get curProps() {
113
+ return curPropsState || (curPropsState = {}), curPropsState;
114
+ },
108
115
  classNames,
109
116
  conf,
110
117
  props,
@@ -128,15 +135,18 @@ var getSplitStyles = function(props, staticConfig, theme, themeName, componentSt
128
135
  styleState,
129
136
  theme: _object_spread({}, theme)
130
137
  }), console.groupEnd());
138
+ 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;
131
139
  for (var keyOg in props) {
132
- var _parentStaticConfig_variants, keyInit = keyOg, valInit = props[keyOg];
133
- if (staticConfig.accept && (staticConfig.accept[keyInit] === "style" || staticConfig.accept[keyInit] === "textStyle") && typeof valInit == "object") {
134
- var styleObject = getSubStyle(styleState, keyInit, valInit, styleProps.noClassNames);
135
- viewProps[keyInit] = styleObject;
136
- continue;
140
+ var keyInit = keyOg, valInit = props[keyInit];
141
+ if (accept) {
142
+ var accepted = accept[keyInit];
143
+ if ((accepted === "style" || accepted === "textStyle") && valInit && typeof valInit == "object") {
144
+ viewProps[keyInit] = getSubStyle(styleState, keyInit, valInit, styleProps.noClassNames);
145
+ continue;
146
+ }
137
147
  }
138
- if (process.env.NODE_ENV === "development" && debug === "verbose" && console.groupEnd(), styleProps.disableExpandShorthands || keyInit in shorthands && (keyInit = shorthands[keyInit]), keyInit !== "className" && !(keyInit in usedKeys)) {
139
- if (keyInit in skipProps && !styleProps.noSkip && !isHOC) {
148
+ if (process.env.NODE_ENV === "development" && debug === "verbose" && console.groupEnd(), disableExpandShorthands || keyInit in shorthands && (keyInit = shorthands[keyInit]), keyInit !== "className" && !(keyInit in usedKeys)) {
149
+ if (keyInit in skipProps && !noSkip && !isHOC) {
140
150
  if (keyInit === "group" && 0)
141
151
  var identifier, containerType, containerCSS;
142
152
  continue;
@@ -147,7 +157,7 @@ var getSplitStyles = function(props, staticConfig, theme, themeName, componentSt
147
157
  if ((isValidClassName || isMediaOrPseudo) && !shouldDoClasses)
148
158
  var _styleState;
149
159
  }
150
- if (valInit !== props[keyInit] && (styleState.curProps[keyInit] = valInit), !isValidStyleKeyInit) {
160
+ if (!isValidStyleKeyInit) {
151
161
  if (!isAndroid && keyInit === "elevationAndroid")
152
162
  continue;
153
163
  if (keyInit === "userSelect")
@@ -160,17 +170,17 @@ var getSplitStyles = function(props, staticConfig, theme, themeName, componentSt
160
170
  viewProps["data-".concat(hyphenate(keyInit1))] = valInit[keyInit1];
161
171
  continue;
162
172
  }
163
- if (0 && !styleProps.noExpand)
173
+ if (0 && !noExpand)
164
174
  var didUseKeyInit;
165
175
  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);
166
176
  if (isMediaOrPseudo1 && keyInit.startsWith("$group-")) {
167
177
  var name = keyInit.split("-")[1];
168
178
  context != null && context.groups.subscribe && !(context != null && context.groups.state[name]) && (keyInit = keyInit.replace("$group-", "$group-true-"));
169
179
  }
170
- var isStyleProp = isValidStyleKeyInit || isMediaOrPseudo1 || isVariant && !styleProps.noExpand || isShorthand;
171
- if (!(isStyleProp && (props.asChild === "except-style" || props.asChild === "except-style-web"))) {
180
+ var isStyleProp = isValidStyleKeyInit || isMediaOrPseudo1 || isVariant && !noExpand || isShorthand;
181
+ if (!(isStyleProp && (asChild === "except-style" || asChild === "except-style-web"))) {
172
182
  var shouldPassProp = !isStyleProp || // is in parent variants
173
- 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 skipProps)), shouldPassThrough = shouldPassProp || isHOCShouldPassThrough;
183
+ 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;
174
184
  if (process.env.NODE_ENV === "development" && debug === "verbose" && (console.groupEnd(), console.groupEnd(), console.groupCollapsed(" \u{1F511} ".concat(keyOg).concat(keyInit !== keyOg ? " (shorthand for ".concat(keyInit, ")") : "", " ").concat(shouldPassThrough ? "(pass)" : "")), log({
175
185
  isVariant,
176
186
  valInit,
@@ -186,7 +196,7 @@ var getSplitStyles = function(props, staticConfig, theme, themeName, componentSt
186
196
  process.env.NODE_ENV === "development" && debug === "verbose" && console.groupEnd();
187
197
  continue;
188
198
  }
189
- if (!styleProps.noSkip && keyInit in skipProps) {
199
+ if (!noSkip && keyInit in skipProps) {
190
200
  process.env.NODE_ENV === "development" && debug === "verbose" && console.groupEnd();
191
201
  continue;
192
202
  }
@@ -219,17 +229,17 @@ current`, _object_spread({}, styleState.style)));
219
229
  console.groupEnd();
220
230
  }
221
231
  for (var key = keyInit, val = valInit, max = expanded ? expanded.length : 1, i = 0; i < max; i++) {
222
- var _parentStaticConfig_variants1;
232
+ var _parentStaticConfig_variants;
223
233
  if (expanded) {
224
234
  var _expanded_i = _sliced_to_array(expanded[i], 2), k = _expanded_i[0], v = _expanded_i[1];
225
235
  key = k, val = v;
226
236
  }
227
237
  if (val != null && !(key in usedKeys)) {
228
- if (isPseudo = key in validPseudoKeys, isMedia = !isPseudo && !isValidStyleKeyInit && isMediaKey(key), isMediaOrPseudo1 = !!(isMedia || isPseudo), isVariant = variants && key in variants, inlineProps != null && inlineProps.has(key) || IS_STATIC && (inlineWhenUnflattened != null && inlineWhenUnflattened.has(key))) {
238
+ 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))) {
229
239
  var _props_key;
230
240
  viewProps[key] = (_props_key = props[key]) !== null && _props_key !== void 0 ? _props_key : val;
231
241
  }
232
- var shouldPassThrough1 = styleProps.noExpand && isPseudo || isHOC && (isMediaOrPseudo1 || (parentStaticConfig == null || (_parentStaticConfig_variants1 = parentStaticConfig.variants) === null || _parentStaticConfig_variants1 === void 0 ? void 0 : _parentStaticConfig_variants1[keyInit]));
242
+ var shouldPassThrough1 = styleProps.noExpand && isPseudo || isHOC && (isMediaOrPseudo1 || (parentStaticConfig == null || (_parentStaticConfig_variants = parentStaticConfig.variants) === null || _parentStaticConfig_variants === void 0 ? void 0 : _parentStaticConfig_variants[keyInit]));
233
243
  if (shouldPassThrough1) {
234
244
  passDownProp(viewProps, key, val, isMediaOrPseudo1), process.env.NODE_ENV === "development" && debug === "verbose" && (console.groupCollapsed(" - passing down prop ".concat(key)), log({
235
245
  val,
@@ -242,9 +252,9 @@ current`, _object_spread({}, styleState.style)));
242
252
  var pseudoStyleObject = getSubStyle(styleState, key, val, styleProps.noClassNames), descriptor = pseudoDescriptors[key], isEnter = key === "enterStyle", isExit = key === "exitStyle";
243
253
  if (!descriptor)
244
254
  continue;
245
- if (!shouldDoClasses || IS_STATIC) {
255
+ if (!shouldDoClasses || process.env.IS_STATIC === "is_static") {
246
256
  var _pseudos, _key;
247
- if (pseudos || (pseudos = {}), (_pseudos = pseudos)[_key = key] || (_pseudos[_key] = {}), IS_STATIC) {
257
+ if (pseudos || (pseudos = {}), (_pseudos = pseudos)[_key = key] || (_pseudos[_key] = {}), process.env.IS_STATIC === "is_static") {
248
258
  Object.assign(pseudos[key], pseudoStyleObject);
249
259
  continue;
250
260
  }
@@ -258,8 +268,8 @@ current`, _object_spread({}, styleState.style)));
258
268
  var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
259
269
  try {
260
270
  for (var _iterator = pseudoStyles[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
261
- var psuedoStyle = _step.value, fullKey = "".concat(psuedoStyle.property).concat(PROP_SPLIT).concat(descriptor.name);
262
- fullKey in usedKeys || mergeClassName(transforms, classNames, fullKey, psuedoStyle.identifier, isMediaOrPseudo1, !0);
271
+ var psuedoStyle = _step.value, fullKey = "".concat(psuedoStyle[StyleObjectProperty]).concat(PROP_SPLIT).concat(descriptor.name);
272
+ fullKey in usedKeys || mergeClassName(transforms, classNames, fullKey, psuedoStyle[StyleObjectIdentifier], isMediaOrPseudo1, !0);
263
273
  }
264
274
  } catch (err) {
265
275
  _didIteratorError = !0, _iteratorError = err;
@@ -312,7 +322,8 @@ current`, _object_spread({}, styleState.style)));
312
322
  }
313
323
  if (isMedia) {
314
324
  if (!val) continue;
315
- if (isMedia === "platform") {
325
+ var hasSpace = val.space, mediaKeyShort = key.slice(1);
326
+ if (hasMedia || (hasMedia = !0), (hasSpace || !shouldDoClasses || styleProps.willBeAnimated) && (Array.isArray(hasMedia) || (hasMedia = []), hasMedia.push(mediaKeyShort)), isMedia === "platform") {
316
327
  var platform = key.slice(10);
317
328
  if (
318
329
  // supports web, ios, android
@@ -321,18 +332,15 @@ current`, _object_spread({}, styleState.style)));
321
332
  )
322
333
  continue;
323
334
  }
324
- hasMedia || (hasMedia = !0);
325
- var mediaKeyShort = key.slice(1);
326
- process.env.NODE_ENV === "development" && debug === "verbose" && log(" \u{1F4FA} ".concat(key), {
335
+ if (process.env.NODE_ENV === "development" && debug === "verbose" && log(" \u{1F4FA} ".concat(key), {
327
336
  key,
328
337
  val,
329
338
  props,
330
339
  shouldDoClasses,
331
340
  acceptsClassName,
332
- componentState
333
- });
334
- var hasSpace = val.space;
335
- if ((hasSpace || !shouldDoClasses) && (Array.isArray(hasMedia) || (hasMedia = []), hasMedia.push(mediaKeyShort)), shouldDoClasses) {
341
+ componentState,
342
+ mediaState
343
+ }), shouldDoClasses) {
336
344
  var mediaStyle = getSubStyle(styleState, key, val, !1);
337
345
  if (hasSpace && (delete mediaStyle.space, mediaState[mediaKeyShort])) {
338
346
  var importance1 = getMediaImportanceIfMoreImportant(mediaKeyShort, "space", usedKeys, !0);
@@ -345,8 +353,8 @@ current`, _object_spread({}, styleState.style)));
345
353
  for (var _iterator1 = mediaStyles[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = !0) {
346
354
  var style = _step1.value, out = createMediaStyle(style, mediaKeyShort, mediaQueryConfig, isMedia, !1, priority);
347
355
  process.env.NODE_ENV === "development" && debug === "verbose" && log("\u{1F4FA} media style:", out);
348
- var fullKey1 = "".concat(style.property).concat(PROP_SPLIT).concat(mediaKeyShort).concat(style.pseudo || "");
349
- fullKey1 in usedKeys || mergeClassName(transforms, classNames, fullKey1, out.identifier, !0, !0);
356
+ var fullKey1 = "".concat(style[StyleObjectProperty]).concat(PROP_SPLIT).concat(mediaKeyShort).concat(style[StyleObjectPseudo] || "");
357
+ fullKey1 in usedKeys || mergeClassName(transforms, classNames, fullKey1, out[StyleObjectIdentifier], !0, !0);
350
358
  }
351
359
  } catch (err) {
352
360
  _didIteratorError1 = !0, _iteratorError1 = err;
@@ -359,10 +367,15 @@ current`, _object_spread({}, styleState.style)));
359
367
  }
360
368
  }
361
369
  } else {
362
- var mediaStyle1 = getSubStyle(styleState, key, val, !0), isThemeMedia = isMedia === "theme", isGroupMedia = isMedia === "group", isPlatformMedia = isMedia === "platform";
363
- if (!isThemeMedia && !isPlatformMedia && !isGroupMedia && !mediaState[mediaKeyShort])
364
- continue;
365
- var importanceBump = 0;
370
+ var isThemeMedia = isMedia === "theme", isGroupMedia = isMedia === "group", isPlatformMedia = isMedia === "platform";
371
+ if (!isThemeMedia && !isPlatformMedia && !isGroupMedia) {
372
+ if (!mediaState[mediaKeyShort]) {
373
+ process.env.NODE_ENV === "development" && debug === "verbose" && log(" \u{1F4FA} \u274C DISABLED ".concat(mediaKeyShort));
374
+ continue;
375
+ }
376
+ process.env.NODE_ENV === "development" && debug === "verbose" && log(" \u{1F4FA} \u2705 ENABLED ".concat(mediaKeyShort));
377
+ }
378
+ var mediaStyle1 = getSubStyle(styleState, key, val, !0), importanceBump = 0;
366
379
  if (isThemeMedia) {
367
380
  dynamicThemeAccess = !0;
368
381
  var mediaThemeName = mediaKeyShort.slice(6);
@@ -428,7 +441,7 @@ current`, _object_spread({}, styleState.style)));
428
441
  }
429
442
  var avoidNormalize = styleProps.noNormalize === !1;
430
443
  if (!avoidNormalize) {
431
- if (styleState.style && (fixStyles(styleState.style), isWeb && !staticConfig.isReactNative && styleToCSS(styleState.style)), styleState.flatTransforms) {
444
+ if (styleState.style && (fixStyles(styleState.style), isWeb && !isReactNative && styleToCSS(styleState.style)), styleState.flatTransforms) {
432
445
  var _styleState2;
433
446
  (_styleState2 = styleState).style || (_styleState2.style = {}), Object.entries(styleState.flatTransforms).sort(function(param, param1) {
434
447
  var _param = _sliced_to_array(param, 1), a = _param[0], _param1 = _sliced_to_array(param1, 1), b = _param1[0];
@@ -458,7 +471,7 @@ current`, _object_spread({}, styleState.style)));
458
471
  var atomic, _iteratorNormalCompletion2, _didIteratorError2, _iteratorError2;
459
472
  try {
460
473
  for (var _iterator2, _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = !0)
461
- var atomicStyle, _props_animateOnly, key4, isAnimatedAndAnimateOnly, nonAnimatedAnimateOnly;
474
+ var atomicStyle, _props_animateOnly, _atomicStyle, key4, value, identifier1, isAnimatedAndAnimateOnly, nonAnimatedAnimateOnly;
462
475
  } catch (err) {
463
476
  } finally {
464
477
  try {
@@ -468,8 +481,8 @@ current`, _object_spread({}, styleState.style)));
468
481
  }
469
482
  if (transforms)
470
483
  for (var namespace in transforms) {
471
- var _transforms_namespace, hash, val3, identifier1;
472
- if (isClient && !insertedTransforms[identifier1])
484
+ var _transforms_namespace, hash, val3, identifier2;
485
+ if (isClient && !insertedTransforms[identifier2])
473
486
  var rule;
474
487
  }
475
488
  }
@@ -512,7 +525,7 @@ current`, _object_spread({}, styleState.style)));
512
525
  dynamicThemeAccess,
513
526
  pseudoGroups,
514
527
  mediaGroups
515
- }, asChild = props.asChild, asChildExceptStyleLike = asChild === "except-style" || asChild === "except-style-web";
528
+ }, asChildExceptStyleLike = asChild === "except-style" || asChild === "except-style-web";
516
529
  if (!asChildExceptStyleLike) {
517
530
  var style3 = styleState.style;
518
531
  if (0) {