@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.
- package/dist/cjs/helpers/directStyle.cjs +2 -1
- package/dist/cjs/helpers/directStyle.native.cjs +3 -2
- package/dist/cjs/helpers/directStyle.native.js +3 -2
- package/dist/cjs/helpers/directStyle.native.js.map +1 -1
- package/dist/cjs/helpers/getSplitStyles.cjs +0 -12
- package/dist/cjs/helpers/getSplitStyles.native.cjs +35 -35
- package/dist/cjs/helpers/getSplitStyles.native.js +35 -35
- package/dist/cjs/helpers/getSplitStyles.native.js.map +1 -1
- package/dist/cjs/helpers/registerCSSVariable.cjs +7 -15
- package/dist/cjs/helpers/registerCSSVariable.native.cjs +7 -15
- package/dist/cjs/helpers/registerCSSVariable.native.js +7 -15
- package/dist/cjs/helpers/registerCSSVariable.native.js.map +1 -1
- package/dist/esm/helpers/directStyle.mjs +3 -2
- package/dist/esm/helpers/directStyle.mjs.map +1 -1
- package/dist/esm/helpers/directStyle.native.js +4 -3
- package/dist/esm/helpers/directStyle.native.js.map +1 -1
- package/dist/esm/helpers/getSplitStyles.mjs +3 -15
- package/dist/esm/helpers/getSplitStyles.mjs.map +1 -1
- package/dist/esm/helpers/getSplitStyles.native.js +35 -35
- package/dist/esm/helpers/getSplitStyles.native.js.map +1 -1
- package/dist/esm/helpers/registerCSSVariable.mjs +7 -15
- package/dist/esm/helpers/registerCSSVariable.mjs.map +1 -1
- package/dist/esm/helpers/registerCSSVariable.native.js +7 -15
- package/dist/esm/helpers/registerCSSVariable.native.js.map +1 -1
- package/package.json +15 -15
- package/src/helpers/directStyle.ts +12 -4
- package/src/helpers/getSplitStyles.tsx +1 -38
- package/src/helpers/registerCSSVariable.ts +7 -29
- package/types/helpers/directStyle.d.ts.map +1 -1
- package/types/helpers/getSplitStyles.d.ts.map +1 -1
- package/types/helpers/registerCSSVariable.d.ts.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getSplitStyles.native.js","names":[],"sources":["esm/helpers/getSplitStyles.native.js"],"sourcesContent":["import { isAndroid, isClient, isWeb } from \"@tamagui/constants\";\nimport { stylePropsAll, stylePropsText, stylePropsTransform, validStyles } from \"@tamagui/helpers\";\nimport React from \"react\";\nimport { STYLE_FRONTEND_PASSTHROUGH_PREFIX, STYLE_FRONTEND_PREPROCESSED } from \"./styleFrontend\";\nimport { getConfig, getFont } from \"../config\";\nimport { isDevTools } from \"../constants/isDevTools\";\nimport { mediaState } from \"./mediaState\";\nimport { fixStyles } from \"./expandStyles\";\nimport { styleToCSS } from \"./getCSSStylesAtomic\";\nimport { getDefaultProps } from \"./getDefaultProps\";\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\nfunction _type_of(obj) {\n\t\"@swc/helpers - typeof\";\n\treturn obj && typeof Symbol !== \"undefined\" && obj.constructor === Symbol ? \"symbol\" : typeof obj;\n}\nvar shouldTrackStyleTokenProvenance = process.env.NODE_ENV === \"development\" && process.env.TAMAGUI_ENABLE_STYLE_TOKEN_PROVENANCE === \"1\";\nfunction compoundMatcherMatches(expected, actual) {\n\tif (Array.isArray(expected)) return expected.some(function(value) {\n\t\treturn Object.is(value, actual);\n\t});\n\treturn Object.is(expected, actual);\n}\nfunction compoundVariantMatches(compoundVariant, props) {\n\tfor (var 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}\nvar styledDefaultsCache = /* @__PURE__ */ new WeakMap();\nfunction getStyledDefaults(staticConfig) {\n\tvar entries = styledDefaultsCache.get(staticConfig);\n\tif (entries === void 0) {\n\t\tentries = null;\n\t\tvar defaults = staticConfig.defaultProps;\n\t\tif (defaults) for (var key in defaults) (entries || (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 (var index = 0; index < styledDefaults.length; index++) {\n\t\tvar key = styledDefaults[index][0];\n\t\tvar styledValue = styledDefaults[index][1];\n\t\tvar 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\tvar processedBaseStyle = staticConfig.baseStyle;\n\tvar compoundVariants = staticConfig.compoundVariants;\n\tvar styledDefaults = getStyledDefaults(staticConfig);\n\tif (!(compoundVariants === null || compoundVariants === void 0 ? void 0 : compoundVariants.length)) {\n\t\tif (processedBaseStyle) for (var key in processedBaseStyle) contribute(key, processedBaseStyle[key]);\n\t\tcontributeDisplacedStyledDefaults(styledDefaults, processedProps, shorthands, contribute);\n\t\tfor (var key1 in processedProps) contribute(key1, processedProps[key1]);\n\t\treturn;\n\t}\n\tvar propEntries = Object.entries(processedProps);\n\tvar orderedEntries = processedBaseStyle ? Object.entries(processedBaseStyle) : [];\n\tcontributeDisplacedStyledDefaults(styledDefaults, processedProps, shorthands, function(k, v) {\n\t\treturn orderedEntries.push([k, v]);\n\t});\n\tvar compoundsByAnchor = /* @__PURE__ */ new Map();\n\tvar _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n\ttry {\n\t\tfor (var _iterator = compoundVariants[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n\t\t\tvar compoundVariant = _step.value;\n\t\t\tif (!compoundVariantMatches(compoundVariant, processedProps)) continue;\n\t\t\tvar { style } = compoundVariant;\n\t\t\tif (!isPlainObject(style)) continue;\n\t\t\tvar anchor = -1;\n\t\t\tfor (var selectorKey in compoundVariant) {\n\t\t\t\tif (selectorKey === \"style\") continue;\n\t\t\t\tfor (var index = propEntries.length - 1; index >= 0; index--) if (propEntries[index][0] === selectorKey) {\n\t\t\t\t\tanchor = Math.max(anchor, index);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tvar entries = compoundsByAnchor.get(anchor) || [];\n\t\t\tfor (var key2 in style) entries.push([key2, style[key2]]);\n\t\t\tcompoundsByAnchor.set(anchor, entries);\n\t\t}\n\t} catch (err) {\n\t\t_didIteratorError = true;\n\t\t_iteratorError = err;\n\t} finally {\n\t\ttry {\n\t\t\tif (!_iteratorNormalCompletion && _iterator.return != null) _iterator.return();\n\t\t} finally {\n\t\t\tif (_didIteratorError) throw _iteratorError;\n\t\t}\n\t}\n\tfor (var index1 = 0; index1 < orderedEntries.length; index1++) contribute(orderedEntries[index1][0], orderedEntries[index1][1]);\n\tvar beforeProps = compoundsByAnchor.get(-1);\n\tif (beforeProps) for (var index2 = 0; index2 < beforeProps.length; index2++) contribute(beforeProps[index2][0], beforeProps[index2][1]);\n\tfor (var index3 = 0; index3 < propEntries.length; index3++) {\n\t\tcontribute(propEntries[index3][0], propEntries[index3][1]);\n\t\tvar compounds = compoundsByAnchor.get(index3);\n\t\tif (compounds) for (var 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}\nvar getSplitStyles = function(props, staticConfig, theme, themeName, componentState, styleProps, parentSplitStyles, componentContext, groupContext, elementType, startedUnhydrated, debug, animationDriver) {\n\tvar _staticConfig_styleFrontend, _styleState_flatMediaKeys, _styleState_flatGroupKeys, _styleState_flatGroupMedia, _styleState_style;\n\tvar conf = getConfig();\n\tif ((_staticConfig_styleFrontend = staticConfig.styleFrontend) === null || _staticConfig_styleFrontend === void 0 ? void 0 : _staticConfig_styleFrontend.normalizeStaticConfig) staticConfig = staticConfig.styleFrontend.normalizeStaticConfig(staticConfig, conf);\n\tvar driver = animationDriver || (componentContext === null || componentContext === void 0 ? void 0 : componentContext.animationDriver) || conf.animations;\n\tvar resolvedDriver = (driver === null || driver === void 0 ? void 0 : driver.isStub) ? null : driver;\n\tif (props.passThrough) return null;\n\tif (isWeb && styleProps.isAnimated && (driver === null || driver === void 0 ? void 0 : driver.isReactNative) && !styleProps.noNormalize) styleProps.noNormalize = \"values\";\n\tvar { shorthands } = conf;\n\tvar { isHOC, isText, isInput, variants, isReactNative, inlineProps, parentStaticConfig, acceptsClassName } = staticConfig;\n\tvar viewProps = {};\n\tvar mediaState$1 = styleProps.mediaState || mediaState;\n\tvar shouldDoClasses = acceptsClassName && isWeb && !styleProps.noClass;\n\tvar rulesToInsert = void 0;\n\tvar classNames = {};\n\tprops.space;\n\tvar hasMedia = false;\n\tvar pseudoGroups;\n\tvar mediaGroups;\n\tvar className = staticConfig.passthroughClassName || \"\";\n\tif (className) shouldDoClasses = false;\n\tvar 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\tvar 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\tvar { fallbackProps } = styleProps;\n\t\tif (fallbackProps) styleState.props = new Proxy(props, { get(_, key9, val2) {\n\t\t\tif (!Reflect.has(props, key9)) return Reflect.get(fallbackProps, key9);\n\t\t\treturn Reflect.get(props, key9);\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\tvar { asChild } = props;\n\tvar { accept, neverSkipProps } = staticConfig;\n\tvar { noSkip, disableExpandShorthands, noExpand, styledContext } = styleProps;\n\tvar processedProps;\n\tvar styleFrontend = staticConfig.styleFrontend;\n\tif (styleFrontend && !props[STYLE_FRONTEND_PREPROCESSED]) processedProps = styleFrontend.preprocessProps(props, conf);\n\telse processedProps = props;\n\tvar { webContainerType } = conf.settings;\n\tvar parentVariants = parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.variants;\n\tvar mergeStylePropAtCurrentPosition = function(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\tvar isArray = Array.isArray(styleProp);\n\t\tvar length = isArray ? styleProp.length : 1;\n\t\tfor (var index = 0; index < length; index++) {\n\t\t\tvar style2 = isArray ? styleProp[index] : styleProp;\n\t\t\tif (!style2) continue;\n\t\t\tif (style2[\"$$css\"]) {\n\t\t\t\tfor (var key9 in style2) clearDirectStyle(styleState, key9);\n\t\t\t\tObject.assign(styleState.classNames, style2);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tvar normalized = normalizeStyle(style2);\n\t\t\tvar styleOriginals = shouldTrackStyleTokenProvenance ? styleOriginalValues.get(style2) : void 0;\n\t\t\tfor (var key12 in normalized) {\n\t\t\t\tif (normalized[key12] == null) continue;\n\t\t\t\tcontributeStyleValue(styleState, key12, normalized[key12], mergeStyle, styleOriginals === null || styleOriginals === void 0 ? void 0 : styleOriginals[key12]);\n\t\t\t}\n\t\t}\n\t};\n\tvar flushForwardStylesToClasses = function() {\n\t\tif (!shouldDoClasses) return;\n\t\tflushDirectStyles(styleState, true);\n\t};\n\tvar contributeProp = function(keyOg, valOg) {\n\t\tvar keyInit = keyOg;\n\t\tvar 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 (keyInit[0] === \"d\" && keyInit.startsWith(\"data-\")) 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 (keyInit === \"transition\" || keyInit === \"transitionProperty\" || keyInit === \"transitionDuration\" || keyInit === \"transitionTimingFunction\" || keyInit === \"transitionDelay\" || keyInit === \"transitionBehavior\") return;\n\t\tif (accept) {\n\t\t\tvar accepted = accept[keyInit];\n\t\t\tif ((accepted === \"style\" || accepted === \"textStyle\") && valInit && (typeof valInit === \"undefined\" ? \"undefined\" : _type_of(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\tvar defaults = getDefaultProps(staticConfig);\n\t\t\tif (defaults) {\n\t\t\t\tvar _defaults_keyOg;\n\t\t\t\tvar defaultVal = (_defaults_keyOg = defaults[keyOg]) !== null && _defaults_keyOg !== void 0 ? _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 === null || neverSkipProps === void 0 ? void 0 : neverSkipProps[keyInit])) {\n\t\t\tif (keyInit === \"group\");\n\t\t\tif (keyInit === \"container\" && valInit) {}\n\t\t\tif (keyInit === \"transition\" && typeof valInit === \"string\") {\n\t\t\t\tvar _driver_animations;\n\t\t\t\tvar animationConfig = driver === null || driver === void 0 ? void 0 : (_driver_animations = driver.animations) === null || _driver_animations === void 0 ? void 0 : _driver_animations[valInit];\n\t\t\t\tif (animationConfig && (driver === null || driver === void 0 ? void 0 : 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\tvar isValidStyleKeyInit = isValidStyleKey(keyInit, validStyles$1, accept);\n\t\tif (isWeb) {\n\t\t\tvar _driver_View;\n\t\t\tif ((staticConfig.isReactNative || styleProps.isAnimated && (driver === null || driver === void 0 ? void 0 : driver.isReactNative) && !((_driver_View = driver.View) === null || _driver_View === void 0 ? void 0 : _driver_View.acceptRenderProp)) && keyInit.startsWith(\"data-\")) {\n\t\t\t\tvar _viewProps2, _dataSet;\n\t\t\t\tkeyInit = keyInit.replace(\"data-\", \"\");\n\t\t\t\t(_viewProps2 = viewProps)[_dataSet = \"dataSet\"] || (_viewProps2[_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 (!isValidStyleKeyInit) {\n\t\t\tif (!isAndroid) {\n\t\t\t\tif (keyInit === \"elevationAndroid\") return;\n\t\t\t}\n\t\t\tif (keyInit === \"userSelect\") {\n\t\t\t\tkeyInit = \"selectable\";\n\t\t\t\tvalInit = valInit !== \"none\";\n\t\t\t} else if (keyInit === \"textOverflow\") {\n\t\t\t\tif (isText && valInit === \"ellipsis\") {\n\t\t\t\t\tvar _viewProps1, _viewProps22;\n\t\t\t\t\tvar _numberOfLines;\n\t\t\t\t\t(_numberOfLines = (_viewProps1 = viewProps).numberOfLines) !== null && _numberOfLines !== void 0 || (_viewProps1.numberOfLines = 1);\n\t\t\t\t\tvar _ellipsizeMode;\n\t\t\t\t\t(_ellipsizeMode = (_viewProps22 = viewProps).ellipsizeMode) !== null && _ellipsizeMode !== void 0 || (_viewProps22.ellipsizeMode = \"tail\");\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t} else if (keyInit.startsWith(\"data-\")) return;\n\t\t}\n\t\tvar isVariant = !isValidStyleKeyInit && variants && keyInit in variants;\n\t\tvar isStyleLikeKey = isValidStyleKeyInit || isVariant;\n\t\tvar isStyleProp = isValidStyleKeyInit || isVariant && !noExpand;\n\t\tif (isStyleProp && (asChild === \"except-style\" || asChild === \"except-style-web\")) return;\n\t\tvar shouldPassProp = !isStyleProp && isHOC || isHOC && parentVariants && keyInit in parentVariants || (inlineProps === null || inlineProps === void 0 ? void 0 : inlineProps.has(keyInit));\n\t\tvar parentVariant = parentVariants === null || parentVariants === void 0 ? void 0 : parentVariants[keyInit];\n\t\tvar isHOCShouldPassThrough = Boolean(isHOC && (isValidStyleKeyInit || parentVariant || keyInit in skipProps));\n\t\tvar 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 === null || variants === void 0 ? void 0 : 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 === null || neverSkipProps === void 0 ? void 0 : neverSkipProps[keyInit])) {\n\t\t\tvar _driver_animations1;\n\t\t\tif (keyInit in skipProps && !(keyInit === \"transition\" && typeof valInit === \"string\" && !(driver === null || driver === void 0 ? void 0 : (_driver_animations1 = driver.animations) === null || _driver_animations1 === void 0 ? void 0 : _driver_animations1[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\tvar disablePropMap = !isStyleLikeKey;\n\t\tif (!isHOC && isValidStyleKeyInit && valInit != null && !(valInit === \"unset\") && !(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, function(key9, val2, originalVal, conditionSource) {\n\t\t\tvar _parentStaticConfig_variants;\n\t\t\tvar isStyledContextProp = styledContext && key9 in styledContext;\n\t\t\tif (key9 === \"className\") {\n\t\t\t\tif (typeof val2 === \"string\" && val2) className = `${className} ${val2}`.trim();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (!isHOC && disablePropMap && !isStyledContextProp) {\n\t\t\t\tif (key9 in stylePropsAll && !isValidStyleKey(key9, validStyles$1, accept)) {\n\t\t\t\t\tif (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.`);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tviewProps[key9] = val2;\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, \"=>\", key9);\n\t\t\t\tlog(val2);\n\t\t\t\tconsole.groupEnd();\n\t\t\t}\n\t\t\tif (val2 == null) return;\n\t\t\tif (accept && key9 in accept) {\n\t\t\t\tviewProps[key9] = val2;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tvar isHostStyleKey = !isHOC && isValidStyleKey(key9, validStyles$1, accept) || isAndroid && key9 === \"elevation\";\n\t\t\tvar isContextProgramKey = !isHOC && Boolean(isStyledContextProp);\n\t\t\tif (conditionSource !== void 0) {\n\t\t\t\tif (isHostStyleKey || isContextProgramKey) contributeVariantClauseValue(styleState, key9, val2, conditionSource, mergeStyle, originalVal, !isHostStyleKey);\n\t\t\t\telse if (isHOC) {\n\t\t\t\t\tvar appended = appendFlatClause(viewProps[key9], conditionSource, val2);\n\t\t\t\t\tif (appended !== void 0) viewProps[key9] = appended;\n\t\t\t\t\telse if (process.env.NODE_ENV === \"development\") console.warn(`[tamagui] conditional variant value for \"${key9}\" is not string-representable; dropping the clause`);\n\t\t\t\t} 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.`);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (isHostStyleKey || isContextProgramKey) {\n\t\t\t\tcontributeStyleValue(styleState, key9, val2, mergeStyle, originalVal, !isHostStyleKey);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tisVariant = variants && key9 in variants;\n\t\t\tif (inlineProps === null || inlineProps === void 0 ? void 0 : inlineProps.has(key9)) {\n\t\t\t\tvar _props_key;\n\t\t\t\tviewProps[key9] = (_props_key = props[key9]) !== null && _props_key !== void 0 ? _props_key : val2;\n\t\t\t}\n\t\t\tif (isHOC && Boolean(parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : (_parentStaticConfig_variants = parentStaticConfig.variants) === null || _parentStaticConfig_variants === void 0 ? void 0 : _parentStaticConfig_variants[keyInit])) {\n\t\t\t\tpassDownProp(viewProps, key9, val2);\n\t\t\t\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\") {\n\t\t\t\t\tconsole.groupCollapsed(` - passing down prop ${key9}`);\n\t\t\t\t\tlog({\n\t\t\t\t\t\tval: val2,\n\t\t\t\t\t\tafter: { ...viewProps[key9] }\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 (key9 in stylePropsAll && !isValidStyleKey(key9, validStyles$1, accept)) {\n\t\t\t\t\tif (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.`);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tviewProps[key9] = val2;\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 (e) {}\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\tvar conditionalStates = styleState.flatStateKeys || null;\n\tvar usesSafeArea = !!styleState.flatUsesSafeArea;\n\tif ((_styleState_flatMediaKeys = styleState.flatMediaKeys) === null || _styleState_flatMediaKeys === void 0 ? void 0 : _styleState_flatMediaKeys.size) {\n\t\tif (!hasMedia) hasMedia = /* @__PURE__ */ new Set();\n\t\tif (typeof hasMedia !== \"boolean\") {\n\t\t\tvar _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n\t\t\ttry {\n\t\t\t\tfor (var _iterator = styleState.flatMediaKeys[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n\t\t\t\t\tvar key = _step.value;\n\t\t\t\t\thasMedia.add(key);\n\t\t\t\t}\n\t\t\t} catch (err) {\n\t\t\t\t_didIteratorError = true;\n\t\t\t\t_iteratorError = err;\n\t\t\t} finally {\n\t\t\t\ttry {\n\t\t\t\t\tif (!_iteratorNormalCompletion && _iterator.return != null) _iterator.return();\n\t\t\t\t} finally {\n\t\t\t\t\tif (_didIteratorError) throw _iteratorError;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tif ((_styleState_flatGroupKeys = styleState.flatGroupKeys) === null || _styleState_flatGroupKeys === void 0 ? void 0 : _styleState_flatGroupKeys.size) {\n\t\tpseudoGroups || (pseudoGroups = /* @__PURE__ */ new Set());\n\t\tvar _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = void 0;\n\t\ttry {\n\t\t\tfor (var _iterator1 = styleState.flatGroupKeys[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) {\n\t\t\t\tvar key1 = _step1.value;\n\t\t\t\tpseudoGroups.add(key1);\n\t\t\t}\n\t\t} catch (err) {\n\t\t\t_didIteratorError1 = true;\n\t\t\t_iteratorError1 = err;\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (!_iteratorNormalCompletion1 && _iterator1.return != null) _iterator1.return();\n\t\t\t} finally {\n\t\t\t\tif (_didIteratorError1) throw _iteratorError1;\n\t\t\t}\n\t\t}\n\t}\n\tif ((_styleState_flatGroupMedia = styleState.flatGroupMedia) === null || _styleState_flatGroupMedia === void 0 ? void 0 : _styleState_flatGroupMedia.size) {\n\t\tmediaGroups || (mediaGroups = /* @__PURE__ */ new Set());\n\t\tvar _iteratorNormalCompletion2 = true, _didIteratorError2 = false, _iteratorError2 = void 0;\n\t\ttry {\n\t\t\tfor (var _iterator2 = styleState.flatGroupMedia[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {\n\t\t\t\tvar key2 = _step2.value;\n\t\t\t\tmediaGroups.add(key2);\n\t\t\t}\n\t\t} catch (err) {\n\t\t\t_didIteratorError2 = true;\n\t\t\t_iteratorError2 = err;\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (!_iteratorNormalCompletion2 && _iterator2.return != null) _iterator2.return();\n\t\t\t} finally {\n\t\t\t\tif (_didIteratorError2) throw _iteratorError2;\n\t\t\t}\n\t\t}\n\t}\n\tvar effectiveTransition = (_styleState_style = styleState.style) === null || _styleState_style === void 0 ? void 0 : _styleState_style.transition;\n\tif (effectiveTransition != null && styleState.style && true) delete styleState.style.transition;\n\tif (styleState.style) {\n\t\tif (\"containerType\" in styleState.style) delete styleState.style.containerType;\n\t\tif (\"containerName\" in styleState.style) delete styleState.style.containerName;\n\t}\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 === null || driver === void 0 ? void 0 : driver.inputStyle) !== \"css\" : true)) styleToCSS(styleState.style);\n\t\t\t}\n\t\t}\n\t\tif (styleState.flatTransforms) {\n\t\t\tvar _styleState;\n\t\t\t(_styleState = styleState).style || (_styleState.style = {});\n\t\t\tmergeFlatTransforms(styleState.style, styleState.flatTransforms);\n\t\t}\n\t\tif (parentSplitStyles) {\n\t\t\tif (!shouldDoClasses) for (var key4 in parentSplitStyles.style) {\n\t\t\t\tvar _styleState1;\n\t\t\t\tif (key4 in classNames || styleState.style && key4 in styleState.style) continue;\n\t\t\t\t(_styleState1 = styleState).style || (_styleState1.style = {});\n\t\t\t\tstyleState.style[key4] = parentSplitStyles.style[key4];\n\t\t\t}\n\t\t}\n\t}\n\tif (viewProps.tabIndex === 0) {\n\t\tvar _viewProps;\n\t\tvar _accessible;\n\t\t(_accessible = (_viewProps = viewProps).accessible) !== null && _accessible !== void 0 || (_viewProps.accessible = true);\n\t}\n\tvar style = styleState.style;\n\tif (style === null || style === void 0 ? void 0 : style.fontFamily) {\n\t\tvar _getFont;\n\t\tvar faceInfo = (_getFont = getFont(style.fontFamily)) === null || _getFont === void 0 ? void 0 : _getFont.face;\n\t\tif (faceInfo) {\n\t\t\tvar _faceInfo_style_fontWeight_, _faceInfo_style_fontWeight;\n\t\t\tvar overrideFace = (_faceInfo_style_fontWeight = faceInfo[style.fontWeight]) === null || _faceInfo_style_fontWeight === void 0 ? void 0 : (_faceInfo_style_fontWeight_ = _faceInfo_style_fontWeight[style.fontStyle || \"normal\"]) === null || _faceInfo_style_fontWeight_ === void 0 ? void 0 : _faceInfo_style_fontWeight_.val;\n\t\t\tif (overrideFace) {\n\t\t\t\tstyle.fontFamily = overrideFace;\n\t\t\t\tstyleState.fontFamily = overrideFace;\n\t\t\t\tdelete style.fontWeight;\n\t\t\t\tdelete style.fontStyle;\n\t\t\t}\n\t\t}\n\t\tif (process.env.NODE_ENV === \"development\" && debug && debug !== \"profile\") log(`Found fontFamily native: ${style.fontFamily}`, faceInfo);\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\tvar provenance = {};\n\t\tvar hasProvenance = false;\n\t\tfor (var key6 in styleState.tokenProvenance) {\n\t\t\tprovenance[key6] = {\n\t\t\t\ttoken: styleState.tokenProvenance[key6],\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\tvar 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\tvar effectiveKeys = function(keys) {\n\t\t\tif (!keys) return;\n\t\t\tvar out = /* @__PURE__ */ new Set();\n\t\t\tvar _iteratorNormalCompletion4 = true, _didIteratorError4 = false, _iteratorError4 = void 0;\n\t\t\ttry {\n\t\t\t\tfor (var _iterator4 = keys[Symbol.iterator](), _step4; !(_iteratorNormalCompletion4 = (_step4 = _iterator4.next()).done); _iteratorNormalCompletion4 = true) {\n\t\t\t\t\tvar key9 = _step4.value;\n\t\t\t\t\tout.add(key9 === \"--t-x\" || key9 === \"--t-y\" ? \"translate\" : key9 === \"--t-scale-x\" || key9 === \"--t-scale-y\" ? \"scale\" : key9);\n\t\t\t\t}\n\t\t\t} catch (err) {\n\t\t\t\t_didIteratorError4 = true;\n\t\t\t\t_iteratorError4 = err;\n\t\t\t} finally {\n\t\t\t\ttry {\n\t\t\t\t\tif (!_iteratorNormalCompletion4 && _iterator4.return != null) _iterator4.return();\n\t\t\t\t} finally {\n\t\t\t\t\tif (_didIteratorError4) throw _iteratorError4;\n\t\t\t\t}\n\t\t\t}\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\tvar asChildExceptStyleLike = asChild === \"except-style\" || asChild === \"except-style-web\";\n\tif (!styleProps.noMergeStyle) {\n\t\tif (!asChildExceptStyleLike) {\n\t\t\tvar style1 = styleState.style;\n\t\t\tif (style1) viewProps.style = style1;\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\tvar 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 (var key8 in logs) log(key8, logs[key8]);\n\t\t\t} catch (e) {}\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\tvar 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\tvar hasScaleX = \"scaleX\" in flatTransforms;\n\tvar 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\tvar keys = [];\n\tfor (var key in flatTransforms) if (key !== \"x\" && key !== \"y\" && key !== \"rotate\" && key !== \"scale\" && key !== \"scaleX\" && key !== \"scaleY\") keys.push(key);\n\tkeys.sort(sortString);\n\tvar _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n\ttry {\n\t\tfor (var _iterator = keys[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n\t\t\tvar key1 = _step.value;\n\t\t\ttransform.push({ [mapTransformKeys[key1] || key1]: flatTransforms[key1] });\n\t\t}\n\t} catch (err) {\n\t\t_didIteratorError = true;\n\t\t_iteratorError = err;\n\t} finally {\n\t\ttry {\n\t\t\tif (!_iteratorNormalCompletion && _iterator.return != null) _iterator.return();\n\t\t} finally {\n\t\t\tif (_didIteratorError) throw _iteratorError;\n\t\t}\n\t}\n\tif (Array.isArray(target.transform)) transform.push(...target.transform);\n\ttarget.transform = transform;\n}\nfunction mergeStyle(styleState, key, val, _importance) {\n\tvar disableNormalize = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : false, originalVal = arguments.length > 5 ? arguments[5] : void 0;\n\tvar _staticConfig_parentStaticConfig, _staticConfig_parentStaticConfig1, _staticConfig_parentStaticConfig2, _contextConfig_propKeys;\n\tvar { viewProps, styleProps, staticConfig } = styleState;\n\tvar contextConfig = staticConfig.context || ((_staticConfig_parentStaticConfig = staticConfig.parentStaticConfig) === null || _staticConfig_parentStaticConfig === void 0 ? void 0 : _staticConfig_parentStaticConfig.context);\n\tvar contextProps = contextConfig === null || contextConfig === void 0 ? void 0 : contextConfig.props;\n\tvar inheritedContextPropKeys = !staticConfig.context || staticConfig.context === ((_staticConfig_parentStaticConfig1 = staticConfig.parentStaticConfig) === null || _staticConfig_parentStaticConfig1 === void 0 ? void 0 : _staticConfig_parentStaticConfig1.context) ? (_staticConfig_parentStaticConfig2 = staticConfig.parentStaticConfig) === null || _staticConfig_parentStaticConfig2 === void 0 ? void 0 : _staticConfig_parentStaticConfig2.contextProps : void 0;\n\tvar contextPropKeys = staticConfig.contextProps || inheritedContextPropKeys;\n\tif (contextProps && key in contextProps || (contextPropKeys === null || contextPropKeys === void 0 ? void 0 : contextPropKeys.includes(key)) || (contextConfig === null || contextConfig === void 0 ? void 0 : (_contextConfig_propKeys = contextConfig.propKeys) === null || _contextConfig_propKeys === void 0 ? void 0 : _contextConfig_propKeys.includes(key))) {\n\t\tvar _styleState_originalContextPropValues;\n\t\tvar _styleState;\n\t\t(_styleState = styleState).overriddenContextProps || (_styleState.overriddenContextProps = {});\n\t\tvar originalFromState = (_styleState_originalContextPropValues = styleState.originalContextPropValues) === null || _styleState_originalContextPropValues === void 0 ? void 0 : _styleState_originalContextPropValues[key];\n\t\tvar _ref;\n\t\tstyleState.overriddenContextProps[key] = (_ref = originalVal !== null && originalVal !== void 0 ? originalVal : originalFromState) !== null && _ref !== void 0 ? _ref : val;\n\t}\n\tif (key in stylePropsTransform) {\n\t\tvar _styleState1;\n\t\t(_styleState1 = styleState).flatTransforms || (_styleState1.flatTransforms = {});\n\t\tstyleState.flatTransforms[key] = val;\n\t} else {\n\t\tvar 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\tvar _styleState2;\n\t\t\t(_styleState2 = styleState).style || (_styleState2.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\tvar _styleState_conf_themes;\n\tvar tokenName = typeof originalVal === \"string\" ? originalVal : \"\";\n\tif (tokenName) {\n\t\tvar slash = tokenName.lastIndexOf(\"/\");\n\t\tvar 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.conf.themes) === null || _styleState_conf_themes === void 0 ? void 0 : _styleState_conf_themes[styleState.flatThemeName || \"\"]) || {}, tokenName) || Object.values(styleState.conf.tokensParsed).some(function(category) {\n\t\treturn Object.prototype.hasOwnProperty.call(category, tokenName);\n\t}))) {\n\t\tvar _styleState;\n\t\t((_styleState = styleState).tokenProvenance || (_styleState.tokenProvenance = {}))[key] = originalVal;\n\t} else if (styleState.tokenProvenance && key in styleState.tokenProvenance) delete styleState.tokenProvenance[key];\n}\nvar getSubStyle = function(styleState, _subKey, styleIn, avoidMergeTransform) {\n\tvar { staticConfig, conf, styleProps } = styleState;\n\tvar styleOut = {};\n\tvar originalValues;\n\tvar styleInOriginalValues = styleOriginalValues.get(styleIn);\n\tvar parentProps = styleState.props;\n\tstyleState.props = Object.create(parentProps, Object.getOwnPropertyDescriptors(styleIn));\n\ttry {\n\t\tvar _loop = function(key1) {\n\t\t\tvar val = styleIn[key1];\n\t\t\tkey1 = conf.shorthands[key1] || key1;\n\t\t\tif (!staticConfig.isHOC && key1 in skipProps && !styleProps.noSkip) return key = key1, \"continue\";\n\t\t\tpropMapper(key1, val, styleState, false, function(skey, sval, originalVal) {\n\t\t\t\tvar _styleInOriginalValues_skey;\n\t\t\t\tvar trackedOriginalVal = (_styleInOriginalValues_skey = styleInOriginalValues === null || styleInOriginalValues === void 0 ? void 0 : styleInOriginalValues[skey]) !== null && _styleInOriginalValues_skey !== void 0 ? _styleInOriginalValues_skey : originalVal;\n\t\t\t\tif (trackedOriginalVal !== void 0) {\n\t\t\t\t\toriginalValues || (originalValues = {});\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, key1);\n\t\t\t});\n\t\t\tkey = key1;\n\t\t};\n\t\tfor (var key in styleIn) _loop(key);\n\t} finally {\n\t\tstyleState.props = parentProps;\n\t}\n\tif (!avoidMergeTransform) {\n\t\tvar _styleState_style;\n\t\tvar parentTransform = (_styleState_style = styleState.style) === null || _styleState_style === void 0 ? void 0 : _styleState_style.transform;\n\t\tvar flatTransforms = styleState.flatTransforms;\n\t\tvar styleOutTransform = styleOut.transform;\n\t\tif (Array.isArray(styleOutTransform) && styleOutTransform.length) {\n\t\t\tvar len = styleOutTransform.length;\n\t\t\tif (Array.isArray(parentTransform)) {\n\t\t\t\tvar merged = [];\n\t\t\t\touter: for (var i = 0; i < parentTransform.length; i++) {\n\t\t\t\t\tvar pt = parentTransform[i];\n\t\t\t\t\tfor (var pk in pt) {\n\t\t\t\t\t\tfor (var j = 0; j < len; j++) for (var 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 (var i1 = 0; i1 < len; i1++) merged.push(styleOutTransform[i1]);\n\t\t\t\tstyleOut.transform = merged;\n\t\t\t}\n\t\t\tif (flatTransforms) outer: for (var fk in flatTransforms) {\n\t\t\t\tvar ck = fk === \"x\" ? \"translateX\" : fk === \"y\" ? \"translateY\" : fk;\n\t\t\t\tfor (var j1 = 0; j1 < len; j1++) for (var sk1 in styleOutTransform[j1]) {\n\t\t\t\t\tif (ck === sk1) 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};\nisWeb && React.useInsertionEffect;\nvar useSplitStyles = function(a, b, c, d, e, f, g, h, i, j, k, l, m) {\n\t\"use no memo\";\n\treturn getSplitStyles(a, b, c, d, e, f, g, h, i, j, k, l, m);\n};\nvar mergeTransform = function(obj, key, val) {\n\tvar backwards = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : false;\n\tvar _obj;\n\tif (typeof obj.transform === \"string\") return;\n\t(_obj = obj).transform || (_obj.transform = []);\n\tobj.transform[backwards ? \"unshift\" : \"push\"]({ [mapTransformKeys[key] || key]: val });\n};\nvar mapTransformKeys = {\n\tx: \"translateX\",\n\ty: \"translateY\"\n};\nfunction passDownProp(viewProps, key, val) {\n\tviewProps[key] = val;\n}\nfunction normalizeStyle(style) {\n\tvar out = {};\n\tfor (var key in style) {\n\t\tvar 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":";;;;;;;;;;;;;;;;;;;;;;;AAsBA,SAAS,SAAS,KAAK;CACtB;CACA,OAAO,OAAO,OAAO,WAAW,eAAe,IAAI,gBAAgB,SAAS,WAAW,OAAO;AAC/F;AACA,IAAI,kCAAkC,QAAQ,IAAI,aAAa,iBAAiB,QAAQ,IAAI,0CAA0C;AACtI,SAAS,uBAAuB,UAAU,QAAQ;CACjD,IAAI,MAAM,QAAQ,QAAQ,GAAG,OAAO,SAAS,KAAK,SAAS,OAAO;EACjE,OAAO,OAAO,GAAG,OAAO,MAAM;CAC/B,CAAC;CACD,OAAO,OA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G,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG;CACpE;CACA,OAAO,eAAe,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;AAC5D;AACA,IAAI,iBAAiB,SAAS,KAAK,KAAK,KAAK;CAC5C,IAAI,YAAY,UAAU,SAAS,KAAK,UAAU,OAAO,KAAK,IAAI,UAAU,KAAK;CACjF,IAAI;CACJ,IAAI,OAAO,IAAI,cAAc,UAAU;CACvC,CAAC,OAAO,KAAK,cAAc,KAAK,YAAY,CAAC;CAC7C,IAAI,UAAU,YAAY,YAAY,QAAQ,GAAG,iBAAiB,QAAQ,MAAM,IAAI,CAAC;AACtF;AACA,IAAI,mBAAmB;CACtB,GAAG;CACH,GAAG;AACJ;AACA,SAAS,aAAa,WAAW,KAAK,KAAK;CAC1C,UAAU,OAAO;AAClB;AACA,SAAS,eAAe,OAAO;CAC9B,IAAI,MAAM,CAAC;CACX,KAAK,IAAI,OAAO,OAAO;EACtB,IAAI,MAAM,MAAM;EAChB,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.native.js","names":[],"sources":["esm/helpers/getSplitStyles.native.js"],"sourcesContent":["import { isAndroid, isClient, isWeb } from \"@tamagui/constants\";\nimport { stylePropsAll, stylePropsText, stylePropsTransform, validStyles } from \"@tamagui/helpers\";\nimport React from \"react\";\nimport { STYLE_FRONTEND_PASSTHROUGH_PREFIX, STYLE_FRONTEND_PREPROCESSED } from \"./styleFrontend\";\nimport { getConfig, getFont } from \"../config\";\nimport { isDevTools } from \"../constants/isDevTools\";\nimport { mediaState } from \"./mediaState\";\nimport { fixStyles } from \"./expandStyles\";\nimport { styleToCSS } from \"./getCSSStylesAtomic\";\nimport { getDefaultProps } from \"./getDefaultProps\";\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\nfunction _type_of(obj) {\n\t\"@swc/helpers - typeof\";\n\treturn obj && typeof Symbol !== \"undefined\" && obj.constructor === Symbol ? \"symbol\" : typeof obj;\n}\nvar shouldTrackStyleTokenProvenance = process.env.NODE_ENV === \"development\" && process.env.TAMAGUI_ENABLE_STYLE_TOKEN_PROVENANCE === \"1\";\nfunction compoundMatcherMatches(expected, actual) {\n\tif (Array.isArray(expected)) return expected.some(function(value) {\n\t\treturn Object.is(value, actual);\n\t});\n\treturn Object.is(expected, actual);\n}\nfunction compoundVariantMatches(compoundVariant, props) {\n\tfor (var 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}\nvar styledDefaultsCache = /* @__PURE__ */ new WeakMap();\nfunction getStyledDefaults(staticConfig) {\n\tvar entries = styledDefaultsCache.get(staticConfig);\n\tif (entries === void 0) {\n\t\tentries = null;\n\t\tvar defaults = staticConfig.defaultProps;\n\t\tif (defaults) for (var key in defaults) (entries || (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 (var index = 0; index < styledDefaults.length; index++) {\n\t\tvar key = styledDefaults[index][0];\n\t\tvar styledValue = styledDefaults[index][1];\n\t\tvar 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\tvar processedBaseStyle = staticConfig.baseStyle;\n\tvar compoundVariants = staticConfig.compoundVariants;\n\tvar styledDefaults = getStyledDefaults(staticConfig);\n\tif (!(compoundVariants === null || compoundVariants === void 0 ? void 0 : compoundVariants.length)) {\n\t\tif (processedBaseStyle) for (var key in processedBaseStyle) contribute(key, processedBaseStyle[key]);\n\t\tcontributeDisplacedStyledDefaults(styledDefaults, processedProps, shorthands, contribute);\n\t\tfor (var key1 in processedProps) contribute(key1, processedProps[key1]);\n\t\treturn;\n\t}\n\tvar propEntries = Object.entries(processedProps);\n\tvar orderedEntries = processedBaseStyle ? Object.entries(processedBaseStyle) : [];\n\tcontributeDisplacedStyledDefaults(styledDefaults, processedProps, shorthands, function(k, v) {\n\t\treturn orderedEntries.push([k, v]);\n\t});\n\tvar compoundsByAnchor = /* @__PURE__ */ new Map();\n\tvar _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n\ttry {\n\t\tfor (var _iterator = compoundVariants[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n\t\t\tvar compoundVariant = _step.value;\n\t\t\tif (!compoundVariantMatches(compoundVariant, processedProps)) continue;\n\t\t\tvar { style } = compoundVariant;\n\t\t\tif (!isPlainObject(style)) continue;\n\t\t\tvar anchor = -1;\n\t\t\tfor (var selectorKey in compoundVariant) {\n\t\t\t\tif (selectorKey === \"style\") continue;\n\t\t\t\tfor (var index = propEntries.length - 1; index >= 0; index--) if (propEntries[index][0] === selectorKey) {\n\t\t\t\t\tanchor = Math.max(anchor, index);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tvar entries = compoundsByAnchor.get(anchor) || [];\n\t\t\tfor (var key2 in style) entries.push([key2, style[key2]]);\n\t\t\tcompoundsByAnchor.set(anchor, entries);\n\t\t}\n\t} catch (err) {\n\t\t_didIteratorError = true;\n\t\t_iteratorError = err;\n\t} finally {\n\t\ttry {\n\t\t\tif (!_iteratorNormalCompletion && _iterator.return != null) _iterator.return();\n\t\t} finally {\n\t\t\tif (_didIteratorError) throw _iteratorError;\n\t\t}\n\t}\n\tfor (var index1 = 0; index1 < orderedEntries.length; index1++) contribute(orderedEntries[index1][0], orderedEntries[index1][1]);\n\tvar beforeProps = compoundsByAnchor.get(-1);\n\tif (beforeProps) for (var index2 = 0; index2 < beforeProps.length; index2++) contribute(beforeProps[index2][0], beforeProps[index2][1]);\n\tfor (var index3 = 0; index3 < propEntries.length; index3++) {\n\t\tcontribute(propEntries[index3][0], propEntries[index3][1]);\n\t\tvar compounds = compoundsByAnchor.get(index3);\n\t\tif (compounds) for (var 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}\nvar getSplitStyles = function(props, staticConfig, theme, themeName, componentState, styleProps, parentSplitStyles, componentContext, groupContext, elementType, startedUnhydrated, debug, animationDriver) {\n\tvar _staticConfig_styleFrontend, _styleState_flatMediaKeys, _styleState_flatGroupKeys, _styleState_flatGroupMedia, _styleState_style;\n\tvar conf = getConfig();\n\tif ((_staticConfig_styleFrontend = staticConfig.styleFrontend) === null || _staticConfig_styleFrontend === void 0 ? void 0 : _staticConfig_styleFrontend.normalizeStaticConfig) staticConfig = staticConfig.styleFrontend.normalizeStaticConfig(staticConfig, conf);\n\tvar driver = animationDriver || (componentContext === null || componentContext === void 0 ? void 0 : componentContext.animationDriver) || conf.animations;\n\tvar resolvedDriver = (driver === null || driver === void 0 ? void 0 : driver.isStub) ? null : driver;\n\tif (props.passThrough) return null;\n\tif (isWeb && styleProps.isAnimated && (driver === null || driver === void 0 ? void 0 : driver.isReactNative) && !styleProps.noNormalize) styleProps.noNormalize = \"values\";\n\tvar { shorthands } = conf;\n\tvar { isHOC, isText, isInput, variants, isReactNative, inlineProps, parentStaticConfig, acceptsClassName } = staticConfig;\n\tvar viewProps = {};\n\tvar mediaState$1 = styleProps.mediaState || mediaState;\n\tvar shouldDoClasses = acceptsClassName && isWeb && !styleProps.noClass;\n\tvar rulesToInsert = void 0;\n\tvar classNames = {};\n\tprops.space;\n\tvar hasMedia = false;\n\tvar pseudoGroups;\n\tvar mediaGroups;\n\tvar className = staticConfig.passthroughClassName || \"\";\n\tif (className) shouldDoClasses = false;\n\tvar 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\tvar 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\tvar { fallbackProps } = styleProps;\n\t\tif (fallbackProps) styleState.props = new Proxy(props, { get(_, key8, val2) {\n\t\t\tif (!Reflect.has(props, key8)) return Reflect.get(fallbackProps, key8);\n\t\t\treturn Reflect.get(props, key8);\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\tvar { asChild } = props;\n\tvar { accept, neverSkipProps } = staticConfig;\n\tvar { noSkip, disableExpandShorthands, noExpand, styledContext } = styleProps;\n\tvar processedProps;\n\tvar styleFrontend = staticConfig.styleFrontend;\n\tif (styleFrontend && !props[STYLE_FRONTEND_PREPROCESSED]) processedProps = styleFrontend.preprocessProps(props, conf);\n\telse processedProps = props;\n\tvar { webContainerType } = conf.settings;\n\tvar parentVariants = parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.variants;\n\tvar mergeStylePropAtCurrentPosition = function(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\tvar isArray = Array.isArray(styleProp);\n\t\tvar length = isArray ? styleProp.length : 1;\n\t\tfor (var index = 0; index < length; index++) {\n\t\t\tvar style2 = isArray ? styleProp[index] : styleProp;\n\t\t\tif (!style2) continue;\n\t\t\tif (style2[\"$$css\"]) {\n\t\t\t\tfor (var key8 in style2) clearDirectStyle(styleState, key8);\n\t\t\t\tObject.assign(styleState.classNames, style2);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tvar normalized = normalizeStyle(style2);\n\t\t\tvar styleOriginals = shouldTrackStyleTokenProvenance ? styleOriginalValues.get(style2) : void 0;\n\t\t\tfor (var key12 in normalized) {\n\t\t\t\tif (normalized[key12] == null) continue;\n\t\t\t\tcontributeStyleValue(styleState, key12, normalized[key12], mergeStyle, styleOriginals === null || styleOriginals === void 0 ? void 0 : styleOriginals[key12]);\n\t\t\t}\n\t\t}\n\t};\n\tvar flushForwardStylesToClasses = function() {\n\t\tif (!shouldDoClasses) return;\n\t\tflushDirectStyles(styleState, true);\n\t};\n\tvar contributeProp = function(keyOg, valOg) {\n\t\tvar keyInit = keyOg;\n\t\tvar 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 (keyInit[0] === \"d\" && keyInit.startsWith(\"data-\")) 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 (keyInit === \"transition\" || keyInit === \"transitionProperty\" || keyInit === \"transitionDuration\" || keyInit === \"transitionTimingFunction\" || keyInit === \"transitionDelay\" || keyInit === \"transitionBehavior\") return;\n\t\tif (accept) {\n\t\t\tvar accepted = accept[keyInit];\n\t\t\tif ((accepted === \"style\" || accepted === \"textStyle\") && valInit && (typeof valInit === \"undefined\" ? \"undefined\" : _type_of(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\tvar defaults = getDefaultProps(staticConfig);\n\t\t\tif (defaults) {\n\t\t\t\tvar _defaults_keyOg;\n\t\t\t\tvar defaultVal = (_defaults_keyOg = defaults[keyOg]) !== null && _defaults_keyOg !== void 0 ? _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 === null || neverSkipProps === void 0 ? void 0 : neverSkipProps[keyInit])) {\n\t\t\tif (keyInit === \"group\");\n\t\t\tif (keyInit === \"container\" && valInit) {}\n\t\t\tif (keyInit === \"transition\" && typeof valInit === \"string\") {\n\t\t\t\tvar _driver_animations;\n\t\t\t\tvar animationConfig = driver === null || driver === void 0 ? void 0 : (_driver_animations = driver.animations) === null || _driver_animations === void 0 ? void 0 : _driver_animations[valInit];\n\t\t\t\tif (animationConfig && (driver === null || driver === void 0 ? void 0 : 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\tvar isValidStyleKeyInit = isValidStyleKey(keyInit, validStyles$1, accept);\n\t\tif (isWeb) {\n\t\t\tvar _driver_View;\n\t\t\tif ((staticConfig.isReactNative || styleProps.isAnimated && (driver === null || driver === void 0 ? void 0 : driver.isReactNative) && !((_driver_View = driver.View) === null || _driver_View === void 0 ? void 0 : _driver_View.acceptRenderProp)) && keyInit.startsWith(\"data-\")) {\n\t\t\t\tvar _viewProps2, _dataSet;\n\t\t\t\tkeyInit = keyInit.replace(\"data-\", \"\");\n\t\t\t\t(_viewProps2 = viewProps)[_dataSet = \"dataSet\"] || (_viewProps2[_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 (!isValidStyleKeyInit) {\n\t\t\tif (!isAndroid) {\n\t\t\t\tif (keyInit === \"elevationAndroid\") return;\n\t\t\t}\n\t\t\tif (keyInit === \"userSelect\") {\n\t\t\t\tkeyInit = \"selectable\";\n\t\t\t\tvalInit = valInit !== \"none\";\n\t\t\t} else if (keyInit === \"textOverflow\") {\n\t\t\t\tif (isText && valInit === \"ellipsis\") {\n\t\t\t\t\tvar _viewProps1, _viewProps22;\n\t\t\t\t\tvar _numberOfLines;\n\t\t\t\t\t(_numberOfLines = (_viewProps1 = viewProps).numberOfLines) !== null && _numberOfLines !== void 0 || (_viewProps1.numberOfLines = 1);\n\t\t\t\t\tvar _ellipsizeMode;\n\t\t\t\t\t(_ellipsizeMode = (_viewProps22 = viewProps).ellipsizeMode) !== null && _ellipsizeMode !== void 0 || (_viewProps22.ellipsizeMode = \"tail\");\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t} else if (keyInit.startsWith(\"data-\")) return;\n\t\t}\n\t\tvar isVariant = !isValidStyleKeyInit && variants && keyInit in variants;\n\t\tvar isStyleLikeKey = isValidStyleKeyInit || isVariant;\n\t\tvar isStyleProp = isValidStyleKeyInit || isVariant && !noExpand;\n\t\tif (isStyleProp && (asChild === \"except-style\" || asChild === \"except-style-web\")) return;\n\t\tvar shouldPassProp = !isStyleProp && isHOC || isHOC && parentVariants && keyInit in parentVariants || (inlineProps === null || inlineProps === void 0 ? void 0 : inlineProps.has(keyInit));\n\t\tvar parentVariant = parentVariants === null || parentVariants === void 0 ? void 0 : parentVariants[keyInit];\n\t\tvar isHOCShouldPassThrough = Boolean(isHOC && (isValidStyleKeyInit || parentVariant || keyInit in skipProps));\n\t\tvar 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 === null || variants === void 0 ? void 0 : 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 === null || neverSkipProps === void 0 ? void 0 : neverSkipProps[keyInit])) {\n\t\t\tvar _driver_animations1;\n\t\t\tif (keyInit in skipProps && !(keyInit === \"transition\" && typeof valInit === \"string\" && !(driver === null || driver === void 0 ? void 0 : (_driver_animations1 = driver.animations) === null || _driver_animations1 === void 0 ? void 0 : _driver_animations1[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\tvar disablePropMap = !isStyleLikeKey;\n\t\tif (!isHOC && isValidStyleKeyInit && valInit != null && !(valInit === \"unset\") && !(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, function(key8, val2, originalVal, conditionSource) {\n\t\t\tvar _parentStaticConfig_variants;\n\t\t\tvar isStyledContextProp = styledContext && key8 in styledContext;\n\t\t\tif (key8 === \"className\") {\n\t\t\t\tif (typeof val2 === \"string\" && val2) className = `${className} ${val2}`.trim();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (!isHOC && disablePropMap && !isStyledContextProp) {\n\t\t\t\tif (key8 in stylePropsAll && !isValidStyleKey(key8, validStyles$1, accept)) {\n\t\t\t\t\tif (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.`);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tviewProps[key8] = val2;\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, \"=>\", key8);\n\t\t\t\tlog(val2);\n\t\t\t\tconsole.groupEnd();\n\t\t\t}\n\t\t\tif (val2 == null) return;\n\t\t\tif (accept && key8 in accept) {\n\t\t\t\tviewProps[key8] = val2;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tvar isHostStyleKey = !isHOC && isValidStyleKey(key8, validStyles$1, accept) || isAndroid && key8 === \"elevation\";\n\t\t\tvar isContextProgramKey = !isHOC && Boolean(isStyledContextProp);\n\t\t\tif (conditionSource !== void 0) {\n\t\t\t\tif (isHostStyleKey || isContextProgramKey) contributeVariantClauseValue(styleState, key8, val2, conditionSource, mergeStyle, originalVal, !isHostStyleKey);\n\t\t\t\telse if (isHOC) {\n\t\t\t\t\tvar appended = appendFlatClause(viewProps[key8], conditionSource, val2);\n\t\t\t\t\tif (appended !== void 0) viewProps[key8] = appended;\n\t\t\t\t\telse if (process.env.NODE_ENV === \"development\") console.warn(`[tamagui] conditional variant value for \"${key8}\" is not string-representable; dropping the clause`);\n\t\t\t\t} 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.`);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (isHostStyleKey || isContextProgramKey) {\n\t\t\t\tcontributeStyleValue(styleState, key8, val2, mergeStyle, originalVal, !isHostStyleKey);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tisVariant = variants && key8 in variants;\n\t\t\tif (inlineProps === null || inlineProps === void 0 ? void 0 : inlineProps.has(key8)) {\n\t\t\t\tvar _props_key;\n\t\t\t\tviewProps[key8] = (_props_key = props[key8]) !== null && _props_key !== void 0 ? _props_key : val2;\n\t\t\t}\n\t\t\tif (isHOC && Boolean(parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : (_parentStaticConfig_variants = parentStaticConfig.variants) === null || _parentStaticConfig_variants === void 0 ? void 0 : _parentStaticConfig_variants[keyInit])) {\n\t\t\t\tpassDownProp(viewProps, key8, val2);\n\t\t\t\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\") {\n\t\t\t\t\tconsole.groupCollapsed(` - passing down prop ${key8}`);\n\t\t\t\t\tlog({\n\t\t\t\t\t\tval: val2,\n\t\t\t\t\t\tafter: { ...viewProps[key8] }\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 (key8 in stylePropsAll && !isValidStyleKey(key8, validStyles$1, accept)) {\n\t\t\t\t\tif (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.`);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tviewProps[key8] = val2;\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 (e) {}\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\tvar conditionalStates = styleState.flatStateKeys || null;\n\tvar usesSafeArea = !!styleState.flatUsesSafeArea;\n\tif ((_styleState_flatMediaKeys = styleState.flatMediaKeys) === null || _styleState_flatMediaKeys === void 0 ? void 0 : _styleState_flatMediaKeys.size) {\n\t\tif (!hasMedia) hasMedia = /* @__PURE__ */ new Set();\n\t\tif (typeof hasMedia !== \"boolean\") {\n\t\t\tvar _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n\t\t\ttry {\n\t\t\t\tfor (var _iterator = styleState.flatMediaKeys[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n\t\t\t\t\tvar key = _step.value;\n\t\t\t\t\thasMedia.add(key);\n\t\t\t\t}\n\t\t\t} catch (err) {\n\t\t\t\t_didIteratorError = true;\n\t\t\t\t_iteratorError = err;\n\t\t\t} finally {\n\t\t\t\ttry {\n\t\t\t\t\tif (!_iteratorNormalCompletion && _iterator.return != null) _iterator.return();\n\t\t\t\t} finally {\n\t\t\t\t\tif (_didIteratorError) throw _iteratorError;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tif ((_styleState_flatGroupKeys = styleState.flatGroupKeys) === null || _styleState_flatGroupKeys === void 0 ? void 0 : _styleState_flatGroupKeys.size) {\n\t\tpseudoGroups || (pseudoGroups = /* @__PURE__ */ new Set());\n\t\tvar _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = void 0;\n\t\ttry {\n\t\t\tfor (var _iterator1 = styleState.flatGroupKeys[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) {\n\t\t\t\tvar key1 = _step1.value;\n\t\t\t\tpseudoGroups.add(key1);\n\t\t\t}\n\t\t} catch (err) {\n\t\t\t_didIteratorError1 = true;\n\t\t\t_iteratorError1 = err;\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (!_iteratorNormalCompletion1 && _iterator1.return != null) _iterator1.return();\n\t\t\t} finally {\n\t\t\t\tif (_didIteratorError1) throw _iteratorError1;\n\t\t\t}\n\t\t}\n\t}\n\tif ((_styleState_flatGroupMedia = styleState.flatGroupMedia) === null || _styleState_flatGroupMedia === void 0 ? void 0 : _styleState_flatGroupMedia.size) {\n\t\tmediaGroups || (mediaGroups = /* @__PURE__ */ new Set());\n\t\tvar _iteratorNormalCompletion2 = true, _didIteratorError2 = false, _iteratorError2 = void 0;\n\t\ttry {\n\t\t\tfor (var _iterator2 = styleState.flatGroupMedia[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {\n\t\t\t\tvar key2 = _step2.value;\n\t\t\t\tmediaGroups.add(key2);\n\t\t\t}\n\t\t} catch (err) {\n\t\t\t_didIteratorError2 = true;\n\t\t\t_iteratorError2 = err;\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (!_iteratorNormalCompletion2 && _iterator2.return != null) _iterator2.return();\n\t\t\t} finally {\n\t\t\t\tif (_didIteratorError2) throw _iteratorError2;\n\t\t\t}\n\t\t}\n\t}\n\tvar effectiveTransition = (_styleState_style = styleState.style) === null || _styleState_style === void 0 ? void 0 : _styleState_style.transition;\n\tif (effectiveTransition != null && styleState.style && true) delete styleState.style.transition;\n\tif (styleState.style) {\n\t\tif (\"containerType\" in styleState.style) delete styleState.style.containerType;\n\t\tif (\"containerName\" in styleState.style) delete styleState.style.containerName;\n\t}\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 === null || driver === void 0 ? void 0 : driver.inputStyle) !== \"css\" : true)) styleToCSS(styleState.style);\n\t\t\t}\n\t\t}\n\t\tif (styleState.flatTransforms) {\n\t\t\tvar _styleState;\n\t\t\t(_styleState = styleState).style || (_styleState.style = {});\n\t\t\tmergeFlatTransforms(styleState.style, styleState.flatTransforms);\n\t\t}\n\t\tif (parentSplitStyles) {\n\t\t\tif (!shouldDoClasses) for (var key4 in parentSplitStyles.style) {\n\t\t\t\tvar _styleState1;\n\t\t\t\tif (key4 in classNames || styleState.style && key4 in styleState.style) continue;\n\t\t\t\t(_styleState1 = styleState).style || (_styleState1.style = {});\n\t\t\t\tstyleState.style[key4] = parentSplitStyles.style[key4];\n\t\t\t}\n\t\t}\n\t}\n\tif (viewProps.tabIndex === 0) {\n\t\tvar _viewProps;\n\t\tvar _accessible;\n\t\t(_accessible = (_viewProps = viewProps).accessible) !== null && _accessible !== void 0 || (_viewProps.accessible = true);\n\t}\n\tvar style = styleState.style;\n\tif (style === null || style === void 0 ? void 0 : style.fontFamily) {\n\t\tvar _getFont;\n\t\tvar faceInfo = (_getFont = getFont(style.fontFamily)) === null || _getFont === void 0 ? void 0 : _getFont.face;\n\t\tif (faceInfo) {\n\t\t\tvar _faceInfo_style_fontWeight_, _faceInfo_style_fontWeight;\n\t\t\tvar overrideFace = (_faceInfo_style_fontWeight = faceInfo[style.fontWeight]) === null || _faceInfo_style_fontWeight === void 0 ? void 0 : (_faceInfo_style_fontWeight_ = _faceInfo_style_fontWeight[style.fontStyle || \"normal\"]) === null || _faceInfo_style_fontWeight_ === void 0 ? void 0 : _faceInfo_style_fontWeight_.val;\n\t\t\tif (overrideFace) {\n\t\t\t\tstyle.fontFamily = overrideFace;\n\t\t\t\tstyleState.fontFamily = overrideFace;\n\t\t\t\tdelete style.fontWeight;\n\t\t\t\tdelete style.fontStyle;\n\t\t\t}\n\t\t}\n\t\tif (process.env.NODE_ENV === \"development\" && debug && debug !== \"profile\") log(`Found fontFamily native: ${style.fontFamily}`, faceInfo);\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\tvar provenance = {};\n\t\tvar hasProvenance = false;\n\t\tfor (var key5 in styleState.tokenProvenance) {\n\t\t\tprovenance[key5] = {\n\t\t\t\ttoken: styleState.tokenProvenance[key5],\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\tvar 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\tvar effectiveKeys = function(keys) {\n\t\t\tif (!keys) return;\n\t\t\tvar out = /* @__PURE__ */ new Set();\n\t\t\tvar _iteratorNormalCompletion4 = true, _didIteratorError4 = false, _iteratorError4 = void 0;\n\t\t\ttry {\n\t\t\t\tfor (var _iterator4 = keys[Symbol.iterator](), _step4; !(_iteratorNormalCompletion4 = (_step4 = _iterator4.next()).done); _iteratorNormalCompletion4 = true) {\n\t\t\t\t\tvar key8 = _step4.value;\n\t\t\t\t\tout.add(key8 === \"--t-x\" || key8 === \"--t-y\" ? \"translate\" : key8 === \"--t-scale-x\" || key8 === \"--t-scale-y\" ? \"scale\" : key8);\n\t\t\t\t}\n\t\t\t} catch (err) {\n\t\t\t\t_didIteratorError4 = true;\n\t\t\t\t_iteratorError4 = err;\n\t\t\t} finally {\n\t\t\t\ttry {\n\t\t\t\t\tif (!_iteratorNormalCompletion4 && _iterator4.return != null) _iterator4.return();\n\t\t\t\t} finally {\n\t\t\t\t\tif (_didIteratorError4) throw _iteratorError4;\n\t\t\t\t}\n\t\t\t}\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\tvar asChildExceptStyleLike = asChild === \"except-style\" || asChild === \"except-style-web\";\n\tif (!styleProps.noMergeStyle) {\n\t\tif (!asChildExceptStyleLike) {\n\t\t\tvar style1 = styleState.style;\n\t\t\tif (style1) viewProps.style = style1;\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\tvar 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 (var key7 in logs) log(key7, logs[key7]);\n\t\t\t} catch (e) {}\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\tvar 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\tvar hasScaleX = \"scaleX\" in flatTransforms;\n\tvar 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\tvar keys = [];\n\tfor (var key in flatTransforms) if (key !== \"x\" && key !== \"y\" && key !== \"rotate\" && key !== \"scale\" && key !== \"scaleX\" && key !== \"scaleY\") keys.push(key);\n\tkeys.sort(sortString);\n\tvar _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n\ttry {\n\t\tfor (var _iterator = keys[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n\t\t\tvar key1 = _step.value;\n\t\t\ttransform.push({ [mapTransformKeys[key1] || key1]: flatTransforms[key1] });\n\t\t}\n\t} catch (err) {\n\t\t_didIteratorError = true;\n\t\t_iteratorError = err;\n\t} finally {\n\t\ttry {\n\t\t\tif (!_iteratorNormalCompletion && _iterator.return != null) _iterator.return();\n\t\t} finally {\n\t\t\tif (_didIteratorError) throw _iteratorError;\n\t\t}\n\t}\n\tif (Array.isArray(target.transform)) transform.push(...target.transform);\n\ttarget.transform = transform;\n}\nfunction mergeStyle(styleState, key, val, _importance) {\n\tvar disableNormalize = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : false, originalVal = arguments.length > 5 ? arguments[5] : void 0;\n\tvar _staticConfig_parentStaticConfig, _staticConfig_parentStaticConfig1, _staticConfig_parentStaticConfig2, _contextConfig_propKeys;\n\tvar { viewProps, styleProps, staticConfig } = styleState;\n\tvar contextConfig = staticConfig.context || ((_staticConfig_parentStaticConfig = staticConfig.parentStaticConfig) === null || _staticConfig_parentStaticConfig === void 0 ? void 0 : _staticConfig_parentStaticConfig.context);\n\tvar contextProps = contextConfig === null || contextConfig === void 0 ? void 0 : contextConfig.props;\n\tvar inheritedContextPropKeys = !staticConfig.context || staticConfig.context === ((_staticConfig_parentStaticConfig1 = staticConfig.parentStaticConfig) === null || _staticConfig_parentStaticConfig1 === void 0 ? void 0 : _staticConfig_parentStaticConfig1.context) ? (_staticConfig_parentStaticConfig2 = staticConfig.parentStaticConfig) === null || _staticConfig_parentStaticConfig2 === void 0 ? void 0 : _staticConfig_parentStaticConfig2.contextProps : void 0;\n\tvar contextPropKeys = staticConfig.contextProps || inheritedContextPropKeys;\n\tif (contextProps && key in contextProps || (contextPropKeys === null || contextPropKeys === void 0 ? void 0 : contextPropKeys.includes(key)) || (contextConfig === null || contextConfig === void 0 ? void 0 : (_contextConfig_propKeys = contextConfig.propKeys) === null || _contextConfig_propKeys === void 0 ? void 0 : _contextConfig_propKeys.includes(key))) {\n\t\tvar _styleState_originalContextPropValues;\n\t\tvar _styleState;\n\t\t(_styleState = styleState).overriddenContextProps || (_styleState.overriddenContextProps = {});\n\t\tvar originalFromState = (_styleState_originalContextPropValues = styleState.originalContextPropValues) === null || _styleState_originalContextPropValues === void 0 ? void 0 : _styleState_originalContextPropValues[key];\n\t\tvar _ref;\n\t\tstyleState.overriddenContextProps[key] = (_ref = originalVal !== null && originalVal !== void 0 ? originalVal : originalFromState) !== null && _ref !== void 0 ? _ref : val;\n\t}\n\tif (key in stylePropsTransform) {\n\t\tvar _styleState1;\n\t\t(_styleState1 = styleState).flatTransforms || (_styleState1.flatTransforms = {});\n\t\tstyleState.flatTransforms[key] = val;\n\t} else {\n\t\tvar 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\tvar _styleState2;\n\t\t\t(_styleState2 = styleState).style || (_styleState2.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\tvar _styleState_conf_themes;\n\tvar tokenName = typeof originalVal === \"string\" ? originalVal : \"\";\n\tif (tokenName) {\n\t\tvar slash = tokenName.lastIndexOf(\"/\");\n\t\tvar 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.conf.themes) === null || _styleState_conf_themes === void 0 ? void 0 : _styleState_conf_themes[styleState.flatThemeName || \"\"]) || {}, tokenName) || Object.values(styleState.conf.tokensParsed).some(function(category) {\n\t\treturn Object.prototype.hasOwnProperty.call(category, tokenName);\n\t}))) {\n\t\tvar _styleState;\n\t\t((_styleState = styleState).tokenProvenance || (_styleState.tokenProvenance = {}))[key] = originalVal;\n\t} else if (styleState.tokenProvenance && key in styleState.tokenProvenance) delete styleState.tokenProvenance[key];\n}\nvar getSubStyle = function(styleState, _subKey, styleIn, avoidMergeTransform) {\n\tvar { staticConfig, conf, styleProps } = styleState;\n\tvar styleOut = {};\n\tvar originalValues;\n\tvar styleInOriginalValues = styleOriginalValues.get(styleIn);\n\tvar parentProps = styleState.props;\n\tstyleState.props = Object.create(parentProps, Object.getOwnPropertyDescriptors(styleIn));\n\ttry {\n\t\tvar _loop = function(key1) {\n\t\t\tvar val = styleIn[key1];\n\t\t\tkey1 = conf.shorthands[key1] || key1;\n\t\t\tif (!staticConfig.isHOC && key1 in skipProps && !styleProps.noSkip) return key = key1, \"continue\";\n\t\t\tpropMapper(key1, val, styleState, false, function(skey, sval, originalVal) {\n\t\t\t\tvar _styleInOriginalValues_skey;\n\t\t\t\tvar trackedOriginalVal = (_styleInOriginalValues_skey = styleInOriginalValues === null || styleInOriginalValues === void 0 ? void 0 : styleInOriginalValues[skey]) !== null && _styleInOriginalValues_skey !== void 0 ? _styleInOriginalValues_skey : originalVal;\n\t\t\t\tif (trackedOriginalVal !== void 0) {\n\t\t\t\t\toriginalValues || (originalValues = {});\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, key1);\n\t\t\t});\n\t\t\tkey = key1;\n\t\t};\n\t\tfor (var key in styleIn) _loop(key);\n\t} finally {\n\t\tstyleState.props = parentProps;\n\t}\n\tif (!avoidMergeTransform) {\n\t\tvar _styleState_style;\n\t\tvar parentTransform = (_styleState_style = styleState.style) === null || _styleState_style === void 0 ? void 0 : _styleState_style.transform;\n\t\tvar flatTransforms = styleState.flatTransforms;\n\t\tvar styleOutTransform = styleOut.transform;\n\t\tif (Array.isArray(styleOutTransform) && styleOutTransform.length) {\n\t\t\tvar len = styleOutTransform.length;\n\t\t\tif (Array.isArray(parentTransform)) {\n\t\t\t\tvar merged = [];\n\t\t\t\touter: for (var i = 0; i < parentTransform.length; i++) {\n\t\t\t\t\tvar pt = parentTransform[i];\n\t\t\t\t\tfor (var pk in pt) {\n\t\t\t\t\t\tfor (var j = 0; j < len; j++) for (var 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 (var i1 = 0; i1 < len; i1++) merged.push(styleOutTransform[i1]);\n\t\t\t\tstyleOut.transform = merged;\n\t\t\t}\n\t\t\tif (flatTransforms) outer: for (var fk in flatTransforms) {\n\t\t\t\tvar ck = fk === \"x\" ? \"translateX\" : fk === \"y\" ? \"translateY\" : fk;\n\t\t\t\tfor (var j1 = 0; j1 < len; j1++) for (var sk1 in styleOutTransform[j1]) {\n\t\t\t\t\tif (ck === sk1) 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};\nisWeb && React.useInsertionEffect;\nvar useSplitStyles = function(a, b, c, d, e, f, g, h, i, j, k, l, m) {\n\t\"use no memo\";\n\treturn getSplitStyles(a, b, c, d, e, f, g, h, i, j, k, l, m);\n};\nvar mergeTransform = function(obj, key, val) {\n\tvar backwards = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : false;\n\tvar _obj;\n\tif (typeof obj.transform === \"string\") return;\n\t(_obj = obj).transform || (_obj.transform = []);\n\tobj.transform[backwards ? \"unshift\" : \"push\"]({ [mapTransformKeys[key] || key]: val });\n};\nvar mapTransformKeys = {\n\tx: \"translateX\",\n\ty: \"translateY\"\n};\nfunction passDownProp(viewProps, key, val) {\n\tviewProps[key] = val;\n}\nfunction normalizeStyle(style) {\n\tvar out = {};\n\tfor (var key in style) {\n\t\tvar 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":";;;;;;;;;;;;;;;;;;;;;;;AAsBA,SAAS,SAAS,KAAK;CACtB;CACA,OAAO,OAAO,OAAO,WAAW,eAAe,IAAI,gBAAgB,SAAS,WAAW,OAAO;AAC/F;AACA,IAAI,kCAAkC,QAAQ,IAAI,aAAa,iBAAiB,QAAQ,IAAI,0CAA0C;AACtI,SAAS,uBAAuB,UAAU,QAAQ;CACjD,IAAI,MAAM,QAAQ,QAAQ,GAAG,OAAO,SAAS,KAAK,SAAS,OAAO;EACjE,OAAO,OAAO,GAAG,OAAO,MAAM;CAC/B,CAAC;CACD,OAAO,OAAO,GAAG,UAAU,MAAM;AAClC;AACA,SAAS,uBAAuB,iBAAiB,OAAO;CACvD,KAAK,IAAI,OAAO,iBAAiB;EAChC,IAAI,QAAQ,SAAS;EACrB,IAAI,CAAC,uBAAuB,gBAAgB,MAAM,MAAM,IAAI,GAAG,OAAO;CACvE;CACA,OAAO;AACR;AACA,IAAI,sCAAsC,IAAI,QAAQ;AACtD,SAAS,kBAAkB,cAAc;CACxC,IAAI,UAAU,oBAAoB,IAAI,YAAY;CAClD,IAAI,YAAY,KAAK,GAAG;EACvB,UAAU;EACV,IAAI,WAAW,aAAa;EAC5B,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AU,YAAY,YAAY,QAAQ,GAAG,iBAAiB,QAAQ,MAAM,IAAI,CAAC;AACtF;AACA,IAAI,mBAAmB;CACtB,GAAG;CACH,GAAG;AACJ;AACA,SAAS,aAAa,WAAW,KAAK,KAAK;CAC1C,UAAU,OAAO;AAClB;AACA,SAAS,eAAe,OAAO;CAC9B,IAAI,MAAM,CAAC;CACX,KAAK,IAAI,OAAO,OAAO;EACtB,IAAI,MAAM,MAAM;EAChB,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,16 +1,10 @@
|
|
|
1
|
-
import { normalizeCSSColor } from "@tamagui/normalize-css-color";
|
|
2
1
|
import { createCSSVariable, getVariableValue } from "../createVariable.mjs";
|
|
3
2
|
|
|
4
|
-
const variableKey = (val) => {
|
|
5
|
-
if (typeof val !== "string") return val;
|
|
6
|
-
const color = normalizeCSSColor(val);
|
|
7
|
-
return color == null ? val : `#${color.toString(16).padStart(8, "0")}`;
|
|
8
|
-
};
|
|
9
3
|
let variableGeneration = 0;
|
|
10
4
|
const getVariableGeneration = () => variableGeneration;
|
|
11
5
|
const registerCSSVariable = (v) => {
|
|
12
6
|
if (!process.env.TAMAGUI_DID_OUTPUT_CSS) {
|
|
13
|
-
const key =
|
|
7
|
+
const key = getVariableValue(v);
|
|
14
8
|
if (tokensValueToVariable.has(key) || tokensValueToVariable.size < 1e4) {
|
|
15
9
|
tokensValueToVariable.set(key, v);
|
|
16
10
|
variableGeneration++;
|
|
@@ -29,9 +23,8 @@ const autoVariables = [];
|
|
|
29
23
|
const serializeVariables = (variables) => variables.map((v) => `--${v.name}:${v.val}`).join(";");
|
|
30
24
|
const getAutoVariableCSS = () => serializeVariables(autoVariables);
|
|
31
25
|
const getOrCreateVariable = (val) => {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
return tokensValueToVariable.get(key);
|
|
26
|
+
if (tokensValueToVariable.has(val)) {
|
|
27
|
+
return tokensValueToVariable.get(val);
|
|
35
28
|
}
|
|
36
29
|
if (tokensValueToVariable.size >= 1e4) {
|
|
37
30
|
return {
|
|
@@ -47,7 +40,7 @@ const getOrCreateVariable = (val) => {
|
|
|
47
40
|
name,
|
|
48
41
|
variable
|
|
49
42
|
};
|
|
50
|
-
tokensValueToVariable.set(
|
|
43
|
+
tokensValueToVariable.set(val, v);
|
|
51
44
|
autoVariables.push(v);
|
|
52
45
|
variableGeneration++;
|
|
53
46
|
return v;
|
|
@@ -57,9 +50,8 @@ const mutatedAutoVariables = [];
|
|
|
57
50
|
const mutatedTokensValueToVariable = /* @__PURE__ */ new Map();
|
|
58
51
|
const getMutatedAutoVariableCSS = () => serializeVariables(mutatedAutoVariables);
|
|
59
52
|
const getOrCreateMutatedVariable = (val) => {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
return mutatedTokensValueToVariable.get(key);
|
|
53
|
+
if (mutatedTokensValueToVariable.has(val)) {
|
|
54
|
+
return mutatedTokensValueToVariable.get(val);
|
|
63
55
|
}
|
|
64
56
|
if (mutatedTokensValueToVariable.size >= 1e4) {
|
|
65
57
|
return {
|
|
@@ -75,7 +67,7 @@ const getOrCreateMutatedVariable = (val) => {
|
|
|
75
67
|
name,
|
|
76
68
|
variable
|
|
77
69
|
};
|
|
78
|
-
mutatedTokensValueToVariable.set(
|
|
70
|
+
mutatedTokensValueToVariable.set(val, v);
|
|
79
71
|
mutatedAutoVariables.push(v);
|
|
80
72
|
return v;
|
|
81
73
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registerCSSVariable.js","names":[],"sources":["esm/helpers/registerCSSVariable.js"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"registerCSSVariable.js","names":[],"sources":["esm/helpers/registerCSSVariable.js"],"sourcesContent":["import { createCSSVariable, getVariableValue } from \"../createVariable\";\nlet variableGeneration = 0;\nconst getVariableGeneration = () => variableGeneration;\nconst registerCSSVariable = (v) => {\n if (!process.env.TAMAGUI_DID_OUTPUT_CSS) {\n const key = getVariableValue(v);\n if (tokensValueToVariable.has(key) || tokensValueToVariable.size < 1e4) {\n tokensValueToVariable.set(key, v);\n variableGeneration++;\n }\n }\n};\nconst variableToCSS = (v, unitless = false) => {\n if (!process.env.TAMAGUI_DID_OUTPUT_CSS) {\n return `--${process.env.TAMAGUI_CSS_VARIABLE_PREFIX || \"\"}${createCSSVariable(\n v.name,\n false\n )}:${!unitless && typeof v.val === \"number\" ? `${v.val}px` : v.val}`;\n }\n return \"\";\n};\nconst tokensValueToVariable = /* @__PURE__ */ new Map();\nlet autoVarId = 0;\nconst autoVariables = [];\nconst serializeVariables = (variables) => variables.map((v) => `--${v.name}:${v.val}`).join(\";\");\nconst getAutoVariableCSS = () => serializeVariables(autoVariables);\nconst getOrCreateVariable = (val) => {\n if (tokensValueToVariable.has(val)) {\n return tokensValueToVariable.get(val);\n }\n if (tokensValueToVariable.size >= 1e4) {\n return { val, name: \"\", variable: String(val) };\n }\n const name = `t${autoVarId++}`;\n const variable = `var(--${name})`;\n const v = { val, name, variable };\n tokensValueToVariable.set(val, v);\n autoVariables.push(v);\n variableGeneration++;\n return v;\n};\nlet mutatedVarId = 1e4;\nconst mutatedAutoVariables = [];\nconst mutatedTokensValueToVariable = /* @__PURE__ */ new Map();\nconst getMutatedAutoVariableCSS = () => serializeVariables(mutatedAutoVariables);\nconst getOrCreateMutatedVariable = (val) => {\n if (mutatedTokensValueToVariable.has(val)) {\n return mutatedTokensValueToVariable.get(val);\n }\n if (mutatedTokensValueToVariable.size >= 1e4) {\n return { val, name: \"\", variable: String(val) };\n }\n const name = `t${mutatedVarId++}`;\n const variable = `var(--${name})`;\n const v = { val, name, variable };\n mutatedTokensValueToVariable.set(val, v);\n mutatedAutoVariables.push(v);\n return v;\n};\nconst getCSSVariableCacheStats = () => ({\n auto: tokensValueToVariable.size,\n autoDeclarations: autoVariables.length,\n mutated: mutatedTokensValueToVariable.size,\n mutatedDeclarations: mutatedAutoVariables.length,\n autoRetainedBytes: [...tokensValueToVariable].reduce((bytes, [key, value]) => {\n const variable = value;\n return bytes + String(key).length + String(variable.val ?? \"\").length + String(variable.name ?? \"\").length + String(variable.variable ?? \"\").length;\n }, 0),\n autoCSSBytes: getAutoVariableCSS().length\n});\nexport {\n autoVariables,\n getAutoVariableCSS,\n getCSSVariableCacheStats,\n getMutatedAutoVariableCSS,\n getOrCreateMutatedVariable,\n getOrCreateVariable,\n getVariableGeneration,\n mutatedAutoVariables,\n registerCSSVariable,\n tokensValueToVariable,\n variableToCSS\n};\n//# sourceMappingURL=registerCSSVariable.js.map\n"],"mappings":";;;AACA,IAAI,qBAAqB;AACzB,MAAM,8BAA8B;AACpC,MAAM,uBAAuB,MAAM;CACjC,IAAI,CAAC,QAAQ,IAAI,wBAAwB;EACvC,MAAM,MAAM,iBAAiB,CAAC;EAC9B,IAAI,sBAAsB,IAAI,GAAG,KAAK,sBAAsB,OAAO,KAAK;GACtE,sBAAsB,IAAI,KAAK,CAAC;GAChC;EACF;CACF;AACF;AACA,MAAM,iBAAiB,GAAG,WAAW,UAAU;CAC7C,IAAI,CAAC,QAAQ,IAAI,wBAAwB;EACvC,OAAO,KAAK,QAAQ,IAAI,+BAA+B,KAAK,kBAC1D,EAAE,MACF,KACF,EAAE,GAAG,CAAC,YAAY,OAAO,EAAE,QAAQ,WAAW,GAAG,EAAE,IAAI,MAAM,EAAE;CACjE;CACA,OAAO;AACT;AACA,MAAM,wCAAwC,IAAI,IAAI;AACtD,IAAI,YAAY;AAChB,MAAM,gBAAgB,CAAC;AACvB,MAAM,sBAAsB,cAAc,UAAU,KAAK,MAAM,KAAK,EAAE,KAAK,GAAG,EAAE,KAAK,EAAE,KAAK,GAAG;AAC/F,MAAM,2BAA2B,mBAAmB,aAAa;AACjE,MAAM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,cAAc,mBAAmB,EAAE;AACrC"}
|
|
@@ -1,18 +1,12 @@
|
|
|
1
|
-
import { normalizeCSSColor } from "@tamagui/normalize-css-color";
|
|
2
1
|
import { createCSSVariable, getVariableValue } from "../createVariable.native.js";
|
|
3
2
|
|
|
4
|
-
var variableKey = function(val) {
|
|
5
|
-
if (typeof val !== "string") return val;
|
|
6
|
-
var color = normalizeCSSColor(val);
|
|
7
|
-
return color == null ? val : `#${color.toString(16).padStart(8, "0")}`;
|
|
8
|
-
};
|
|
9
3
|
var variableGeneration = 0;
|
|
10
4
|
var getVariableGeneration = function() {
|
|
11
5
|
return variableGeneration;
|
|
12
6
|
};
|
|
13
7
|
var registerCSSVariable = function(v) {
|
|
14
8
|
if (!process.env.TAMAGUI_DID_OUTPUT_CSS) {
|
|
15
|
-
var key =
|
|
9
|
+
var key = getVariableValue(v);
|
|
16
10
|
if (tokensValueToVariable.has(key) || tokensValueToVariable.size < 1e4) {
|
|
17
11
|
tokensValueToVariable.set(key, v);
|
|
18
12
|
variableGeneration++;
|
|
@@ -38,9 +32,8 @@ var getAutoVariableCSS = function() {
|
|
|
38
32
|
return serializeVariables(autoVariables);
|
|
39
33
|
};
|
|
40
34
|
var getOrCreateVariable = function(val) {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
return tokensValueToVariable.get(key);
|
|
35
|
+
if (tokensValueToVariable.has(val)) {
|
|
36
|
+
return tokensValueToVariable.get(val);
|
|
44
37
|
}
|
|
45
38
|
if (tokensValueToVariable.size >= 1e4) {
|
|
46
39
|
return {
|
|
@@ -56,7 +49,7 @@ var getOrCreateVariable = function(val) {
|
|
|
56
49
|
name,
|
|
57
50
|
variable
|
|
58
51
|
};
|
|
59
|
-
tokensValueToVariable.set(
|
|
52
|
+
tokensValueToVariable.set(val, v);
|
|
60
53
|
autoVariables.push(v);
|
|
61
54
|
variableGeneration++;
|
|
62
55
|
return v;
|
|
@@ -68,9 +61,8 @@ var getMutatedAutoVariableCSS = function() {
|
|
|
68
61
|
return serializeVariables(mutatedAutoVariables);
|
|
69
62
|
};
|
|
70
63
|
var getOrCreateMutatedVariable = function(val) {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
return mutatedTokensValueToVariable.get(key);
|
|
64
|
+
if (mutatedTokensValueToVariable.has(val)) {
|
|
65
|
+
return mutatedTokensValueToVariable.get(val);
|
|
74
66
|
}
|
|
75
67
|
if (mutatedTokensValueToVariable.size >= 1e4) {
|
|
76
68
|
return {
|
|
@@ -86,7 +78,7 @@ var getOrCreateMutatedVariable = function(val) {
|
|
|
86
78
|
name,
|
|
87
79
|
variable
|
|
88
80
|
};
|
|
89
|
-
mutatedTokensValueToVariable.set(
|
|
81
|
+
mutatedTokensValueToVariable.set(val, v);
|
|
90
82
|
mutatedAutoVariables.push(v);
|
|
91
83
|
return v;
|
|
92
84
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registerCSSVariable.native.js","names":[],"sources":["esm/helpers/registerCSSVariable.native.js"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"registerCSSVariable.native.js","names":[],"sources":["esm/helpers/registerCSSVariable.native.js"],"sourcesContent":["import { createCSSVariable, getVariableValue } from \"../createVariable\";\nvar variableGeneration = 0;\nvar getVariableGeneration = function() {\n return variableGeneration;\n};\nvar registerCSSVariable = function(v) {\n if (!process.env.TAMAGUI_DID_OUTPUT_CSS) {\n var key = getVariableValue(v);\n if (tokensValueToVariable.has(key) || tokensValueToVariable.size < 1e4) {\n tokensValueToVariable.set(key, v);\n variableGeneration++;\n }\n }\n};\nvar variableToCSS = function(v) {\n var unitless = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;\n if (!process.env.TAMAGUI_DID_OUTPUT_CSS) {\n return `--${process.env.TAMAGUI_CSS_VARIABLE_PREFIX || \"\"}${createCSSVariable(v.name, false)}:${!unitless && typeof v.val === \"number\" ? `${v.val}px` : v.val}`;\n }\n return \"\";\n};\nvar tokensValueToVariable = /* @__PURE__ */ new Map();\nvar autoVarId = 0;\nvar autoVariables = [];\nvar serializeVariables = function(variables) {\n return variables.map(function(v) {\n return `--${v.name}:${v.val}`;\n }).join(\";\");\n};\nvar getAutoVariableCSS = function() {\n return serializeVariables(autoVariables);\n};\nvar getOrCreateVariable = function(val) {\n if (tokensValueToVariable.has(val)) {\n return tokensValueToVariable.get(val);\n }\n if (tokensValueToVariable.size >= 1e4) {\n return {\n val,\n name: \"\",\n variable: String(val)\n };\n }\n var name = `t${autoVarId++}`;\n var variable = `var(--${name})`;\n var v = {\n val,\n name,\n variable\n };\n tokensValueToVariable.set(val, v);\n autoVariables.push(v);\n variableGeneration++;\n return v;\n};\nvar mutatedVarId = 1e4;\nvar mutatedAutoVariables = [];\nvar mutatedTokensValueToVariable = /* @__PURE__ */ new Map();\nvar getMutatedAutoVariableCSS = function() {\n return serializeVariables(mutatedAutoVariables);\n};\nvar getOrCreateMutatedVariable = function(val) {\n if (mutatedTokensValueToVariable.has(val)) {\n return mutatedTokensValueToVariable.get(val);\n }\n if (mutatedTokensValueToVariable.size >= 1e4) {\n return {\n val,\n name: \"\",\n variable: String(val)\n };\n }\n var name = `t${mutatedVarId++}`;\n var variable = `var(--${name})`;\n var v = {\n val,\n name,\n variable\n };\n mutatedTokensValueToVariable.set(val, v);\n mutatedAutoVariables.push(v);\n return v;\n};\nvar getCSSVariableCacheStats = function() {\n return {\n auto: tokensValueToVariable.size,\n autoDeclarations: autoVariables.length,\n mutated: mutatedTokensValueToVariable.size,\n mutatedDeclarations: mutatedAutoVariables.length,\n autoRetainedBytes: [\n ...tokensValueToVariable\n ].reduce(function(bytes, param) {\n var [key, value] = param;\n var variable = value;\n var _variable_val, _variable_name, _variable_variable;\n return bytes + String(key).length + String((_variable_val = variable.val) !== null && _variable_val !== void 0 ? _variable_val : \"\").length + String((_variable_name = variable.name) !== null && _variable_name !== void 0 ? _variable_name : \"\").length + String((_variable_variable = variable.variable) !== null && _variable_variable !== void 0 ? _variable_variable : \"\").length;\n }, 0),\n autoCSSBytes: getAutoVariableCSS().length\n };\n};\nexport {\n autoVariables,\n getAutoVariableCSS,\n getCSSVariableCacheStats,\n getMutatedAutoVariableCSS,\n getOrCreateMutatedVariable,\n getOrCreateVariable,\n getVariableGeneration,\n mutatedAutoVariables,\n registerCSSVariable,\n tokensValueToVariable,\n variableToCSS\n};\n//# sourceMappingURL=registerCSSVariable.js.map\n"],"mappings":";;;AACA,IAAI,qBAAqB;AACzB,IAAI,wBAAwB,WAAW;CACrC,OAAO;AACT;AACA,IAAI,sBAAsB,SAAS,GAAG;CACpC,IAAI,CAAC,QAAQ,IAAI,wBAAwB;EACvC,IAAI,MAAM,iBAAiB,CAAC;EAC5B,IAAI,sBAAsB,IAAI,GAAG,KAAK,sBAAsB,OAAO,KAAK;GACtE,sBAAsB,IAAI,KAAK,CAAC;GAChC;EACF;CACF;AACF;AACA,IAAI,gBAAgB,SAAS,GAAG;CAC9B,IAAI,WAAW,UAAU,SAAS,KAAK,UAAU,OAAO,KAAK,IAAI,UAAU,KAAK;CAChF,IAAI,CAAC,QAAQ,IAAI,wBAAwB;EACvC,OAAO,KAAK,QAAQ,IAAI,+BAA+B,KAAK,kBAAkB,EAAE,MAAM,KAAK,EAAE,GAAG,CAAC,YAAY,OAAO,EAAE,QAAQ,WAAW,GAAG,EAAE,IAAI,MAAM,EAAE;CAC5J;CACA,OAAO;AACT;AACA,IAAI,wCAAwC,IAAI,IAAI;AACpD,IAAI,YAAY;AAChB,IAAI,gBAAgB,CAAC;AACrB,IAAI,qBAAqB,SAAS,WAAW;CAC3C,OAAO,UAAU,IAAI,SAAS,GAAG;EAC/B,OAAO,KAAK,EAAE,KAAK,GAAG,EAAE;CAC1B,CAAC,EAAE,KAAK,GAAG;AACb;AACA,IAAI,qBAAqB,WAAW;CAClC,OAAO,mBAAmB,aAAa;AACzC;AACA,IAAI,sBAAsB,SAAS,KAAK;CACtC,IAAI,sBAAsB,IAAI,GAAG,GAAG;EAClC,OAAO,sBAAsB,IAAI,GA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AAE,EAAE,SAAS,QAAQ,qBAAqB,SAAS,cAAc,QAAQ,uBAAuB,KAAK,IAAI,qBAAqB,EAAE,EAAE;EACnX,GAAG,CAAC;EACJ,cAAc,mBAAmB,EAAE;CACrC;AACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/web",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.655.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Nate Wienert"
|
|
@@ -81,22 +81,22 @@
|
|
|
81
81
|
"test:web": "vitest --typecheck --run"
|
|
82
82
|
},
|
|
83
83
|
"dependencies": {
|
|
84
|
-
"@tamagui/compose-refs": "3.0.0-beta.
|
|
85
|
-
"@tamagui/constants": "3.0.0-beta.
|
|
86
|
-
"@tamagui/dom": "3.0.0-beta.
|
|
87
|
-
"@tamagui/helpers": "3.0.0-beta.
|
|
88
|
-
"@tamagui/is-equal-shallow": "3.0.0-beta.
|
|
89
|
-
"@tamagui/native": "3.0.0-beta.
|
|
90
|
-
"@tamagui/normalize-css-color": "3.0.0-beta.
|
|
91
|
-
"@tamagui/style-grammar": "3.0.0-beta.
|
|
92
|
-
"@tamagui/timer": "3.0.0-beta.
|
|
93
|
-
"@tamagui/types": "3.0.0-beta.
|
|
94
|
-
"@tamagui/use-did-finish-ssr": "3.0.0-beta.
|
|
95
|
-
"@tamagui/use-event": "3.0.0-beta.
|
|
96
|
-
"@tamagui/use-force-update": "3.0.0-beta.
|
|
84
|
+
"@tamagui/compose-refs": "3.0.0-beta.655.1",
|
|
85
|
+
"@tamagui/constants": "3.0.0-beta.655.1",
|
|
86
|
+
"@tamagui/dom": "3.0.0-beta.655.1",
|
|
87
|
+
"@tamagui/helpers": "3.0.0-beta.655.1",
|
|
88
|
+
"@tamagui/is-equal-shallow": "3.0.0-beta.655.1",
|
|
89
|
+
"@tamagui/native": "3.0.0-beta.655.1",
|
|
90
|
+
"@tamagui/normalize-css-color": "3.0.0-beta.655.1",
|
|
91
|
+
"@tamagui/style-grammar": "3.0.0-beta.655.1",
|
|
92
|
+
"@tamagui/timer": "3.0.0-beta.655.1",
|
|
93
|
+
"@tamagui/types": "3.0.0-beta.655.1",
|
|
94
|
+
"@tamagui/use-did-finish-ssr": "3.0.0-beta.655.1",
|
|
95
|
+
"@tamagui/use-event": "3.0.0-beta.655.1",
|
|
96
|
+
"@tamagui/use-force-update": "3.0.0-beta.655.1"
|
|
97
97
|
},
|
|
98
98
|
"devDependencies": {
|
|
99
|
-
"@tamagui/build": "3.0.0-beta.
|
|
99
|
+
"@tamagui/build": "3.0.0-beta.655.1",
|
|
100
100
|
"@testing-library/react": "^16.1.0",
|
|
101
101
|
"csstype": "^3.0.10",
|
|
102
102
|
"react": ">=19",
|
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
StyleObjectIdentifier,
|
|
10
10
|
StyleObjectRules,
|
|
11
|
+
nonAnimatableStyleProps,
|
|
11
12
|
tokenCategories,
|
|
12
13
|
type StyleObject,
|
|
13
14
|
} from '@tamagui/helpers'
|
|
@@ -625,9 +626,7 @@ function normalizeTransitionNames(state: GetStyleState, raw: string) {
|
|
|
625
626
|
return copyFrom ? out + raw.slice(copyFrom) : raw
|
|
626
627
|
}
|
|
627
628
|
|
|
628
|
-
// one contribution's slice of an atomic identity
|
|
629
|
-
// directAtomic, and reproduced standalone by the getSplitStyles class-strip
|
|
630
|
-
// path so a surviving base style keeps its server-rendered identifier
|
|
629
|
+
// one contribution's slice of an atomic identity, accumulated per atomicKey
|
|
631
630
|
export function directStyleSignature(
|
|
632
631
|
property: string,
|
|
633
632
|
value: unknown,
|
|
@@ -840,7 +839,16 @@ function emitProperty(
|
|
|
840
839
|
return
|
|
841
840
|
}
|
|
842
841
|
|
|
843
|
-
|
|
842
|
+
const shouldPromoteAnimatedStyle =
|
|
843
|
+
isWeb &&
|
|
844
|
+
!condition &&
|
|
845
|
+
!state.flatShouldDoClasses &&
|
|
846
|
+
!state.styleProps.noMergeStyle &&
|
|
847
|
+
state.styleProps.isAnimated &&
|
|
848
|
+
!state.animationDriver?.isReactNative &&
|
|
849
|
+
property in nonAnimatableStyleProps
|
|
850
|
+
|
|
851
|
+
if (isWeb && (state.flatShouldDoClasses || shouldPromoteAnimatedStyle)) {
|
|
844
852
|
if (!condition) {
|
|
845
853
|
if (state.style) delete state.style[property]
|
|
846
854
|
}
|