@tamagui/web 3.0.0-beta.653.1 → 3.0.0-beta.655.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 (31) hide show
  1. package/dist/cjs/helpers/directStyle.cjs +2 -1
  2. package/dist/cjs/helpers/directStyle.native.cjs +3 -2
  3. package/dist/cjs/helpers/directStyle.native.js +3 -2
  4. package/dist/cjs/helpers/directStyle.native.js.map +1 -1
  5. package/dist/cjs/helpers/getSplitStyles.cjs +0 -12
  6. package/dist/cjs/helpers/getSplitStyles.native.cjs +35 -35
  7. package/dist/cjs/helpers/getSplitStyles.native.js +35 -35
  8. package/dist/cjs/helpers/getSplitStyles.native.js.map +1 -1
  9. package/dist/cjs/helpers/registerCSSVariable.cjs +7 -15
  10. package/dist/cjs/helpers/registerCSSVariable.native.cjs +7 -15
  11. package/dist/cjs/helpers/registerCSSVariable.native.js +7 -15
  12. package/dist/cjs/helpers/registerCSSVariable.native.js.map +1 -1
  13. package/dist/esm/helpers/directStyle.mjs +3 -2
  14. package/dist/esm/helpers/directStyle.mjs.map +1 -1
  15. package/dist/esm/helpers/directStyle.native.js +4 -3
  16. package/dist/esm/helpers/directStyle.native.js.map +1 -1
  17. package/dist/esm/helpers/getSplitStyles.mjs +3 -15
  18. package/dist/esm/helpers/getSplitStyles.mjs.map +1 -1
  19. package/dist/esm/helpers/getSplitStyles.native.js +35 -35
  20. package/dist/esm/helpers/getSplitStyles.native.js.map +1 -1
  21. package/dist/esm/helpers/registerCSSVariable.mjs +7 -15
  22. package/dist/esm/helpers/registerCSSVariable.mjs.map +1 -1
  23. package/dist/esm/helpers/registerCSSVariable.native.js +7 -15
  24. package/dist/esm/helpers/registerCSSVariable.native.js.map +1 -1
  25. package/package.json +15 -15
  26. package/src/helpers/directStyle.ts +12 -4
  27. package/src/helpers/getSplitStyles.tsx +1 -38
  28. package/src/helpers/registerCSSVariable.ts +7 -29
  29. package/types/helpers/directStyle.d.ts.map +1 -1
  30. package/types/helpers/getSplitStyles.d.ts.map +1 -1
  31. package/types/helpers/registerCSSVariable.d.ts.map +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"getSplitStyles.js","names":[],"sources":["esm/helpers/getSplitStyles.js"],"sourcesContent":["import { isClient, isWeb, useIsomorphicLayoutEffect } from \"@tamagui/constants\";\nimport { StyleObjectIdentifier, StyleObjectProperty, StyleObjectRules, nonAnimatableStyleProps, stylePropsAll, stylePropsText, stylePropsTransform, validStyles } from \"@tamagui/helpers\";\nimport React from \"react\";\nimport { STYLE_FRONTEND_PASSTHROUGH_PREFIX, STYLE_FRONTEND_PREPROCESSED } from \"./styleFrontend\";\nimport { getConfig } from \"../config\";\nimport { isDevTools } from \"../constants/isDevTools\";\nimport { mediaState } from \"./mediaState\";\nimport { fixStyles } from \"./expandStyles\";\nimport { getCSSStyleAtomic, styleToCSS } from \"./getCSSStylesAtomic\";\nimport { getDefaultProps } from \"./getDefaultProps\";\nimport { insertStyleRules, shouldInsertStyleRules, updateRules } from \"./insertStyleRule\";\nimport { isPlainObject } from \"./isObj\";\nimport { log } from \"./log\";\nimport { normalizeValueWithProperty } from \"./normalizeValueWithProperty\";\nimport { appendFlatClause, propMapper } from \"./propMapper\";\nimport { clearDirectStyle, contributeStyleValue, contributeVariantClauseValue, directStyleSignature, flushDirectStyles, getDirectDynamicThemeAccess } from \"./directStyle\";\nimport { contributeFrontendProgram, isFrontendProgram } from \"./frontendProgram\";\nimport { skipProps } from \"./skipProps\";\nimport { sortString } from \"./sortString\";\nimport { styleOriginalValues } from \"./styleOriginalValues\";\nimport { STYLE_TOKEN_PROVENANCE_KEY, getStyleTokenProvenance, setStyleTokenProvenance } from \"./styleProvenance\";\nimport { transformsToString } from \"./transformsToString\";\n\nconst shouldTrackStyleTokenProvenance = process.env.NODE_ENV === \"development\" && process.env.TAMAGUI_ENABLE_STYLE_TOKEN_PROVENANCE === \"1\";\nconst validComponentClassName = /^[A-Za-z_][A-Za-z0-9_-]*$/;\nfunction compoundMatcherMatches(expected, actual) {\n\tif (Array.isArray(expected)) return expected.some((value) => Object.is(value, actual));\n\treturn Object.is(expected, actual);\n}\nfunction compoundVariantMatches(compoundVariant, props) {\n\tfor (const key in compoundVariant) {\n\t\tif (key === \"style\") continue;\n\t\tif (!compoundMatcherMatches(compoundVariant[key], props[key])) return false;\n\t}\n\treturn true;\n}\nconst styledDefaultsCache = /* @__PURE__ */ new WeakMap();\nfunction getStyledDefaults(staticConfig) {\n\tlet entries = styledDefaultsCache.get(staticConfig);\n\tif (entries === void 0) {\n\t\tentries = null;\n\t\tconst defaults = staticConfig.defaultProps;\n\t\tif (defaults) for (const key in defaults) (entries ||= []).push([key, defaults[key]]);\n\t\tstyledDefaultsCache.set(staticConfig, entries);\n\t}\n\treturn entries;\n}\nfunction contributeDisplacedStyledDefaults(styledDefaults, processedProps, shorthands, contribute) {\n\tif (!styledDefaults) return;\n\tfor (let index = 0; index < styledDefaults.length; index++) {\n\t\tconst key = styledDefaults[index][0];\n\t\tconst styledValue = styledDefaults[index][1];\n\t\tconst propValue = processedProps[key];\n\t\tif (!(key in stylePropsAll) && !(key in shorthands)) continue;\n\t\tif (propValue !== void 0 && propValue !== styledValue && (typeof styledValue === \"string\" && styledValue.includes(\":\") || typeof propValue === \"string\" && propValue.includes(\":\"))) contribute(key, styledValue);\n\t}\n}\nfunction forEachPropInForwardOrder(processedProps, staticConfig, shorthands, contribute) {\n\tconst processedBaseStyle = staticConfig.baseStyle;\n\tconst compoundVariants = staticConfig.compoundVariants;\n\tconst styledDefaults = getStyledDefaults(staticConfig);\n\tif (!compoundVariants?.length) {\n\t\tif (processedBaseStyle) for (const key in processedBaseStyle) contribute(key, processedBaseStyle[key]);\n\t\tcontributeDisplacedStyledDefaults(styledDefaults, processedProps, shorthands, contribute);\n\t\tfor (const key in processedProps) contribute(key, processedProps[key]);\n\t\treturn;\n\t}\n\tconst propEntries = Object.entries(processedProps);\n\tconst orderedEntries = processedBaseStyle ? Object.entries(processedBaseStyle) : [];\n\tcontributeDisplacedStyledDefaults(styledDefaults, processedProps, shorthands, (k, v) => orderedEntries.push([k, v]));\n\tconst compoundsByAnchor = /* @__PURE__ */ new Map();\n\tfor (const compoundVariant of compoundVariants) {\n\t\tif (!compoundVariantMatches(compoundVariant, processedProps)) continue;\n\t\tconst { style } = compoundVariant;\n\t\tif (!isPlainObject(style)) continue;\n\t\tlet anchor = -1;\n\t\tfor (const selectorKey in compoundVariant) {\n\t\t\tif (selectorKey === \"style\") continue;\n\t\t\tfor (let index = propEntries.length - 1; index >= 0; index--) if (propEntries[index][0] === selectorKey) {\n\t\t\t\tanchor = Math.max(anchor, index);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tconst entries = compoundsByAnchor.get(anchor) || [];\n\t\tfor (const key in style) entries.push([key, style[key]]);\n\t\tcompoundsByAnchor.set(anchor, entries);\n\t}\n\tfor (let index = 0; index < orderedEntries.length; index++) contribute(orderedEntries[index][0], orderedEntries[index][1]);\n\tconst beforeProps = compoundsByAnchor.get(-1);\n\tif (beforeProps) for (let index = 0; index < beforeProps.length; index++) contribute(beforeProps[index][0], beforeProps[index][1]);\n\tfor (let index = 0; index < propEntries.length; index++) {\n\t\tcontribute(propEntries[index][0], propEntries[index][1]);\n\t\tconst compounds = compoundsByAnchor.get(index);\n\t\tif (compounds) for (let i = 0; i < compounds.length; i++) contribute(compounds[i][0], compounds[i][1]);\n\t}\n}\nfunction isValidStyleKey(key, validStyles, accept) {\n\treturn Boolean(key in validStyles || isWeb && (key === \"transitionProperty\" || key === \"transitionDuration\" || key === \"transitionTimingFunction\" || key === \"transitionDelay\" || key === \"transitionBehavior\") || accept && key in accept);\n}\nconst getSplitStyles = (props, staticConfig, theme, themeName, componentState, styleProps, parentSplitStyles, componentContext, groupContext, elementType, startedUnhydrated, debug, animationDriver) => {\n\tconst conf = getConfig();\n\tif (staticConfig.styleFrontend?.normalizeStaticConfig) staticConfig = staticConfig.styleFrontend.normalizeStaticConfig(staticConfig, conf);\n\tconst driver = animationDriver || componentContext?.animationDriver || conf.animations;\n\tconst resolvedDriver = driver?.isStub ? null : driver;\n\tif (props.passThrough) return null;\n\tif (isWeb && styleProps.isAnimated && driver?.isReactNative && !styleProps.noNormalize) styleProps.noNormalize = \"values\";\n\tconst { shorthands } = conf;\n\tconst { isHOC, isText, isInput, variants, isReactNative, inlineProps, parentStaticConfig, acceptsClassName } = staticConfig;\n\tconst viewProps = {};\n\tconst mediaState$1 = styleProps.mediaState || mediaState;\n\tlet shouldDoClasses = acceptsClassName && isWeb && !styleProps.noClass;\n\tconst rulesToInsert = {};\n\tconst classNames = {};\n\tprops.space;\n\tlet hasMedia = false;\n\tlet pseudoGroups;\n\tlet mediaGroups;\n\tlet className = staticConfig.passthroughClassName || \"\";\n\tif (className) shouldDoClasses = false;\n\tconst validStyles$1 = staticConfig.validStyles || (staticConfig.isText || staticConfig.isInput ? stylePropsText : validStyles);\n\tif (process.env.NODE_ENV === \"development\" && (debug === \"profile\" || globalThis.time)) time`split-styles-setup`;\n\tconst styleState = {\n\t\tclassNames,\n\t\tconf,\n\t\tprops,\n\t\tstyleProps,\n\t\tcomponentState,\n\t\tstaticConfig,\n\t\tstyle: null,\n\t\ttheme,\n\t\tviewProps,\n\t\tcontext: componentContext,\n\t\tdebug,\n\t\tflatRulesToInsert: rulesToInsert,\n\t\tflatShouldDoClasses: shouldDoClasses,\n\t\tflatThemeName: themeName,\n\t\tflatMediaState: mediaState$1,\n\t\tflatGroupContext: groupContext,\n\t\tanimationDriver: resolvedDriver\n\t};\n\tif (process.env.IS_STATIC === \"is_static\") {\n\t\tconst { fallbackProps } = styleProps;\n\t\tif (fallbackProps) styleState.props = new Proxy(props, { get(_, key, val) {\n\t\t\tif (!Reflect.has(props, key)) return Reflect.get(fallbackProps, key);\n\t\t\treturn Reflect.get(props, key);\n\t\t} });\n\t}\n\tif (process.env.NODE_ENV === \"development\" && (debug === \"profile\" || globalThis.time)) time`style-state`;\n\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\" && isClient) {\n\t\tif (isDevTools) {\n\t\t\tconsole.groupCollapsed(\"🔹 getSplitStyles 👇\");\n\t\t\tlog({\n\t\t\t\tprops,\n\t\t\t\tstaticConfig,\n\t\t\t\tshouldDoClasses,\n\t\t\t\tstyleProps,\n\t\t\t\trulesToInsert,\n\t\t\t\tcomponentState,\n\t\t\t\tstyleState,\n\t\t\t\ttheme: { ...theme }\n\t\t\t});\n\t\t}\n\t}\n\tconst { asChild } = props;\n\tconst { accept, neverSkipProps } = staticConfig;\n\tconst { noSkip, disableExpandShorthands, noExpand, styledContext } = styleProps;\n\tlet processedProps;\n\tconst styleFrontend = staticConfig.styleFrontend;\n\tif (styleFrontend && !props[STYLE_FRONTEND_PREPROCESSED]) processedProps = styleFrontend.preprocessProps(props, conf);\n\telse processedProps = props;\n\tconst { webContainerType } = conf.settings;\n\tconst parentVariants = parentStaticConfig?.variants;\n\tconst mergeStylePropAtCurrentPosition = (styleProp) => {\n\t\tif (styleProps.noMergeStyle || !styleProp) return;\n\t\tif (isHOC) {\n\t\t\tviewProps.style = normalizeStyle(styleProp);\n\t\t\treturn;\n\t\t}\n\t\tconst isArray = Array.isArray(styleProp);\n\t\tconst length = isArray ? styleProp.length : 1;\n\t\tfor (let index = 0; index < length; index++) {\n\t\t\tconst style = isArray ? styleProp[index] : styleProp;\n\t\t\tif (!style) continue;\n\t\t\tif (style[\"$$css\"]) {\n\t\t\t\tfor (const key in style) clearDirectStyle(styleState, key);\n\t\t\t\tObject.assign(styleState.classNames, style);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tconst normalized = normalizeStyle(style);\n\t\t\tconst styleOriginals = shouldTrackStyleTokenProvenance ? styleOriginalValues.get(style) : void 0;\n\t\t\tfor (const key in normalized) {\n\t\t\t\tif (normalized[key] == null) continue;\n\t\t\t\tcontributeStyleValue(styleState, key, normalized[key], mergeStyle, styleOriginals?.[key]);\n\t\t\t}\n\t\t}\n\t};\n\tconst flushForwardStylesToClasses = () => {\n\t\tif (!shouldDoClasses) return;\n\t\tflushDirectStyles(styleState, true);\n\t};\n\tconst contributeProp = (keyOg, valOg) => {\n\t\tlet keyInit = keyOg;\n\t\tlet valInit = valOg;\n\t\tif (styleFrontend && keyInit.startsWith(STYLE_FRONTEND_PASSTHROUGH_PREFIX)) keyInit = \"className\";\n\t\tif (keyInit === \"children\") {\n\t\t\tviewProps[keyInit] = valInit;\n\t\t\treturn;\n\t\t}\n\t\tif (keyInit === \"ref\") return;\n\t\tif (process.env.NODE_ENV === \"development\" && (debug === \"profile\" || globalThis.time)) time`before-prop-${keyInit}`;\n\t\tif (process.env.NODE_ENV === \"test\" && keyInit === \"jestAnimatedStyle\") return;\n\t\tif (accept) {\n\t\t\tconst accepted = accept[keyInit];\n\t\t\tif ((accepted === \"style\" || accepted === \"textStyle\") && valInit && typeof valInit === \"object\") {\n\t\t\t\tviewProps[keyInit] = getSubStyle(styleState, keyInit, valInit, styleProps.noClass);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tif (!disableExpandShorthands) {\n\t\t\tif (keyInit in shorthands) keyInit = shorthands[keyInit];\n\t\t}\n\t\tif (keyInit === \"className\") {\n\t\t\tif (typeof valInit === \"string\" && valInit) {\n\t\t\t\tclassName = `${className} ${valInit}`.trim();\n\t\t\t\tif (styleFrontend) {\n\t\t\t\t\tflushForwardStylesToClasses();\n\t\t\t\t\tshouldDoClasses = false;\n\t\t\t\t\tstyleState.flatShouldDoClasses = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\tif (keyInit === \"style\") {\n\t\t\tmergeStylePropAtCurrentPosition(valInit);\n\t\t\treturn;\n\t\t}\n\t\tif (asChild) {\n\t\t\tconst defaults = getDefaultProps(staticConfig);\n\t\t\tif (defaults) {\n\t\t\t\tconst defaultVal = defaults[keyOg] ?? defaults[keyInit];\n\t\t\t\tif (defaultVal !== void 0 && valInit === defaultVal) return;\n\t\t\t}\n\t\t}\n\t\tif (keyInit in skipProps && !noSkip && !isHOC && !neverSkipProps?.[keyInit]) {\n\t\t\tif (keyInit === \"group\") {\n\t\t\t\tconst identifier = `t_group_${valInit}`;\n\t\t\t\taddStyleToInsertRules(rulesToInsert, [\n\t\t\t\t\t\"container\",\n\t\t\t\t\tvoid 0,\n\t\t\t\t\tidentifier,\n\t\t\t\t\tvoid 0,\n\t\t\t\t\t[`.${identifier} { container-name: ${valInit}; container-type: ${webContainerType || \"inline-size\"}; }`]\n\t\t\t\t]);\n\t\t\t}\n\t\t\tif (keyInit === \"container\" && valInit) addStyleToInsertRules(rulesToInsert, [\n\t\t\t\t\"container\",\n\t\t\t\tvoid 0,\n\t\t\t\t\"t_container\",\n\t\t\t\tvoid 0,\n\t\t\t\t[`.t_container { container-type: ${webContainerType || \"inline-size\"}; }`]\n\t\t\t]);\n\t\t\tif (keyInit === \"transition\" && typeof valInit === \"string\") {\n\t\t\t\tconst animationConfig = driver?.animations?.[valInit];\n\t\t\t\tif (animationConfig && driver?.outputStyle === \"css\" && process.env.IS_STATIC === \"is_static\") valInit = `all ${animationConfig}`;\n\t\t\t\telse if (animationConfig) return;\n\t\t\t} else return;\n\t\t}\n\t\tif (isFrontendProgram(valInit)) {\n\t\t\tif (isValidStyleKey(valInit.property, validStyles$1, accept)) contributeFrontendProgram(styleState, valInit, mergeStyle);\n\t\t\telse if (process.env.NODE_ENV === \"development\") console.warn(`[tamagui] \"${valInit.property}\" is not a valid style on this component; the frontend value is dropped.`);\n\t\t\treturn;\n\t\t}\n\t\tlet isValidStyleKeyInit = isValidStyleKey(keyInit, validStyles$1, accept);\n\t\tif (isWeb) {\n\t\t\tif ((staticConfig.isReactNative || styleProps.isAnimated && driver?.isReactNative && !driver.View?.acceptRenderProp) && keyInit.startsWith(\"data-\")) {\n\t\t\t\tkeyInit = keyInit.replace(\"data-\", \"\");\n\t\t\t\tviewProps[\"dataSet\"] ||= {};\n\t\t\t\tviewProps[\"dataSet\"][keyInit] = valInit;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (keyInit.startsWith(\"data-\")) {\n\t\t\t\tviewProps[keyInit] = valInit;\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tif (!noExpand) {\n\t\t\tif (keyInit === \"disabled\" && valInit === true) {\n\t\t\t\tviewProps[\"aria-disabled\"] = true;\n\t\t\t\tif (isInput || elementType === \"button\" || elementType === \"form\" || elementType === \"input\" || elementType === \"select\" || elementType === \"textarea\") viewProps.disabled = true;\n\t\t\t\tif (!variants?.disabled) return;\n\t\t\t}\n\t\t\tif (keyInit === \"testID\") {\n\t\t\t\tif (isReactNative) viewProps.testID = valInit;\n\t\t\t\telse {\n\t\t\t\t\tviewProps[\"data-testid\"] = valInit;\n\t\t\t\t\tif ((styleProps.isAnimated || staticConfig.isHOC) && driver?.isReactNative) viewProps.testID = valInit;\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (keyInit === \"id\") {\n\t\t\t\tviewProps.id = valInit;\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tlet isVariant = !isValidStyleKeyInit && variants && keyInit in variants;\n\t\tconst isStyleLikeKey = isValidStyleKeyInit || isVariant;\n\t\tconst isStyleProp = isValidStyleKeyInit || isVariant && !noExpand;\n\t\tif (isStyleProp && (asChild === \"except-style\" || asChild === \"except-style-web\")) return;\n\t\tconst shouldPassProp = !isStyleProp && isHOC || isHOC && parentVariants && keyInit in parentVariants || inlineProps?.has(keyInit);\n\t\tconst parentVariant = parentVariants?.[keyInit];\n\t\tconst isHOCShouldPassThrough = Boolean(isHOC && (isValidStyleKeyInit || parentVariant || keyInit in skipProps));\n\t\tconst shouldPassThrough = shouldPassProp || isHOCShouldPassThrough;\n\t\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\") {\n\t\t\tconsole.groupCollapsed(` \\u{1F511} ${keyOg}${keyInit !== keyOg ? ` (shorthand for ${keyInit})` : \"\"} ${shouldPassThrough ? \"(pass)\" : \"\"}`);\n\t\t\tlog({\n\t\t\t\tisVariant,\n\t\t\t\tvalInit,\n\t\t\t\tshouldPassProp\n\t\t\t});\n\t\t\tif (isClient) log({\n\t\t\t\tvariants,\n\t\t\t\tvariant: variants?.[keyInit],\n\t\t\t\tisVariant,\n\t\t\t\tisHOCShouldPassThrough,\n\t\t\t\tparentStaticConfig\n\t\t\t});\n\t\t}\n\t\tif (shouldPassThrough) {\n\t\t\tpassDownProp(viewProps, keyInit, valInit);\n\t\t\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\") console.groupEnd();\n\t\t\tif (!isVariant) return;\n\t\t}\n\t\tif (!noSkip && !neverSkipProps?.[keyInit]) {\n\t\t\tif (keyInit in skipProps && !(keyInit === \"transition\" && typeof valInit === \"string\" && !driver?.animations?.[valInit])) {\n\t\t\t\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\") console.groupEnd();\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tif (isText || isInput) {\n\t\t\tif (valInit && (keyInit === \"fontFamily\" || keyInit === shorthands[\"fontFamily\"]) && valInit in conf.fontsParsed) styleState.fontFamily = valInit;\n\t\t}\n\t\tconst disablePropMap = !isStyleLikeKey;\n\t\tif (!isHOC && isValidStyleKeyInit && valInit != null && !(variants && keyInit in variants) && !(accept && keyInit in accept) && !(styledContext && keyInit in styledContext)) {\n\t\t\tcontributeStyleValue(styleState, keyInit, valInit, mergeStyle);\n\t\t\treturn;\n\t\t}\n\t\tpropMapper(keyInit, valInit, styleState, disablePropMap, (key, val, originalVal, conditionSource) => {\n\t\t\tconst isStyledContextProp = styledContext && key in styledContext;\n\t\t\tif (key === \"className\") {\n\t\t\t\tif (typeof val === \"string\" && val) className = `${className} ${val}`.trim();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (!isHOC && disablePropMap && !isStyledContextProp) {\n\t\t\t\tif (key in stylePropsAll && !isValidStyleKey(key, validStyles$1, accept)) {\n\t\t\t\t\tif (process.env.NODE_ENV === \"development\") console.warn(`[tamagui] \"${key}\" is a text style prop and this component is not text \\u2014 it would render on neither platform. Use a Text-based component, or html.* for raw web elements.`);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tviewProps[key] = val;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\") {\n\t\t\t\tconsole.groupCollapsed(\" 💠 expanded\", keyInit, \"=>\", key);\n\t\t\t\tlog(val);\n\t\t\t\tconsole.groupEnd();\n\t\t\t}\n\t\t\tif (val == null) return;\n\t\t\tif (accept && key in accept) {\n\t\t\t\tviewProps[key] = val;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tconst isHostStyleKey = !isHOC && isValidStyleKey(key, validStyles$1, accept) || false;\n\t\t\tconst isContextProgramKey = !isHOC && Boolean(isStyledContextProp);\n\t\t\tif (conditionSource !== void 0) {\n\t\t\t\tif (isHostStyleKey || isContextProgramKey) contributeVariantClauseValue(styleState, key, val, conditionSource, mergeStyle, originalVal, !isHostStyleKey);\n\t\t\t\telse if (isHOC) {\n\t\t\t\t\tconst appended = appendFlatClause(viewProps[key], conditionSource, val);\n\t\t\t\t\tif (appended !== void 0) viewProps[key] = appended;\n\t\t\t\t\telse if (process.env.NODE_ENV === \"development\") console.warn(`[tamagui] conditional variant value for \"${key}\" is not string-representable; dropping the clause`);\n\t\t\t\t} else if (process.env.NODE_ENV === \"development\") console.warn(`[tamagui] \"${key}\" is not a valid style on this component; the conditional variant value is dropped.`);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (isHostStyleKey || isContextProgramKey) {\n\t\t\t\tcontributeStyleValue(styleState, key, val, mergeStyle, originalVal, !isHostStyleKey);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tisVariant = variants && key in variants;\n\t\t\tif (inlineProps?.has(key)) viewProps[key] = props[key] ?? val;\n\t\t\tif (isHOC && Boolean(parentStaticConfig?.variants?.[keyInit])) {\n\t\t\t\tpassDownProp(viewProps, key, val);\n\t\t\t\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\") {\n\t\t\t\t\tconsole.groupCollapsed(` - passing down prop ${key}`);\n\t\t\t\t\tlog({\n\t\t\t\t\t\tval,\n\t\t\t\t\t\tafter: { ...viewProps[key] }\n\t\t\t\t\t});\n\t\t\t\t\tconsole.groupEnd();\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (!isVariant) {\n\t\t\t\tif (isStyledContextProp) return;\n\t\t\t\tif (key in stylePropsAll && !isValidStyleKey(key, validStyles$1, accept)) {\n\t\t\t\t\tif (process.env.NODE_ENV === \"development\") console.warn(`[tamagui] \"${key}\" is a text style prop and this component is not text \\u2014 it would render on neither platform. Use a Text-based component, or html.* for raw web elements.`);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tviewProps[key] = val;\n\t\t\t}\n\t\t});\n\t\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\") {\n\t\t\ttry {\n\t\t\t\tlog(` \\u2714\\uFE0F expand complete`, keyInit);\n\t\t\t\tlog(\"style\", { ...styleState.style });\n\t\t\t\tlog(\"viewProps\", { ...viewProps });\n\t\t\t\tlog(\"transforms\", { ...styleState.flatTransforms });\n\t\t\t} catch {}\n\t\t\tconsole.groupEnd();\n\t\t}\n\t};\n\tforEachPropInForwardOrder(processedProps, staticConfig, shorthands, contributeProp);\n\tif (process.env.NODE_ENV === \"development\" && (debug === \"profile\" || globalThis.time)) time`split-styles-propsend`;\n\tconst conditionalStates = styleState.flatStateKeys || null;\n\tconst usesSafeArea = !!styleState.flatUsesSafeArea;\n\tif (styleState.flatMediaKeys?.size) {\n\t\tif (!hasMedia) hasMedia = /* @__PURE__ */ new Set();\n\t\tif (typeof hasMedia !== \"boolean\") for (const key of styleState.flatMediaKeys) hasMedia.add(key);\n\t}\n\tif (styleState.flatGroupKeys?.size) {\n\t\tpseudoGroups ||= /* @__PURE__ */ new Set();\n\t\tfor (const key of styleState.flatGroupKeys) pseudoGroups.add(key);\n\t}\n\tif (styleState.flatGroupMedia?.size) {\n\t\tmediaGroups ||= /* @__PURE__ */ new Set();\n\t\tfor (const key of styleState.flatGroupMedia) mediaGroups.add(key);\n\t}\n\tconst effectiveTransition = styleState.style?.transition;\n\tif (effectiveTransition != null && styleState.style && driver?.outputStyle !== \"css\") delete styleState.style.transition;\n\tif ((styleState.style?.containerName != null || classNames.containerName) && !(styleState.style && \"containerType\" in styleState.style) && !classNames.containerType) contributeStyleValue(styleState, \"containerType\", webContainerType || \"inline-size\", mergeStyle);\n\tif (!(styleProps.noNormalize === false)) {\n\t\tif (styleState.style) {\n\t\t\tfixStyles(styleState.style);\n\t\t\tif (!styleProps.noExpand && !styleProps.noMergeStyle) {\n\t\t\t\tif (isWeb && (isReactNative ? driver?.inputStyle !== \"css\" : true)) styleToCSS(styleState.style);\n\t\t\t}\n\t\t}\n\t\tif (styleState.flatTransforms) {\n\t\t\tstyleState.style ||= {};\n\t\t\tmergeFlatTransforms(styleState.style, styleState.flatTransforms);\n\t\t}\n\t\tif (parentSplitStyles) {\n\t\t\tif (shouldDoClasses) for (const key in parentSplitStyles.classNames) {\n\t\t\t\tconst val = parentSplitStyles.classNames[key];\n\t\t\t\tif (styleState.style && key in styleState.style || key in classNames) continue;\n\t\t\t\tclassNames[key] = val;\n\t\t\t}\n\t\t\tif (!shouldDoClasses) for (const key in parentSplitStyles.style) {\n\t\t\t\tif (key in classNames || styleState.style && key in styleState.style) continue;\n\t\t\t\tstyleState.style ||= {};\n\t\t\t\tstyleState.style[key] = parentSplitStyles.style[key];\n\t\t\t}\n\t\t}\n\t}\n\tif (!styleProps.noNormalize && !staticConfig.isReactNative && !staticConfig.isHOC && (!styleProps.isAnimated || driver?.inputStyle === \"css\") && Array.isArray(styleState.style?.transform)) styleState.style.transform = transformsToString(styleState.style.transform);\n\tflushDirectStyles(styleState);\n\tif (!styleProps.noMergeStyle && styleState.style && !shouldDoClasses && styleProps.isAnimated && !driver?.isReactNative) {\n\t\tif (!styleState.style[\"$$css\"]) {\n\t\t\tfor (const key in styleState.style) if (key in nonAnimatableStyleProps) {\n\t\t\t\tconst atomicStyle = getCSSStyleAtomic(key, styleState.style[key], \"\", void 0, directStyleSignature(key, styleState.style[key]), true);\n\t\t\t\tdelete styleState.style[key];\n\t\t\t\tif (atomicStyle) {\n\t\t\t\t\taddStyleToInsertRules(rulesToInsert, atomicStyle);\n\t\t\t\t\tclassNames[atomicStyle[StyleObjectProperty]] = atomicStyle[StyleObjectIdentifier];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tif (process.env.NODE_ENV === \"development\" && (debug === \"profile\" || globalThis.time)) time`split-styles-pre-result`;\n\tif (shouldTrackStyleTokenProvenance && styleState.style && styleState.tokenProvenance) {\n\t\tconst provenance = {};\n\t\tlet hasProvenance = false;\n\t\tfor (const key in styleState.tokenProvenance) {\n\t\t\tprovenance[key] = {\n\t\t\t\ttoken: styleState.tokenProvenance[key],\n\t\t\t\ttheme: themeName\n\t\t\t};\n\t\t\thasProvenance = true;\n\t\t}\n\t\tif (hasProvenance) setStyleTokenProvenance(styleState.style, provenance);\n\t}\n\tconst result = {\n\t\thasMedia,\n\t\tfontFamily: styleState.fontFamily,\n\t\tviewProps,\n\t\tstyle: styleState.style,\n\t\tclassNames,\n\t\trulesToInsert,\n\t\tpseudoGroups,\n\t\tmediaGroups,\n\t\toverriddenContextProps: styleState.overriddenContextProps\n\t};\n\tif (effectiveTransition != null) result.effectiveTransition = effectiveTransition;\n\tif (conditionalStates) result.programStates = conditionalStates;\n\tif (usesSafeArea) result.usesSafeArea = true;\n\tif (getDirectDynamicThemeAccess(styleState)) result.dynamicThemeAccess = true;\n\tif (styleState.flatEnterKeys || styleState.flatExitKeys) {\n\t\tconst effectiveKeys = (keys) => {\n\t\t\tif (!keys) return;\n\t\t\tconst out = /* @__PURE__ */ new Set();\n\t\t\tfor (const key of keys) out.add(key === \"--t-x\" || key === \"--t-y\" ? \"translate\" : key === \"--t-scale-x\" || key === \"--t-scale-y\" ? \"scale\" : key);\n\t\t\treturn out;\n\t\t};\n\t\tresult.programLifecycleStyleKeys = {\n\t\t\tenter: effectiveKeys(styleState.flatEnterKeys),\n\t\t\texit: effectiveKeys(styleState.flatExitKeys)\n\t\t};\n\t}\n\tconst asChildExceptStyleLike = asChild === \"except-style\" || asChild === \"except-style-web\";\n\tif (!styleProps.noMergeStyle) {\n\t\tif (!asChildExceptStyleLike) {\n\t\t\tconst style = styleState.style;\n\t\t\t{\n\t\t\t\tconst fontFamily = isText || isInput ? styleState.fontFamily : null;\n\t\t\t\tconst fontFamilyClassName = fontFamily ? `font_${fontFamily}` : \"\";\n\t\t\t\tconst groupClassName = props.group ? `t_group_${props.group}` : \"\";\n\t\t\t\tconst containerClassName = props.container ? \"t_container\" : \"\";\n\t\t\t\tconst displayNameClassName = props.asChild || !styleProps.displayName || styleProps.displayName === \"Text\" || styleProps.displayName === \"View\" || !validComponentClassName.test(styleProps.displayName) ? \"\" : `is_${styleProps.displayName}`;\n\t\t\t\tlet classList = [];\n\t\t\t\tif (displayNameClassName) classList.push(displayNameClassName);\n\t\t\t\tif (!isText) classList.push(\"is_View\");\n\t\t\t\telse classList.push(\"is_Text\");\n\t\t\t\tif (fontFamilyClassName) classList.push(fontFamilyClassName);\n\t\t\t\tif (classNames) for (const key in classNames) classList.push(classNames[key]);\n\t\t\t\tif (groupClassName) classList.push(groupClassName);\n\t\t\t\tif (containerClassName) classList.push(containerClassName);\n\t\t\t\tif (className) classList.push(className);\n\t\t\t\tconst finalClassName = classList.join(\" \");\n\t\t\t\tconst needsCssStyles = isReactNative || styleProps.isAnimated && driver?.isReactNative;\n\t\t\t\tif (styleProps.isAnimated && driver?.inputStyle === \"css\") {\n\t\t\t\t\tviewProps.className = finalClassName;\n\t\t\t\t\tif (style) viewProps.style = style;\n\t\t\t\t} else if (needsCssStyles) {\n\t\t\t\t\tlet cnStyles;\n\t\t\t\t\tfor (const name of finalClassName.split(\" \")) {\n\t\t\t\t\t\tcnStyles ||= { $$css: true };\n\t\t\t\t\t\tcnStyles[name] = name;\n\t\t\t\t\t}\n\t\t\t\t\tviewProps.style = cnStyles ? [...Array.isArray(style) ? style : [style], cnStyles] : [style];\n\t\t\t\t} else {\n\t\t\t\t\tif (finalClassName) viewProps.className = finalClassName;\n\t\t\t\t\tif (style) viewProps.style = style;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\") {\n\t\tif (isClient && isDevTools) {\n\t\t\tconsole.groupEnd();\n\t\t\tconsole.groupCollapsed(\"🔹 getSplitStyles ===>\");\n\t\t\ttry {\n\t\t\t\tconst logs = {\n\t\t\t\t\t...props.__tamaguiStyleDebugReceipt && { receipt: props.__tamaguiStyleDebugReceipt },\n\t\t\t\t\t...result,\n\t\t\t\t\tclassName,\n\t\t\t\t\tcomponentState,\n\t\t\t\t\tviewProps,\n\t\t\t\t\trulesToInsert,\n\t\t\t\t\tparentSplitStyles\n\t\t\t\t};\n\t\t\t\tfor (const key in logs) log(key, logs[key]);\n\t\t\t} catch {}\n\t\t\tconsole.groupEnd();\n\t\t}\n\t}\n\tif (process.env.NODE_ENV === \"development\" && (debug === \"profile\" || globalThis.time)) time`split-styles-done`;\n\treturn result;\n};\nfunction mergeFlatTransforms(target, flatTransforms) {\n\tconst transform = [];\n\tif (\"x\" in flatTransforms) transform.push({ translateX: flatTransforms.x });\n\tif (\"y\" in flatTransforms) transform.push({ translateY: flatTransforms.y });\n\tif (\"rotate\" in flatTransforms) transform.push({ rotate: flatTransforms.rotate });\n\tconst hasScaleX = \"scaleX\" in flatTransforms;\n\tconst hasScaleY = \"scaleY\" in flatTransforms;\n\tif (hasScaleX && hasScaleY && Object.is(flatTransforms.scaleX, flatTransforms.scaleY)) transform.push({ scale: flatTransforms.scaleX });\n\telse {\n\t\tif (hasScaleX) transform.push({ scaleX: flatTransforms.scaleX });\n\t\tif (hasScaleY) transform.push({ scaleY: flatTransforms.scaleY });\n\t\tif (!hasScaleX && !hasScaleY && \"scale\" in flatTransforms) transform.push({ scale: flatTransforms.scale });\n\t}\n\tconst keys = [];\n\tfor (const key in flatTransforms) if (key !== \"x\" && key !== \"y\" && key !== \"rotate\" && key !== \"scale\" && key !== \"scaleX\" && key !== \"scaleY\") keys.push(key);\n\tkeys.sort(sortString);\n\tfor (const key of keys) transform.push({ [mapTransformKeys[key] || key]: flatTransforms[key] });\n\tif (Array.isArray(target.transform)) transform.push(...target.transform);\n\ttarget.transform = transform;\n}\nfunction mergeStyle(styleState, key, val, _importance, disableNormalize = false, originalVal) {\n\tconst { viewProps, styleProps, staticConfig } = styleState;\n\tconst contextConfig = staticConfig.context || staticConfig.parentStaticConfig?.context;\n\tconst contextProps = contextConfig?.props;\n\tconst inheritedContextPropKeys = !staticConfig.context || staticConfig.context === staticConfig.parentStaticConfig?.context ? staticConfig.parentStaticConfig?.contextProps : void 0;\n\tconst contextPropKeys = staticConfig.contextProps || inheritedContextPropKeys;\n\tif (contextProps && key in contextProps || contextPropKeys?.includes(key) || contextConfig?.propKeys?.includes(key)) {\n\t\tstyleState.overriddenContextProps ||= {};\n\t\tconst originalFromState = styleState.originalContextPropValues?.[key];\n\t\tstyleState.overriddenContextProps[key] = originalVal ?? originalFromState ?? val;\n\t}\n\tif (key in stylePropsTransform) {\n\t\tstyleState.flatTransforms ||= {};\n\t\tstyleState.flatTransforms[key] = val;\n\t} else {\n\t\tconst out = isWeb && !disableNormalize && !styleProps.noNormalize ? normalizeValueWithProperty(val, key) : val;\n\t\tif (staticConfig.accept && key in staticConfig.accept) viewProps[key] = out;\n\t\telse {\n\t\t\tstyleState.style ||= {};\n\t\t\tstyleState.style[key] = key === \"transform\" && Array.isArray(out) ? [...out] : out;\n\t\t\tif (shouldTrackStyleTokenProvenance) recordStyleTokenProvenance(styleState, key, originalVal);\n\t\t}\n\t}\n}\nfunction recordStyleTokenProvenance(styleState, key, originalVal) {\n\tlet tokenName = typeof originalVal === \"string\" ? originalVal : \"\";\n\tif (tokenName) {\n\t\tconst slash = tokenName.lastIndexOf(\"/\");\n\t\tconst opacity = slash === -1 ? NaN : Number(tokenName.slice(slash + 1));\n\t\tif (Number.isInteger(opacity) && opacity >= 0 && opacity <= 100) tokenName = tokenName.slice(0, slash);\n\t}\n\tif (tokenName !== \"\" && (Object.prototype.hasOwnProperty.call(styleState.theme, tokenName) || Object.prototype.hasOwnProperty.call(styleState.conf.themes?.[styleState.flatThemeName || \"\"] || {}, tokenName) || Object.values(styleState.conf.tokensParsed).some((category) => Object.prototype.hasOwnProperty.call(category, tokenName)))) (styleState.tokenProvenance ||= {})[key] = originalVal;\n\telse if (styleState.tokenProvenance && key in styleState.tokenProvenance) delete styleState.tokenProvenance[key];\n}\nconst getSubStyle = (styleState, _subKey, styleIn, avoidMergeTransform) => {\n\tconst { staticConfig, conf, styleProps } = styleState;\n\tconst styleOut = {};\n\tlet originalValues;\n\tconst styleInOriginalValues = styleOriginalValues.get(styleIn);\n\tconst parentProps = styleState.props;\n\tstyleState.props = Object.create(parentProps, Object.getOwnPropertyDescriptors(styleIn));\n\ttry {\n\t\tfor (let key in styleIn) {\n\t\t\tconst val = styleIn[key];\n\t\t\tkey = conf.shorthands[key] || key;\n\t\t\tif (!staticConfig.isHOC && key in skipProps && !styleProps.noSkip) continue;\n\t\t\tpropMapper(key, val, styleState, false, (skey, sval, originalVal) => {\n\t\t\t\tconst trackedOriginalVal = styleInOriginalValues?.[skey] ?? originalVal;\n\t\t\t\tif (trackedOriginalVal !== void 0) {\n\t\t\t\t\toriginalValues ||= {};\n\t\t\t\t\toriginalValues[skey] = trackedOriginalVal;\n\t\t\t\t}\n\t\t\t\tif (!avoidMergeTransform && skey in stylePropsTransform) mergeTransform(styleOut, skey, sval);\n\t\t\t\telse styleOut[skey] = styleProps.noNormalize ? sval : normalizeValueWithProperty(sval, key);\n\t\t\t});\n\t\t}\n\t} finally {\n\t\tstyleState.props = parentProps;\n\t}\n\tif (!avoidMergeTransform) {\n\t\tconst parentTransform = styleState.style?.transform;\n\t\tconst flatTransforms = styleState.flatTransforms;\n\t\tconst styleOutTransform = styleOut.transform;\n\t\tif (Array.isArray(styleOutTransform) && styleOutTransform.length) {\n\t\t\tconst len = styleOutTransform.length;\n\t\t\tif (Array.isArray(parentTransform)) {\n\t\t\t\tconst merged = [];\n\t\t\t\touter: for (let i = 0; i < parentTransform.length; i++) {\n\t\t\t\t\tconst pt = parentTransform[i];\n\t\t\t\t\tfor (const pk in pt) {\n\t\t\t\t\t\tfor (let j = 0; j < len; j++) for (const sk in styleOutTransform[j]) {\n\t\t\t\t\t\t\tif (pk === sk) continue outer;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tmerged.push(pt);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfor (let i = 0; i < len; i++) merged.push(styleOutTransform[i]);\n\t\t\t\tstyleOut.transform = merged;\n\t\t\t}\n\t\t\tif (flatTransforms) outer: for (const fk in flatTransforms) {\n\t\t\t\tconst ck = fk === \"x\" ? \"translateX\" : fk === \"y\" ? \"translateY\" : fk;\n\t\t\t\tfor (let j = 0; j < len; j++) for (const sk in styleOutTransform[j]) {\n\t\t\t\t\tif (ck === sk) continue outer;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tmergeTransform(styleOut, fk, flatTransforms[fk]);\n\t\t\t}\n\t\t} else if (flatTransforms) mergeFlatTransforms(styleOut, flatTransforms);\n\t}\n\tif (!styleProps.noNormalize) fixStyles(styleOut);\n\tif (originalValues) styleOriginalValues.set(styleOut, originalValues);\n\treturn styleOut;\n};\nconst useInsertEffectCompat = isWeb ? React.useInsertionEffect || useIsomorphicLayoutEffect : () => {};\nconst useSplitStyles = (a, b, c, d, e, f, g, h, i, j, k, l, m) => {\n\t\"use no memo\";\n\tconst res = getSplitStyles(a, b, c, d, e, f, g, h, i, j, k, l, m);\n\tuseInsertEffectCompat(() => {\n\t\tif (res) insertStyleRules(res.rulesToInsert);\n\t}, [res?.rulesToInsert]);\n\treturn res;\n};\nfunction addStyleToInsertRules(rulesToInsert, styleObject) {\n\t{\n\t\tconst identifier = styleObject[StyleObjectIdentifier];\n\t\tif (shouldInsertStyleRules(identifier)) {\n\t\t\tupdateRules(identifier, styleObject[StyleObjectRules]);\n\t\t\trulesToInsert[identifier] = styleObject;\n\t\t}\n\t}\n}\nconst mergeTransform = (obj, key, val, backwards = false) => {\n\tif (typeof obj.transform === \"string\") return;\n\tobj.transform ||= [];\n\tobj.transform[backwards ? \"unshift\" : \"push\"]({ [mapTransformKeys[key] || key]: val });\n};\nconst mapTransformKeys = {\n\tx: \"translateX\",\n\ty: \"translateY\"\n};\nfunction passDownProp(viewProps, key, val) {\n\tviewProps[key] = val;\n}\nfunction normalizeStyle(style) {\n\tconst out = {};\n\tfor (const key in style) {\n\t\tconst val = style[key];\n\t\tif (key in stylePropsTransform) mergeTransform(out, key, val);\n\t\telse out[key] = normalizeValueWithProperty(val, key);\n\t}\n\tif (isWeb && Array.isArray(out.transform)) out.transform = transformsToString(out.transform);\n\tfixStyles(out);\n\treturn out;\n}\n\nexport { STYLE_TOKEN_PROVENANCE_KEY, getSplitStyles, getStyleTokenProvenance, getSubStyle, isValidStyleKey, styleOriginalValues, useSplitStyles };"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAuBA,MAAM,kCAAkC,QAAQ,IAAI,aAAa,iBAAiB,QAAQ,IAAI,0CAA0C;AACxI,MAAM,0BAA0B;AAChC,SAAS,uBAAuB,UAAU,QAAQ;CACjD,IAAI,MAAM,QAAQ,QAAQ,GAAG,OAAO,SAAS,MAAM,UAAU,OAAO,GAAG,OAAO,MAAM,CAAC;CACrF,OAAO,OAAO,GAAG,UAAU,MAAM;AAClC;AACA,SAAS,uBAAuB,iBAAiB,OAAO;CACvD,KAAK,MAAM,OAAO,iBAAiB;EAClC,IAAI,QAAQ,SAAS;EACrB,IAAI,CAAC,uBAAuB,gBAAgB,MAAM,MAAM,IAAI,GAAG,OAAO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Aa;CAC1D;EACC,MAAM,aAAa,YAAY;EAC/B,IAAI,uBAAuB,UAAU,GAAG;GACvC,YAAY,YAAY,YAAY,iBAAiB;GACrD,cAAc,cAAc;EAC7B;CACD;AACD;AACA,MAAM,kBAAkB,KAAK,KAAK,KAAK,YAAY,UAAU;CAC5D,IAAI,OAAO,IAAI,cAAc,UAAU;CACvC,IAAI,cAAc,CAAC;CACnB,IAAI,UAAU,YAAY,YAAY,QAAQ,GAAG,iBAAiB,QAAQ,MAAM,IAAI,CAAC;AACtF;AACA,MAAM,mBAAmB;CACxB,GAAG;CACH,GAAG;AACJ;AACA,SAAS,aAAa,WAAW,KAAK,KAAK;CAC1C,UAAU,OAAO;AAClB;AACA,SAAS,eAAe,OAAO;CAC9B,MAAM,MAAM,CAAC;CACb,KAAK,MAAM,OAAO,OAAO;EACxB,MAAM,MAAM,MAAM;EAClB,IAAI,OAAO,qBAAqB,eAAe,KAAK,KAAK,GAAG;OACvD,IAAI,OAAO,2BAA2B,KAAK,GAAG;CACpD;CACA,IAAI,SAAS,MAAM,QAAQ,IAAI,SAAS,GAAG,IAAI,YAAY,mBAAmB,IAAI,SAAS;CAC3F,UAAU,GAAG;CACb,OAAO;AACR"}
1
+ {"version":3,"file":"getSplitStyles.js","names":[],"sources":["esm/helpers/getSplitStyles.js"],"sourcesContent":["import { isClient, isWeb, useIsomorphicLayoutEffect } from \"@tamagui/constants\";\nimport { StyleObjectIdentifier, StyleObjectRules, stylePropsAll, stylePropsText, stylePropsTransform, validStyles } from \"@tamagui/helpers\";\nimport React from \"react\";\nimport { STYLE_FRONTEND_PASSTHROUGH_PREFIX, STYLE_FRONTEND_PREPROCESSED } from \"./styleFrontend\";\nimport { getConfig } from \"../config\";\nimport { isDevTools } from \"../constants/isDevTools\";\nimport { mediaState } from \"./mediaState\";\nimport { fixStyles } from \"./expandStyles\";\nimport { styleToCSS } from \"./getCSSStylesAtomic\";\nimport { getDefaultProps } from \"./getDefaultProps\";\nimport { insertStyleRules, shouldInsertStyleRules, updateRules } from \"./insertStyleRule\";\nimport { isPlainObject } from \"./isObj\";\nimport { log } from \"./log\";\nimport { normalizeValueWithProperty } from \"./normalizeValueWithProperty\";\nimport { appendFlatClause, propMapper } from \"./propMapper\";\nimport { clearDirectStyle, contributeStyleValue, contributeVariantClauseValue, flushDirectStyles, getDirectDynamicThemeAccess } from \"./directStyle\";\nimport { contributeFrontendProgram, isFrontendProgram } from \"./frontendProgram\";\nimport { skipProps } from \"./skipProps\";\nimport { sortString } from \"./sortString\";\nimport { styleOriginalValues } from \"./styleOriginalValues\";\nimport { STYLE_TOKEN_PROVENANCE_KEY, getStyleTokenProvenance, setStyleTokenProvenance } from \"./styleProvenance\";\nimport { transformsToString } from \"./transformsToString\";\n\nconst shouldTrackStyleTokenProvenance = process.env.NODE_ENV === \"development\" && process.env.TAMAGUI_ENABLE_STYLE_TOKEN_PROVENANCE === \"1\";\nconst validComponentClassName = /^[A-Za-z_][A-Za-z0-9_-]*$/;\nfunction compoundMatcherMatches(expected, actual) {\n\tif (Array.isArray(expected)) return expected.some((value) => Object.is(value, actual));\n\treturn Object.is(expected, actual);\n}\nfunction compoundVariantMatches(compoundVariant, props) {\n\tfor (const key in compoundVariant) {\n\t\tif (key === \"style\") continue;\n\t\tif (!compoundMatcherMatches(compoundVariant[key], props[key])) return false;\n\t}\n\treturn true;\n}\nconst styledDefaultsCache = /* @__PURE__ */ new WeakMap();\nfunction getStyledDefaults(staticConfig) {\n\tlet entries = styledDefaultsCache.get(staticConfig);\n\tif (entries === void 0) {\n\t\tentries = null;\n\t\tconst defaults = staticConfig.defaultProps;\n\t\tif (defaults) for (const key in defaults) (entries ||= []).push([key, defaults[key]]);\n\t\tstyledDefaultsCache.set(staticConfig, entries);\n\t}\n\treturn entries;\n}\nfunction contributeDisplacedStyledDefaults(styledDefaults, processedProps, shorthands, contribute) {\n\tif (!styledDefaults) return;\n\tfor (let index = 0; index < styledDefaults.length; index++) {\n\t\tconst key = styledDefaults[index][0];\n\t\tconst styledValue = styledDefaults[index][1];\n\t\tconst propValue = processedProps[key];\n\t\tif (!(key in stylePropsAll) && !(key in shorthands)) continue;\n\t\tif (propValue !== void 0 && propValue !== styledValue && (typeof styledValue === \"string\" && styledValue.includes(\":\") || typeof propValue === \"string\" && propValue.includes(\":\"))) contribute(key, styledValue);\n\t}\n}\nfunction forEachPropInForwardOrder(processedProps, staticConfig, shorthands, contribute) {\n\tconst processedBaseStyle = staticConfig.baseStyle;\n\tconst compoundVariants = staticConfig.compoundVariants;\n\tconst styledDefaults = getStyledDefaults(staticConfig);\n\tif (!compoundVariants?.length) {\n\t\tif (processedBaseStyle) for (const key in processedBaseStyle) contribute(key, processedBaseStyle[key]);\n\t\tcontributeDisplacedStyledDefaults(styledDefaults, processedProps, shorthands, contribute);\n\t\tfor (const key in processedProps) contribute(key, processedProps[key]);\n\t\treturn;\n\t}\n\tconst propEntries = Object.entries(processedProps);\n\tconst orderedEntries = processedBaseStyle ? Object.entries(processedBaseStyle) : [];\n\tcontributeDisplacedStyledDefaults(styledDefaults, processedProps, shorthands, (k, v) => orderedEntries.push([k, v]));\n\tconst compoundsByAnchor = /* @__PURE__ */ new Map();\n\tfor (const compoundVariant of compoundVariants) {\n\t\tif (!compoundVariantMatches(compoundVariant, processedProps)) continue;\n\t\tconst { style } = compoundVariant;\n\t\tif (!isPlainObject(style)) continue;\n\t\tlet anchor = -1;\n\t\tfor (const selectorKey in compoundVariant) {\n\t\t\tif (selectorKey === \"style\") continue;\n\t\t\tfor (let index = propEntries.length - 1; index >= 0; index--) if (propEntries[index][0] === selectorKey) {\n\t\t\t\tanchor = Math.max(anchor, index);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tconst entries = compoundsByAnchor.get(anchor) || [];\n\t\tfor (const key in style) entries.push([key, style[key]]);\n\t\tcompoundsByAnchor.set(anchor, entries);\n\t}\n\tfor (let index = 0; index < orderedEntries.length; index++) contribute(orderedEntries[index][0], orderedEntries[index][1]);\n\tconst beforeProps = compoundsByAnchor.get(-1);\n\tif (beforeProps) for (let index = 0; index < beforeProps.length; index++) contribute(beforeProps[index][0], beforeProps[index][1]);\n\tfor (let index = 0; index < propEntries.length; index++) {\n\t\tcontribute(propEntries[index][0], propEntries[index][1]);\n\t\tconst compounds = compoundsByAnchor.get(index);\n\t\tif (compounds) for (let i = 0; i < compounds.length; i++) contribute(compounds[i][0], compounds[i][1]);\n\t}\n}\nfunction isValidStyleKey(key, validStyles, accept) {\n\treturn Boolean(key in validStyles || isWeb && (key === \"transitionProperty\" || key === \"transitionDuration\" || key === \"transitionTimingFunction\" || key === \"transitionDelay\" || key === \"transitionBehavior\") || accept && key in accept);\n}\nconst getSplitStyles = (props, staticConfig, theme, themeName, componentState, styleProps, parentSplitStyles, componentContext, groupContext, elementType, startedUnhydrated, debug, animationDriver) => {\n\tconst conf = getConfig();\n\tif (staticConfig.styleFrontend?.normalizeStaticConfig) staticConfig = staticConfig.styleFrontend.normalizeStaticConfig(staticConfig, conf);\n\tconst driver = animationDriver || componentContext?.animationDriver || conf.animations;\n\tconst resolvedDriver = driver?.isStub ? null : driver;\n\tif (props.passThrough) return null;\n\tif (isWeb && styleProps.isAnimated && driver?.isReactNative && !styleProps.noNormalize) styleProps.noNormalize = \"values\";\n\tconst { shorthands } = conf;\n\tconst { isHOC, isText, isInput, variants, isReactNative, inlineProps, parentStaticConfig, acceptsClassName } = staticConfig;\n\tconst viewProps = {};\n\tconst mediaState$1 = styleProps.mediaState || mediaState;\n\tlet shouldDoClasses = acceptsClassName && isWeb && !styleProps.noClass;\n\tconst rulesToInsert = {};\n\tconst classNames = {};\n\tprops.space;\n\tlet hasMedia = false;\n\tlet pseudoGroups;\n\tlet mediaGroups;\n\tlet className = staticConfig.passthroughClassName || \"\";\n\tif (className) shouldDoClasses = false;\n\tconst validStyles$1 = staticConfig.validStyles || (staticConfig.isText || staticConfig.isInput ? stylePropsText : validStyles);\n\tif (process.env.NODE_ENV === \"development\" && (debug === \"profile\" || globalThis.time)) time`split-styles-setup`;\n\tconst styleState = {\n\t\tclassNames,\n\t\tconf,\n\t\tprops,\n\t\tstyleProps,\n\t\tcomponentState,\n\t\tstaticConfig,\n\t\tstyle: null,\n\t\ttheme,\n\t\tviewProps,\n\t\tcontext: componentContext,\n\t\tdebug,\n\t\tflatRulesToInsert: rulesToInsert,\n\t\tflatShouldDoClasses: shouldDoClasses,\n\t\tflatThemeName: themeName,\n\t\tflatMediaState: mediaState$1,\n\t\tflatGroupContext: groupContext,\n\t\tanimationDriver: resolvedDriver\n\t};\n\tif (process.env.IS_STATIC === \"is_static\") {\n\t\tconst { fallbackProps } = styleProps;\n\t\tif (fallbackProps) styleState.props = new Proxy(props, { get(_, key, val) {\n\t\t\tif (!Reflect.has(props, key)) return Reflect.get(fallbackProps, key);\n\t\t\treturn Reflect.get(props, key);\n\t\t} });\n\t}\n\tif (process.env.NODE_ENV === \"development\" && (debug === \"profile\" || globalThis.time)) time`style-state`;\n\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\" && isClient) {\n\t\tif (isDevTools) {\n\t\t\tconsole.groupCollapsed(\"🔹 getSplitStyles 👇\");\n\t\t\tlog({\n\t\t\t\tprops,\n\t\t\t\tstaticConfig,\n\t\t\t\tshouldDoClasses,\n\t\t\t\tstyleProps,\n\t\t\t\trulesToInsert,\n\t\t\t\tcomponentState,\n\t\t\t\tstyleState,\n\t\t\t\ttheme: { ...theme }\n\t\t\t});\n\t\t}\n\t}\n\tconst { asChild } = props;\n\tconst { accept, neverSkipProps } = staticConfig;\n\tconst { noSkip, disableExpandShorthands, noExpand, styledContext } = styleProps;\n\tlet processedProps;\n\tconst styleFrontend = staticConfig.styleFrontend;\n\tif (styleFrontend && !props[STYLE_FRONTEND_PREPROCESSED]) processedProps = styleFrontend.preprocessProps(props, conf);\n\telse processedProps = props;\n\tconst { webContainerType } = conf.settings;\n\tconst parentVariants = parentStaticConfig?.variants;\n\tconst mergeStylePropAtCurrentPosition = (styleProp) => {\n\t\tif (styleProps.noMergeStyle || !styleProp) return;\n\t\tif (isHOC) {\n\t\t\tviewProps.style = normalizeStyle(styleProp);\n\t\t\treturn;\n\t\t}\n\t\tconst isArray = Array.isArray(styleProp);\n\t\tconst length = isArray ? styleProp.length : 1;\n\t\tfor (let index = 0; index < length; index++) {\n\t\t\tconst style = isArray ? styleProp[index] : styleProp;\n\t\t\tif (!style) continue;\n\t\t\tif (style[\"$$css\"]) {\n\t\t\t\tfor (const key in style) clearDirectStyle(styleState, key);\n\t\t\t\tObject.assign(styleState.classNames, style);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tconst normalized = normalizeStyle(style);\n\t\t\tconst styleOriginals = shouldTrackStyleTokenProvenance ? styleOriginalValues.get(style) : void 0;\n\t\t\tfor (const key in normalized) {\n\t\t\t\tif (normalized[key] == null) continue;\n\t\t\t\tcontributeStyleValue(styleState, key, normalized[key], mergeStyle, styleOriginals?.[key]);\n\t\t\t}\n\t\t}\n\t};\n\tconst flushForwardStylesToClasses = () => {\n\t\tif (!shouldDoClasses) return;\n\t\tflushDirectStyles(styleState, true);\n\t};\n\tconst contributeProp = (keyOg, valOg) => {\n\t\tlet keyInit = keyOg;\n\t\tlet valInit = valOg;\n\t\tif (styleFrontend && keyInit.startsWith(STYLE_FRONTEND_PASSTHROUGH_PREFIX)) keyInit = \"className\";\n\t\tif (keyInit === \"children\") {\n\t\t\tviewProps[keyInit] = valInit;\n\t\t\treturn;\n\t\t}\n\t\tif (keyInit === \"ref\") return;\n\t\tif (process.env.NODE_ENV === \"development\" && (debug === \"profile\" || globalThis.time)) time`before-prop-${keyInit}`;\n\t\tif (process.env.NODE_ENV === \"test\" && keyInit === \"jestAnimatedStyle\") return;\n\t\tif (accept) {\n\t\t\tconst accepted = accept[keyInit];\n\t\t\tif ((accepted === \"style\" || accepted === \"textStyle\") && valInit && typeof valInit === \"object\") {\n\t\t\t\tviewProps[keyInit] = getSubStyle(styleState, keyInit, valInit, styleProps.noClass);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tif (!disableExpandShorthands) {\n\t\t\tif (keyInit in shorthands) keyInit = shorthands[keyInit];\n\t\t}\n\t\tif (keyInit === \"className\") {\n\t\t\tif (typeof valInit === \"string\" && valInit) {\n\t\t\t\tclassName = `${className} ${valInit}`.trim();\n\t\t\t\tif (styleFrontend) {\n\t\t\t\t\tflushForwardStylesToClasses();\n\t\t\t\t\tshouldDoClasses = false;\n\t\t\t\t\tstyleState.flatShouldDoClasses = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\tif (keyInit === \"style\") {\n\t\t\tmergeStylePropAtCurrentPosition(valInit);\n\t\t\treturn;\n\t\t}\n\t\tif (asChild) {\n\t\t\tconst defaults = getDefaultProps(staticConfig);\n\t\t\tif (defaults) {\n\t\t\t\tconst defaultVal = defaults[keyOg] ?? defaults[keyInit];\n\t\t\t\tif (defaultVal !== void 0 && valInit === defaultVal) return;\n\t\t\t}\n\t\t}\n\t\tif (keyInit in skipProps && !noSkip && !isHOC && !neverSkipProps?.[keyInit]) {\n\t\t\tif (keyInit === \"group\") {\n\t\t\t\tconst identifier = `t_group_${valInit}`;\n\t\t\t\taddStyleToInsertRules(rulesToInsert, [\n\t\t\t\t\t\"container\",\n\t\t\t\t\tvoid 0,\n\t\t\t\t\tidentifier,\n\t\t\t\t\tvoid 0,\n\t\t\t\t\t[`.${identifier} { container-name: ${valInit}; container-type: ${webContainerType || \"inline-size\"}; }`]\n\t\t\t\t]);\n\t\t\t}\n\t\t\tif (keyInit === \"container\" && valInit) addStyleToInsertRules(rulesToInsert, [\n\t\t\t\t\"container\",\n\t\t\t\tvoid 0,\n\t\t\t\t\"t_container\",\n\t\t\t\tvoid 0,\n\t\t\t\t[`.t_container { container-type: ${webContainerType || \"inline-size\"}; }`]\n\t\t\t]);\n\t\t\tif (keyInit === \"transition\" && typeof valInit === \"string\") {\n\t\t\t\tconst animationConfig = driver?.animations?.[valInit];\n\t\t\t\tif (animationConfig && driver?.outputStyle === \"css\" && process.env.IS_STATIC === \"is_static\") valInit = `all ${animationConfig}`;\n\t\t\t\telse if (animationConfig) return;\n\t\t\t} else return;\n\t\t}\n\t\tif (isFrontendProgram(valInit)) {\n\t\t\tif (isValidStyleKey(valInit.property, validStyles$1, accept)) contributeFrontendProgram(styleState, valInit, mergeStyle);\n\t\t\telse if (process.env.NODE_ENV === \"development\") console.warn(`[tamagui] \"${valInit.property}\" is not a valid style on this component; the frontend value is dropped.`);\n\t\t\treturn;\n\t\t}\n\t\tlet isValidStyleKeyInit = isValidStyleKey(keyInit, validStyles$1, accept);\n\t\tif (isWeb) {\n\t\t\tif ((staticConfig.isReactNative || styleProps.isAnimated && driver?.isReactNative && !driver.View?.acceptRenderProp) && keyInit.startsWith(\"data-\")) {\n\t\t\t\tkeyInit = keyInit.replace(\"data-\", \"\");\n\t\t\t\tviewProps[\"dataSet\"] ||= {};\n\t\t\t\tviewProps[\"dataSet\"][keyInit] = valInit;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (keyInit.startsWith(\"data-\")) {\n\t\t\t\tviewProps[keyInit] = valInit;\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tif (!noExpand) {\n\t\t\tif (keyInit === \"disabled\" && valInit === true) {\n\t\t\t\tviewProps[\"aria-disabled\"] = true;\n\t\t\t\tif (isInput || elementType === \"button\" || elementType === \"form\" || elementType === \"input\" || elementType === \"select\" || elementType === \"textarea\") viewProps.disabled = true;\n\t\t\t\tif (!variants?.disabled) return;\n\t\t\t}\n\t\t\tif (keyInit === \"testID\") {\n\t\t\t\tif (isReactNative) viewProps.testID = valInit;\n\t\t\t\telse {\n\t\t\t\t\tviewProps[\"data-testid\"] = valInit;\n\t\t\t\t\tif ((styleProps.isAnimated || staticConfig.isHOC) && driver?.isReactNative) viewProps.testID = valInit;\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (keyInit === \"id\") {\n\t\t\t\tviewProps.id = valInit;\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tlet isVariant = !isValidStyleKeyInit && variants && keyInit in variants;\n\t\tconst isStyleLikeKey = isValidStyleKeyInit || isVariant;\n\t\tconst isStyleProp = isValidStyleKeyInit || isVariant && !noExpand;\n\t\tif (isStyleProp && (asChild === \"except-style\" || asChild === \"except-style-web\")) return;\n\t\tconst shouldPassProp = !isStyleProp && isHOC || isHOC && parentVariants && keyInit in parentVariants || inlineProps?.has(keyInit);\n\t\tconst parentVariant = parentVariants?.[keyInit];\n\t\tconst isHOCShouldPassThrough = Boolean(isHOC && (isValidStyleKeyInit || parentVariant || keyInit in skipProps));\n\t\tconst shouldPassThrough = shouldPassProp || isHOCShouldPassThrough;\n\t\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\") {\n\t\t\tconsole.groupCollapsed(` \\u{1F511} ${keyOg}${keyInit !== keyOg ? ` (shorthand for ${keyInit})` : \"\"} ${shouldPassThrough ? \"(pass)\" : \"\"}`);\n\t\t\tlog({\n\t\t\t\tisVariant,\n\t\t\t\tvalInit,\n\t\t\t\tshouldPassProp\n\t\t\t});\n\t\t\tif (isClient) log({\n\t\t\t\tvariants,\n\t\t\t\tvariant: variants?.[keyInit],\n\t\t\t\tisVariant,\n\t\t\t\tisHOCShouldPassThrough,\n\t\t\t\tparentStaticConfig\n\t\t\t});\n\t\t}\n\t\tif (shouldPassThrough) {\n\t\t\tpassDownProp(viewProps, keyInit, valInit);\n\t\t\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\") console.groupEnd();\n\t\t\tif (!isVariant) return;\n\t\t}\n\t\tif (!noSkip && !neverSkipProps?.[keyInit]) {\n\t\t\tif (keyInit in skipProps && !(keyInit === \"transition\" && typeof valInit === \"string\" && !driver?.animations?.[valInit])) {\n\t\t\t\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\") console.groupEnd();\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tif (isText || isInput) {\n\t\t\tif (valInit && (keyInit === \"fontFamily\" || keyInit === shorthands[\"fontFamily\"]) && valInit in conf.fontsParsed) styleState.fontFamily = valInit;\n\t\t}\n\t\tconst disablePropMap = !isStyleLikeKey;\n\t\tif (!isHOC && isValidStyleKeyInit && valInit != null && !(variants && keyInit in variants) && !(accept && keyInit in accept) && !(styledContext && keyInit in styledContext)) {\n\t\t\tcontributeStyleValue(styleState, keyInit, valInit, mergeStyle);\n\t\t\treturn;\n\t\t}\n\t\tpropMapper(keyInit, valInit, styleState, disablePropMap, (key, val, originalVal, conditionSource) => {\n\t\t\tconst isStyledContextProp = styledContext && key in styledContext;\n\t\t\tif (key === \"className\") {\n\t\t\t\tif (typeof val === \"string\" && val) className = `${className} ${val}`.trim();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (!isHOC && disablePropMap && !isStyledContextProp) {\n\t\t\t\tif (key in stylePropsAll && !isValidStyleKey(key, validStyles$1, accept)) {\n\t\t\t\t\tif (process.env.NODE_ENV === \"development\") console.warn(`[tamagui] \"${key}\" is a text style prop and this component is not text \\u2014 it would render on neither platform. Use a Text-based component, or html.* for raw web elements.`);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tviewProps[key] = val;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\") {\n\t\t\t\tconsole.groupCollapsed(\" 💠 expanded\", keyInit, \"=>\", key);\n\t\t\t\tlog(val);\n\t\t\t\tconsole.groupEnd();\n\t\t\t}\n\t\t\tif (val == null) return;\n\t\t\tif (accept && key in accept) {\n\t\t\t\tviewProps[key] = val;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tconst isHostStyleKey = !isHOC && isValidStyleKey(key, validStyles$1, accept) || false;\n\t\t\tconst isContextProgramKey = !isHOC && Boolean(isStyledContextProp);\n\t\t\tif (conditionSource !== void 0) {\n\t\t\t\tif (isHostStyleKey || isContextProgramKey) contributeVariantClauseValue(styleState, key, val, conditionSource, mergeStyle, originalVal, !isHostStyleKey);\n\t\t\t\telse if (isHOC) {\n\t\t\t\t\tconst appended = appendFlatClause(viewProps[key], conditionSource, val);\n\t\t\t\t\tif (appended !== void 0) viewProps[key] = appended;\n\t\t\t\t\telse if (process.env.NODE_ENV === \"development\") console.warn(`[tamagui] conditional variant value for \"${key}\" is not string-representable; dropping the clause`);\n\t\t\t\t} else if (process.env.NODE_ENV === \"development\") console.warn(`[tamagui] \"${key}\" is not a valid style on this component; the conditional variant value is dropped.`);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (isHostStyleKey || isContextProgramKey) {\n\t\t\t\tcontributeStyleValue(styleState, key, val, mergeStyle, originalVal, !isHostStyleKey);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tisVariant = variants && key in variants;\n\t\t\tif (inlineProps?.has(key)) viewProps[key] = props[key] ?? val;\n\t\t\tif (isHOC && Boolean(parentStaticConfig?.variants?.[keyInit])) {\n\t\t\t\tpassDownProp(viewProps, key, val);\n\t\t\t\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\") {\n\t\t\t\t\tconsole.groupCollapsed(` - passing down prop ${key}`);\n\t\t\t\t\tlog({\n\t\t\t\t\t\tval,\n\t\t\t\t\t\tafter: { ...viewProps[key] }\n\t\t\t\t\t});\n\t\t\t\t\tconsole.groupEnd();\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (!isVariant) {\n\t\t\t\tif (isStyledContextProp) return;\n\t\t\t\tif (key in stylePropsAll && !isValidStyleKey(key, validStyles$1, accept)) {\n\t\t\t\t\tif (process.env.NODE_ENV === \"development\") console.warn(`[tamagui] \"${key}\" is a text style prop and this component is not text \\u2014 it would render on neither platform. Use a Text-based component, or html.* for raw web elements.`);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tviewProps[key] = val;\n\t\t\t}\n\t\t});\n\t\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\") {\n\t\t\ttry {\n\t\t\t\tlog(` \\u2714\\uFE0F expand complete`, keyInit);\n\t\t\t\tlog(\"style\", { ...styleState.style });\n\t\t\t\tlog(\"viewProps\", { ...viewProps });\n\t\t\t\tlog(\"transforms\", { ...styleState.flatTransforms });\n\t\t\t} catch {}\n\t\t\tconsole.groupEnd();\n\t\t}\n\t};\n\tforEachPropInForwardOrder(processedProps, staticConfig, shorthands, contributeProp);\n\tif (process.env.NODE_ENV === \"development\" && (debug === \"profile\" || globalThis.time)) time`split-styles-propsend`;\n\tconst conditionalStates = styleState.flatStateKeys || null;\n\tconst usesSafeArea = !!styleState.flatUsesSafeArea;\n\tif (styleState.flatMediaKeys?.size) {\n\t\tif (!hasMedia) hasMedia = /* @__PURE__ */ new Set();\n\t\tif (typeof hasMedia !== \"boolean\") for (const key of styleState.flatMediaKeys) hasMedia.add(key);\n\t}\n\tif (styleState.flatGroupKeys?.size) {\n\t\tpseudoGroups ||= /* @__PURE__ */ new Set();\n\t\tfor (const key of styleState.flatGroupKeys) pseudoGroups.add(key);\n\t}\n\tif (styleState.flatGroupMedia?.size) {\n\t\tmediaGroups ||= /* @__PURE__ */ new Set();\n\t\tfor (const key of styleState.flatGroupMedia) mediaGroups.add(key);\n\t}\n\tconst effectiveTransition = styleState.style?.transition;\n\tif (effectiveTransition != null && styleState.style && driver?.outputStyle !== \"css\") delete styleState.style.transition;\n\tif ((styleState.style?.containerName != null || classNames.containerName) && !(styleState.style && \"containerType\" in styleState.style) && !classNames.containerType) contributeStyleValue(styleState, \"containerType\", webContainerType || \"inline-size\", mergeStyle);\n\tif (!(styleProps.noNormalize === false)) {\n\t\tif (styleState.style) {\n\t\t\tfixStyles(styleState.style);\n\t\t\tif (!styleProps.noExpand && !styleProps.noMergeStyle) {\n\t\t\t\tif (isWeb && (isReactNative ? driver?.inputStyle !== \"css\" : true)) styleToCSS(styleState.style);\n\t\t\t}\n\t\t}\n\t\tif (styleState.flatTransforms) {\n\t\t\tstyleState.style ||= {};\n\t\t\tmergeFlatTransforms(styleState.style, styleState.flatTransforms);\n\t\t}\n\t\tif (parentSplitStyles) {\n\t\t\tif (shouldDoClasses) for (const key in parentSplitStyles.classNames) {\n\t\t\t\tconst val = parentSplitStyles.classNames[key];\n\t\t\t\tif (styleState.style && key in styleState.style || key in classNames) continue;\n\t\t\t\tclassNames[key] = val;\n\t\t\t}\n\t\t\tif (!shouldDoClasses) for (const key in parentSplitStyles.style) {\n\t\t\t\tif (key in classNames || styleState.style && key in styleState.style) continue;\n\t\t\t\tstyleState.style ||= {};\n\t\t\t\tstyleState.style[key] = parentSplitStyles.style[key];\n\t\t\t}\n\t\t}\n\t}\n\tif (!styleProps.noNormalize && !staticConfig.isReactNative && !staticConfig.isHOC && (!styleProps.isAnimated || driver?.inputStyle === \"css\") && Array.isArray(styleState.style?.transform)) styleState.style.transform = transformsToString(styleState.style.transform);\n\tflushDirectStyles(styleState);\n\tif (process.env.NODE_ENV === \"development\" && (debug === \"profile\" || globalThis.time)) time`split-styles-pre-result`;\n\tif (shouldTrackStyleTokenProvenance && styleState.style && styleState.tokenProvenance) {\n\t\tconst provenance = {};\n\t\tlet hasProvenance = false;\n\t\tfor (const key in styleState.tokenProvenance) {\n\t\t\tprovenance[key] = {\n\t\t\t\ttoken: styleState.tokenProvenance[key],\n\t\t\t\ttheme: themeName\n\t\t\t};\n\t\t\thasProvenance = true;\n\t\t}\n\t\tif (hasProvenance) setStyleTokenProvenance(styleState.style, provenance);\n\t}\n\tconst result = {\n\t\thasMedia,\n\t\tfontFamily: styleState.fontFamily,\n\t\tviewProps,\n\t\tstyle: styleState.style,\n\t\tclassNames,\n\t\trulesToInsert,\n\t\tpseudoGroups,\n\t\tmediaGroups,\n\t\toverriddenContextProps: styleState.overriddenContextProps\n\t};\n\tif (effectiveTransition != null) result.effectiveTransition = effectiveTransition;\n\tif (conditionalStates) result.programStates = conditionalStates;\n\tif (usesSafeArea) result.usesSafeArea = true;\n\tif (getDirectDynamicThemeAccess(styleState)) result.dynamicThemeAccess = true;\n\tif (styleState.flatEnterKeys || styleState.flatExitKeys) {\n\t\tconst effectiveKeys = (keys) => {\n\t\t\tif (!keys) return;\n\t\t\tconst out = /* @__PURE__ */ new Set();\n\t\t\tfor (const key of keys) out.add(key === \"--t-x\" || key === \"--t-y\" ? \"translate\" : key === \"--t-scale-x\" || key === \"--t-scale-y\" ? \"scale\" : key);\n\t\t\treturn out;\n\t\t};\n\t\tresult.programLifecycleStyleKeys = {\n\t\t\tenter: effectiveKeys(styleState.flatEnterKeys),\n\t\t\texit: effectiveKeys(styleState.flatExitKeys)\n\t\t};\n\t}\n\tconst asChildExceptStyleLike = asChild === \"except-style\" || asChild === \"except-style-web\";\n\tif (!styleProps.noMergeStyle) {\n\t\tif (!asChildExceptStyleLike) {\n\t\t\tconst style = styleState.style;\n\t\t\t{\n\t\t\t\tconst fontFamily = isText || isInput ? styleState.fontFamily : null;\n\t\t\t\tconst fontFamilyClassName = fontFamily ? `font_${fontFamily}` : \"\";\n\t\t\t\tconst groupClassName = props.group ? `t_group_${props.group}` : \"\";\n\t\t\t\tconst containerClassName = props.container ? \"t_container\" : \"\";\n\t\t\t\tconst displayNameClassName = props.asChild || !styleProps.displayName || styleProps.displayName === \"Text\" || styleProps.displayName === \"View\" || !validComponentClassName.test(styleProps.displayName) ? \"\" : `is_${styleProps.displayName}`;\n\t\t\t\tlet classList = [];\n\t\t\t\tif (displayNameClassName) classList.push(displayNameClassName);\n\t\t\t\tif (!isText) classList.push(\"is_View\");\n\t\t\t\telse classList.push(\"is_Text\");\n\t\t\t\tif (fontFamilyClassName) classList.push(fontFamilyClassName);\n\t\t\t\tif (classNames) for (const key in classNames) classList.push(classNames[key]);\n\t\t\t\tif (groupClassName) classList.push(groupClassName);\n\t\t\t\tif (containerClassName) classList.push(containerClassName);\n\t\t\t\tif (className) classList.push(className);\n\t\t\t\tconst finalClassName = classList.join(\" \");\n\t\t\t\tconst needsCssStyles = isReactNative || styleProps.isAnimated && driver?.isReactNative;\n\t\t\t\tif (styleProps.isAnimated && driver?.inputStyle === \"css\") {\n\t\t\t\t\tviewProps.className = finalClassName;\n\t\t\t\t\tif (style) viewProps.style = style;\n\t\t\t\t} else if (needsCssStyles) {\n\t\t\t\t\tlet cnStyles;\n\t\t\t\t\tfor (const name of finalClassName.split(\" \")) {\n\t\t\t\t\t\tcnStyles ||= { $$css: true };\n\t\t\t\t\t\tcnStyles[name] = name;\n\t\t\t\t\t}\n\t\t\t\t\tviewProps.style = cnStyles ? [...Array.isArray(style) ? style : [style], cnStyles] : [style];\n\t\t\t\t} else {\n\t\t\t\t\tif (finalClassName) viewProps.className = finalClassName;\n\t\t\t\t\tif (style) viewProps.style = style;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\") {\n\t\tif (isClient && isDevTools) {\n\t\t\tconsole.groupEnd();\n\t\t\tconsole.groupCollapsed(\"🔹 getSplitStyles ===>\");\n\t\t\ttry {\n\t\t\t\tconst logs = {\n\t\t\t\t\t...props.__tamaguiStyleDebugReceipt && { receipt: props.__tamaguiStyleDebugReceipt },\n\t\t\t\t\t...result,\n\t\t\t\t\tclassName,\n\t\t\t\t\tcomponentState,\n\t\t\t\t\tviewProps,\n\t\t\t\t\trulesToInsert,\n\t\t\t\t\tparentSplitStyles\n\t\t\t\t};\n\t\t\t\tfor (const key in logs) log(key, logs[key]);\n\t\t\t} catch {}\n\t\t\tconsole.groupEnd();\n\t\t}\n\t}\n\tif (process.env.NODE_ENV === \"development\" && (debug === \"profile\" || globalThis.time)) time`split-styles-done`;\n\treturn result;\n};\nfunction mergeFlatTransforms(target, flatTransforms) {\n\tconst transform = [];\n\tif (\"x\" in flatTransforms) transform.push({ translateX: flatTransforms.x });\n\tif (\"y\" in flatTransforms) transform.push({ translateY: flatTransforms.y });\n\tif (\"rotate\" in flatTransforms) transform.push({ rotate: flatTransforms.rotate });\n\tconst hasScaleX = \"scaleX\" in flatTransforms;\n\tconst hasScaleY = \"scaleY\" in flatTransforms;\n\tif (hasScaleX && hasScaleY && Object.is(flatTransforms.scaleX, flatTransforms.scaleY)) transform.push({ scale: flatTransforms.scaleX });\n\telse {\n\t\tif (hasScaleX) transform.push({ scaleX: flatTransforms.scaleX });\n\t\tif (hasScaleY) transform.push({ scaleY: flatTransforms.scaleY });\n\t\tif (!hasScaleX && !hasScaleY && \"scale\" in flatTransforms) transform.push({ scale: flatTransforms.scale });\n\t}\n\tconst keys = [];\n\tfor (const key in flatTransforms) if (key !== \"x\" && key !== \"y\" && key !== \"rotate\" && key !== \"scale\" && key !== \"scaleX\" && key !== \"scaleY\") keys.push(key);\n\tkeys.sort(sortString);\n\tfor (const key of keys) transform.push({ [mapTransformKeys[key] || key]: flatTransforms[key] });\n\tif (Array.isArray(target.transform)) transform.push(...target.transform);\n\ttarget.transform = transform;\n}\nfunction mergeStyle(styleState, key, val, _importance, disableNormalize = false, originalVal) {\n\tconst { viewProps, styleProps, staticConfig } = styleState;\n\tconst contextConfig = staticConfig.context || staticConfig.parentStaticConfig?.context;\n\tconst contextProps = contextConfig?.props;\n\tconst inheritedContextPropKeys = !staticConfig.context || staticConfig.context === staticConfig.parentStaticConfig?.context ? staticConfig.parentStaticConfig?.contextProps : void 0;\n\tconst contextPropKeys = staticConfig.contextProps || inheritedContextPropKeys;\n\tif (contextProps && key in contextProps || contextPropKeys?.includes(key) || contextConfig?.propKeys?.includes(key)) {\n\t\tstyleState.overriddenContextProps ||= {};\n\t\tconst originalFromState = styleState.originalContextPropValues?.[key];\n\t\tstyleState.overriddenContextProps[key] = originalVal ?? originalFromState ?? val;\n\t}\n\tif (key in stylePropsTransform) {\n\t\tstyleState.flatTransforms ||= {};\n\t\tstyleState.flatTransforms[key] = val;\n\t} else {\n\t\tconst out = isWeb && !disableNormalize && !styleProps.noNormalize ? normalizeValueWithProperty(val, key) : val;\n\t\tif (staticConfig.accept && key in staticConfig.accept) viewProps[key] = out;\n\t\telse {\n\t\t\tstyleState.style ||= {};\n\t\t\tstyleState.style[key] = key === \"transform\" && Array.isArray(out) ? [...out] : out;\n\t\t\tif (shouldTrackStyleTokenProvenance) recordStyleTokenProvenance(styleState, key, originalVal);\n\t\t}\n\t}\n}\nfunction recordStyleTokenProvenance(styleState, key, originalVal) {\n\tlet tokenName = typeof originalVal === \"string\" ? originalVal : \"\";\n\tif (tokenName) {\n\t\tconst slash = tokenName.lastIndexOf(\"/\");\n\t\tconst opacity = slash === -1 ? NaN : Number(tokenName.slice(slash + 1));\n\t\tif (Number.isInteger(opacity) && opacity >= 0 && opacity <= 100) tokenName = tokenName.slice(0, slash);\n\t}\n\tif (tokenName !== \"\" && (Object.prototype.hasOwnProperty.call(styleState.theme, tokenName) || Object.prototype.hasOwnProperty.call(styleState.conf.themes?.[styleState.flatThemeName || \"\"] || {}, tokenName) || Object.values(styleState.conf.tokensParsed).some((category) => Object.prototype.hasOwnProperty.call(category, tokenName)))) (styleState.tokenProvenance ||= {})[key] = originalVal;\n\telse if (styleState.tokenProvenance && key in styleState.tokenProvenance) delete styleState.tokenProvenance[key];\n}\nconst getSubStyle = (styleState, _subKey, styleIn, avoidMergeTransform) => {\n\tconst { staticConfig, conf, styleProps } = styleState;\n\tconst styleOut = {};\n\tlet originalValues;\n\tconst styleInOriginalValues = styleOriginalValues.get(styleIn);\n\tconst parentProps = styleState.props;\n\tstyleState.props = Object.create(parentProps, Object.getOwnPropertyDescriptors(styleIn));\n\ttry {\n\t\tfor (let key in styleIn) {\n\t\t\tconst val = styleIn[key];\n\t\t\tkey = conf.shorthands[key] || key;\n\t\t\tif (!staticConfig.isHOC && key in skipProps && !styleProps.noSkip) continue;\n\t\t\tpropMapper(key, val, styleState, false, (skey, sval, originalVal) => {\n\t\t\t\tconst trackedOriginalVal = styleInOriginalValues?.[skey] ?? originalVal;\n\t\t\t\tif (trackedOriginalVal !== void 0) {\n\t\t\t\t\toriginalValues ||= {};\n\t\t\t\t\toriginalValues[skey] = trackedOriginalVal;\n\t\t\t\t}\n\t\t\t\tif (!avoidMergeTransform && skey in stylePropsTransform) mergeTransform(styleOut, skey, sval);\n\t\t\t\telse styleOut[skey] = styleProps.noNormalize ? sval : normalizeValueWithProperty(sval, key);\n\t\t\t});\n\t\t}\n\t} finally {\n\t\tstyleState.props = parentProps;\n\t}\n\tif (!avoidMergeTransform) {\n\t\tconst parentTransform = styleState.style?.transform;\n\t\tconst flatTransforms = styleState.flatTransforms;\n\t\tconst styleOutTransform = styleOut.transform;\n\t\tif (Array.isArray(styleOutTransform) && styleOutTransform.length) {\n\t\t\tconst len = styleOutTransform.length;\n\t\t\tif (Array.isArray(parentTransform)) {\n\t\t\t\tconst merged = [];\n\t\t\t\touter: for (let i = 0; i < parentTransform.length; i++) {\n\t\t\t\t\tconst pt = parentTransform[i];\n\t\t\t\t\tfor (const pk in pt) {\n\t\t\t\t\t\tfor (let j = 0; j < len; j++) for (const sk in styleOutTransform[j]) {\n\t\t\t\t\t\t\tif (pk === sk) continue outer;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tmerged.push(pt);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfor (let i = 0; i < len; i++) merged.push(styleOutTransform[i]);\n\t\t\t\tstyleOut.transform = merged;\n\t\t\t}\n\t\t\tif (flatTransforms) outer: for (const fk in flatTransforms) {\n\t\t\t\tconst ck = fk === \"x\" ? \"translateX\" : fk === \"y\" ? \"translateY\" : fk;\n\t\t\t\tfor (let j = 0; j < len; j++) for (const sk in styleOutTransform[j]) {\n\t\t\t\t\tif (ck === sk) continue outer;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tmergeTransform(styleOut, fk, flatTransforms[fk]);\n\t\t\t}\n\t\t} else if (flatTransforms) mergeFlatTransforms(styleOut, flatTransforms);\n\t}\n\tif (!styleProps.noNormalize) fixStyles(styleOut);\n\tif (originalValues) styleOriginalValues.set(styleOut, originalValues);\n\treturn styleOut;\n};\nconst useInsertEffectCompat = isWeb ? React.useInsertionEffect || useIsomorphicLayoutEffect : () => {};\nconst useSplitStyles = (a, b, c, d, e, f, g, h, i, j, k, l, m) => {\n\t\"use no memo\";\n\tconst res = getSplitStyles(a, b, c, d, e, f, g, h, i, j, k, l, m);\n\tuseInsertEffectCompat(() => {\n\t\tif (res) insertStyleRules(res.rulesToInsert);\n\t}, [res?.rulesToInsert]);\n\treturn res;\n};\nfunction addStyleToInsertRules(rulesToInsert, styleObject) {\n\t{\n\t\tconst identifier = styleObject[StyleObjectIdentifier];\n\t\tif (shouldInsertStyleRules(identifier)) {\n\t\t\tupdateRules(identifier, styleObject[StyleObjectRules]);\n\t\t\trulesToInsert[identifier] = styleObject;\n\t\t}\n\t}\n}\nconst mergeTransform = (obj, key, val, backwards = false) => {\n\tif (typeof obj.transform === \"string\") return;\n\tobj.transform ||= [];\n\tobj.transform[backwards ? \"unshift\" : \"push\"]({ [mapTransformKeys[key] || key]: val });\n};\nconst mapTransformKeys = {\n\tx: \"translateX\",\n\ty: \"translateY\"\n};\nfunction passDownProp(viewProps, key, val) {\n\tviewProps[key] = val;\n}\nfunction normalizeStyle(style) {\n\tconst out = {};\n\tfor (const key in style) {\n\t\tconst val = style[key];\n\t\tif (key in stylePropsTransform) mergeTransform(out, key, val);\n\t\telse out[key] = normalizeValueWithProperty(val, key);\n\t}\n\tif (isWeb && Array.isArray(out.transform)) out.transform = transformsToString(out.transform);\n\tfixStyles(out);\n\treturn out;\n}\n\nexport { STYLE_TOKEN_PROVENANCE_KEY, getSplitStyles, getStyleTokenProvenance, getSubStyle, isValidStyleKey, styleOriginalValues, useSplitStyles };"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAuBA,MAAM,kCAAkC,QAAQ,IAAI,aAAa,iBAAiB,QAAQ,IAAI,0CAA0C;AACxI,MAAM,0BAA0B;AAChC,SAAS,uBAAuB,UAAU,QAAQ;CACjD,IAAI,MAAM,QAAQ,QAAQ,GAAG,OAAO,SAAS,MAAM,UAAU,OAAO,GAAG,OAAO,MAAM,CAAC;CACrF,OAAO,OAAO,GA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AC;CACnB,IAAI,UAAU,YAAY,YAAY,QAAQ,GAAG,iBAAiB,QAAQ,MAAM,IAAI,CAAC;AACtF;AACA,MAAM,mBAAmB;CACxB,GAAG;CACH,GAAG;AACJ;AACA,SAAS,aAAa,WAAW,KAAK,KAAK;CAC1C,UAAU,OAAO;AAClB;AACA,SAAS,eAAe,OAAO;CAC9B,MAAM,MAAM,CAAC;CACb,KAAK,MAAM,OAAO,OAAO;EACxB,MAAM,MAAM,MAAM;EAClB,IAAI,OAAO,qBAAqB,eAAe,KAAK,KAAK,GAAG;OACvD,IAAI,OAAO,2BAA2B,KAAK,GAAG;CACpD;CACA,IAAI,SAAS,MAAM,QAAQ,IAAI,SAAS,GAAG,IAAI,YAAY,mBAAmB,IAAI,SAAS;CAC3F,UAAU,GAAG;CACb,OAAO;AACR"}
@@ -160,9 +160,9 @@ var getSplitStyles = function(props, staticConfig, theme, themeName, componentSt
160
160
  };
161
161
  if (process.env.IS_STATIC === "is_static") {
162
162
  var { fallbackProps } = styleProps;
163
- if (fallbackProps) styleState.props = new Proxy(props, { get(_, key9, val2) {
164
- if (!Reflect.has(props, key9)) return Reflect.get(fallbackProps, key9);
165
- return Reflect.get(props, key9);
163
+ if (fallbackProps) styleState.props = new Proxy(props, { get(_, key8, val2) {
164
+ if (!Reflect.has(props, key8)) return Reflect.get(fallbackProps, key8);
165
+ return Reflect.get(props, key8);
166
166
  } });
167
167
  }
168
168
  if (process.env.NODE_ENV === "development" && (debug === "profile" || globalThis.time)) time`style-state`;
@@ -202,7 +202,7 @@ var getSplitStyles = function(props, staticConfig, theme, themeName, componentSt
202
202
  var style2 = isArray ? styleProp[index] : styleProp;
203
203
  if (!style2) continue;
204
204
  if (style2["$$css"]) {
205
- for (var key9 in style2) clearDirectStyle(styleState, key9);
205
+ for (var key8 in style2) clearDirectStyle(styleState, key8);
206
206
  Object.assign(styleState.classNames, style2);
207
207
  continue;
208
208
  }
@@ -355,58 +355,58 @@ var getSplitStyles = function(props, staticConfig, theme, themeName, componentSt
355
355
  contributeStyleValue(styleState, keyInit, valInit, mergeStyle);
356
356
  return;
357
357
  }
358
- propMapper(keyInit, valInit, styleState, disablePropMap, function(key9, val2, originalVal, conditionSource) {
358
+ propMapper(keyInit, valInit, styleState, disablePropMap, function(key8, val2, originalVal, conditionSource) {
359
359
  var _parentStaticConfig_variants;
360
- var isStyledContextProp = styledContext && key9 in styledContext;
361
- if (key9 === "className") {
360
+ var isStyledContextProp = styledContext && key8 in styledContext;
361
+ if (key8 === "className") {
362
362
  if (typeof val2 === "string" && val2) className = `${className} ${val2}`.trim();
363
363
  return;
364
364
  }
365
365
  if (!isHOC && disablePropMap && !isStyledContextProp) {
366
- if (key9 in stylePropsAll && !isValidStyleKey(key9, validStyles$1, accept)) {
367
- if (process.env.NODE_ENV === "development") console.warn(`[tamagui] "${key9}" is a text style prop and this component is not text \u2014 it would render on neither platform. Use a Text-based component, or html.* for raw web elements.`);
366
+ if (key8 in stylePropsAll && !isValidStyleKey(key8, validStyles$1, accept)) {
367
+ if (process.env.NODE_ENV === "development") console.warn(`[tamagui] "${key8}" is a text style prop and this component is not text \u2014 it would render on neither platform. Use a Text-based component, or html.* for raw web elements.`);
368
368
  return;
369
369
  }
370
- viewProps[key9] = val2;
370
+ viewProps[key8] = val2;
371
371
  return;
372
372
  }
373
373
  if (process.env.NODE_ENV === "development" && debug === "verbose") {
374
- console.groupCollapsed(" 💠 expanded", keyInit, "=>", key9);
374
+ console.groupCollapsed(" 💠 expanded", keyInit, "=>", key8);
375
375
  log(val2);
376
376
  console.groupEnd();
377
377
  }
378
378
  if (val2 == null) return;
379
- if (accept && key9 in accept) {
380
- viewProps[key9] = val2;
379
+ if (accept && key8 in accept) {
380
+ viewProps[key8] = val2;
381
381
  return;
382
382
  }
383
- var isHostStyleKey = !isHOC && isValidStyleKey(key9, validStyles$1, accept) || isAndroid && key9 === "elevation";
383
+ var isHostStyleKey = !isHOC && isValidStyleKey(key8, validStyles$1, accept) || isAndroid && key8 === "elevation";
384
384
  var isContextProgramKey = !isHOC && Boolean(isStyledContextProp);
385
385
  if (conditionSource !== void 0) {
386
- if (isHostStyleKey || isContextProgramKey) contributeVariantClauseValue(styleState, key9, val2, conditionSource, mergeStyle, originalVal, !isHostStyleKey);
386
+ if (isHostStyleKey || isContextProgramKey) contributeVariantClauseValue(styleState, key8, val2, conditionSource, mergeStyle, originalVal, !isHostStyleKey);
387
387
  else if (isHOC) {
388
- var appended = appendFlatClause(viewProps[key9], conditionSource, val2);
389
- if (appended !== void 0) viewProps[key9] = appended;
390
- else if (process.env.NODE_ENV === "development") console.warn(`[tamagui] conditional variant value for "${key9}" is not string-representable; dropping the clause`);
391
- } else if (process.env.NODE_ENV === "development") console.warn(`[tamagui] "${key9}" is not a valid style on this component; the conditional variant value is dropped.`);
388
+ var appended = appendFlatClause(viewProps[key8], conditionSource, val2);
389
+ if (appended !== void 0) viewProps[key8] = appended;
390
+ else if (process.env.NODE_ENV === "development") console.warn(`[tamagui] conditional variant value for "${key8}" is not string-representable; dropping the clause`);
391
+ } else if (process.env.NODE_ENV === "development") console.warn(`[tamagui] "${key8}" is not a valid style on this component; the conditional variant value is dropped.`);
392
392
  return;
393
393
  }
394
394
  if (isHostStyleKey || isContextProgramKey) {
395
- contributeStyleValue(styleState, key9, val2, mergeStyle, originalVal, !isHostStyleKey);
395
+ contributeStyleValue(styleState, key8, val2, mergeStyle, originalVal, !isHostStyleKey);
396
396
  return;
397
397
  }
398
- isVariant = variants && key9 in variants;
399
- if (inlineProps === null || inlineProps === void 0 ? void 0 : inlineProps.has(key9)) {
398
+ isVariant = variants && key8 in variants;
399
+ if (inlineProps === null || inlineProps === void 0 ? void 0 : inlineProps.has(key8)) {
400
400
  var _props_key;
401
- viewProps[key9] = (_props_key = props[key9]) !== null && _props_key !== void 0 ? _props_key : val2;
401
+ viewProps[key8] = (_props_key = props[key8]) !== null && _props_key !== void 0 ? _props_key : val2;
402
402
  }
403
403
  if (isHOC && Boolean(parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : (_parentStaticConfig_variants = parentStaticConfig.variants) === null || _parentStaticConfig_variants === void 0 ? void 0 : _parentStaticConfig_variants[keyInit])) {
404
- passDownProp(viewProps, key9, val2);
404
+ passDownProp(viewProps, key8, val2);
405
405
  if (process.env.NODE_ENV === "development" && debug === "verbose") {
406
- console.groupCollapsed(` - passing down prop ${key9}`);
406
+ console.groupCollapsed(` - passing down prop ${key8}`);
407
407
  log({
408
408
  val: val2,
409
- after: { ...viewProps[key9] }
409
+ after: { ...viewProps[key8] }
410
410
  });
411
411
  console.groupEnd();
412
412
  }
@@ -414,11 +414,11 @@ var getSplitStyles = function(props, staticConfig, theme, themeName, componentSt
414
414
  }
415
415
  if (!isVariant) {
416
416
  if (isStyledContextProp) return;
417
- if (key9 in stylePropsAll && !isValidStyleKey(key9, validStyles$1, accept)) {
418
- if (process.env.NODE_ENV === "development") console.warn(`[tamagui] "${key9}" is a text style prop and this component is not text \u2014 it would render on neither platform. Use a Text-based component, or html.* for raw web elements.`);
417
+ if (key8 in stylePropsAll && !isValidStyleKey(key8, validStyles$1, accept)) {
418
+ if (process.env.NODE_ENV === "development") console.warn(`[tamagui] "${key8}" is a text style prop and this component is not text \u2014 it would render on neither platform. Use a Text-based component, or html.* for raw web elements.`);
419
419
  return;
420
420
  }
421
- viewProps[key9] = val2;
421
+ viewProps[key8] = val2;
422
422
  }
423
423
  });
424
424
  if (process.env.NODE_ENV === "development" && debug === "verbose") {
@@ -546,9 +546,9 @@ var getSplitStyles = function(props, staticConfig, theme, themeName, componentSt
546
546
  if (shouldTrackStyleTokenProvenance && styleState.style && styleState.tokenProvenance) {
547
547
  var provenance = {};
548
548
  var hasProvenance = false;
549
- for (var key6 in styleState.tokenProvenance) {
550
- provenance[key6] = {
551
- token: styleState.tokenProvenance[key6],
549
+ for (var key5 in styleState.tokenProvenance) {
550
+ provenance[key5] = {
551
+ token: styleState.tokenProvenance[key5],
552
552
  theme: themeName
553
553
  };
554
554
  hasProvenance = true;
@@ -577,8 +577,8 @@ var getSplitStyles = function(props, staticConfig, theme, themeName, componentSt
577
577
  var _iteratorNormalCompletion4 = true, _didIteratorError4 = false, _iteratorError4 = void 0;
578
578
  try {
579
579
  for (var _iterator4 = keys[Symbol.iterator](), _step4; !(_iteratorNormalCompletion4 = (_step4 = _iterator4.next()).done); _iteratorNormalCompletion4 = true) {
580
- var key9 = _step4.value;
581
- out.add(key9 === "--t-x" || key9 === "--t-y" ? "translate" : key9 === "--t-scale-x" || key9 === "--t-scale-y" ? "scale" : key9);
580
+ var key8 = _step4.value;
581
+ out.add(key8 === "--t-x" || key8 === "--t-y" ? "translate" : key8 === "--t-scale-x" || key8 === "--t-scale-y" ? "scale" : key8);
582
582
  }
583
583
  } catch (err) {
584
584
  _didIteratorError4 = true;
@@ -618,7 +618,7 @@ var getSplitStyles = function(props, staticConfig, theme, themeName, componentSt
618
618
  rulesToInsert,
619
619
  parentSplitStyles
620
620
  };
621
- for (var key8 in logs) log(key8, logs[key8]);
621
+ for (var key7 in logs) log(key7, logs[key7]);
622
622
  } catch (e) {}
623
623
  console.groupEnd();
624
624
  }