@tamagui/web 3.0.0-beta.655.1 → 3.0.0-beta.669.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/createComponent.cjs +1 -1
- package/dist/cjs/createComponent.native.cjs +1 -1
- package/dist/cjs/createComponent.native.js +1 -1
- package/dist/cjs/createComponent.native.js.map +1 -1
- package/dist/cjs/createTamagui.cjs +1 -1
- package/dist/cjs/createTamagui.native.cjs +1 -1
- package/dist/cjs/createTamagui.native.js +1 -1
- package/dist/cjs/createTamagui.native.js.map +1 -1
- package/dist/cjs/helpers/directStyle.cjs +12 -12
- package/dist/cjs/helpers/directStyle.native.cjs +12 -12
- package/dist/cjs/helpers/directStyle.native.js +12 -12
- package/dist/cjs/helpers/directStyle.native.js.map +1 -1
- package/dist/cjs/helpers/formatDiagnostic.cjs +3 -0
- package/dist/cjs/helpers/formatDiagnostic.native.cjs +3 -0
- package/dist/cjs/helpers/formatDiagnostic.native.js +3 -0
- package/dist/cjs/helpers/formatDiagnostic.native.js.map +1 -1
- package/dist/cjs/helpers/getSplitStyles.cjs +2 -2
- package/dist/cjs/helpers/getSplitStyles.native.cjs +2 -2
- package/dist/cjs/helpers/getSplitStyles.native.js +2 -2
- package/dist/cjs/helpers/getSplitStyles.native.js.map +1 -1
- package/dist/cjs/helpers/mergeVariants.cjs +1 -1
- package/dist/cjs/helpers/mergeVariants.native.cjs +1 -1
- package/dist/cjs/helpers/mergeVariants.native.js +1 -1
- package/dist/cjs/helpers/mergeVariants.native.js.map +1 -1
- package/dist/cjs/helpers/propMapper.cjs +2 -2
- package/dist/cjs/helpers/propMapper.native.cjs +2 -2
- package/dist/cjs/helpers/propMapper.native.js +2 -2
- package/dist/cjs/helpers/propMapper.native.js.map +1 -1
- package/dist/cjs/hooks/getThemeProxied.native.cjs +1 -1
- package/dist/cjs/hooks/getThemeProxied.native.js +1 -1
- package/dist/cjs/hooks/getThemeProxied.native.js.map +1 -1
- package/dist/cjs/hooks/useComponentState.cjs +2 -2
- package/dist/cjs/hooks/useComponentState.native.cjs +2 -2
- package/dist/cjs/hooks/useComponentState.native.js +2 -2
- package/dist/cjs/hooks/useComponentState.native.js.map +1 -1
- package/dist/cjs/hooks/useProps.cjs +1 -1
- package/dist/cjs/hooks/useProps.native.cjs +1 -1
- package/dist/cjs/hooks/useProps.native.js +1 -1
- package/dist/cjs/hooks/useProps.native.js.map +1 -1
- package/dist/cjs/hooks/useThemeState.cjs +2 -2
- package/dist/cjs/hooks/useThemeState.native.cjs +2 -2
- package/dist/cjs/hooks/useThemeState.native.js +2 -2
- package/dist/cjs/hooks/useThemeState.native.js.map +1 -1
- package/dist/cjs/internal-runtime.cjs +3 -1
- package/dist/cjs/internal-runtime.native.cjs +3 -1
- package/dist/cjs/internal-runtime.native.js +3 -1
- package/dist/cjs/internal-runtime.native.js.map +1 -1
- package/dist/cjs/views/Theme.cjs +1 -1
- package/dist/cjs/views/Theme.native.cjs +1 -1
- package/dist/cjs/views/Theme.native.js +1 -1
- package/dist/cjs/views/Theme.native.js.map +1 -1
- package/dist/esm/createComponent.mjs +1 -1
- package/dist/esm/createComponent.mjs.map +1 -1
- package/dist/esm/createComponent.native.js +1 -1
- package/dist/esm/createComponent.native.js.map +1 -1
- package/dist/esm/createTamagui.mjs +1 -1
- package/dist/esm/createTamagui.mjs.map +1 -1
- package/dist/esm/createTamagui.native.js +1 -1
- package/dist/esm/createTamagui.native.js.map +1 -1
- package/dist/esm/helpers/directStyle.mjs +13 -13
- package/dist/esm/helpers/directStyle.mjs.map +1 -1
- package/dist/esm/helpers/directStyle.native.js +13 -13
- package/dist/esm/helpers/directStyle.native.js.map +1 -1
- package/dist/esm/helpers/formatDiagnostic.mjs +3 -0
- package/dist/esm/helpers/formatDiagnostic.mjs.map +1 -1
- package/dist/esm/helpers/formatDiagnostic.native.js +3 -0
- package/dist/esm/helpers/formatDiagnostic.native.js.map +1 -1
- package/dist/esm/helpers/getSplitStyles.mjs +2 -2
- package/dist/esm/helpers/getSplitStyles.mjs.map +1 -1
- package/dist/esm/helpers/getSplitStyles.native.js +2 -2
- package/dist/esm/helpers/getSplitStyles.native.js.map +1 -1
- package/dist/esm/helpers/mergeVariants.mjs +1 -1
- package/dist/esm/helpers/mergeVariants.mjs.map +1 -1
- package/dist/esm/helpers/mergeVariants.native.js +1 -1
- package/dist/esm/helpers/mergeVariants.native.js.map +1 -1
- package/dist/esm/helpers/propMapper.mjs +2 -2
- package/dist/esm/helpers/propMapper.mjs.map +1 -1
- package/dist/esm/helpers/propMapper.native.js +2 -2
- package/dist/esm/helpers/propMapper.native.js.map +1 -1
- package/dist/esm/hooks/getThemeProxied.native.js +1 -1
- package/dist/esm/hooks/getThemeProxied.native.js.map +1 -1
- package/dist/esm/hooks/useComponentState.mjs +2 -2
- package/dist/esm/hooks/useComponentState.mjs.map +1 -1
- package/dist/esm/hooks/useComponentState.native.js +2 -2
- package/dist/esm/hooks/useComponentState.native.js.map +1 -1
- package/dist/esm/hooks/useProps.mjs +1 -1
- package/dist/esm/hooks/useProps.mjs.map +1 -1
- package/dist/esm/hooks/useProps.native.js +1 -1
- package/dist/esm/hooks/useProps.native.js.map +1 -1
- package/dist/esm/hooks/useThemeState.mjs +2 -2
- package/dist/esm/hooks/useThemeState.mjs.map +1 -1
- package/dist/esm/hooks/useThemeState.native.js +2 -2
- package/dist/esm/hooks/useThemeState.native.js.map +1 -1
- package/dist/esm/internal-runtime.mjs +3 -1
- package/dist/esm/internal-runtime.mjs.map +1 -1
- package/dist/esm/internal-runtime.native.js +3 -1
- package/dist/esm/internal-runtime.native.js.map +1 -1
- package/dist/esm/views/Theme.mjs +1 -1
- package/dist/esm/views/Theme.mjs.map +1 -1
- package/dist/esm/views/Theme.native.js +2 -1
- package/dist/esm/views/Theme.native.js.map +1 -1
- package/package.json +15 -15
- package/src/createComponent.tsx +4 -1
- package/src/createTamagui.ts +6 -1
- package/src/helpers/directStyle.ts +23 -12
- package/src/helpers/formatDiagnostic.ts +3 -0
- package/src/helpers/getSplitStyles.tsx +8 -2
- package/src/helpers/mergeVariants.ts +3 -1
- package/src/helpers/propMapper.ts +6 -1
- package/src/hooks/getThemeProxied.ts +4 -3
- package/src/hooks/useComponentState.ts +4 -1
- package/src/hooks/useProps.tsx +4 -1
- package/src/hooks/useThemeState.ts +8 -2
- package/src/internal-runtime.ts +8 -1
- package/src/views/Theme.tsx +4 -1
- package/types/createComponent.d.ts.map +1 -1
- package/types/helpers/directStyle.d.ts.map +1 -1
- package/types/helpers/formatDiagnostic.d.ts.map +1 -1
- package/types/helpers/getSplitStyles.d.ts.map +1 -1
- package/types/helpers/mergeVariants.d.ts.map +1 -1
- package/types/helpers/propMapper.d.ts.map +1 -1
- package/types/hooks/getThemeProxied.d.ts.map +1 -1
- package/types/hooks/useComponentState.d.ts.map +1 -1
- package/types/hooks/useProps.d.ts.map +1 -1
- package/types/hooks/useThemeState.d.ts.map +1 -1
- package/types/internal-runtime.d.ts.map +1 -1
- package/types/views/Theme.d.ts.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"propMapper.native.js","names":[],"sources":["cjs/helpers/propMapper.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n\tfor (var name in all) __defProp(target, name, {\n\t\tget: all[name],\n\t\tenumerable: true\n\t});\n};\nvar __copyProps = (to, from, except, desc) => {\n\tif (from && typeof from === \"object\" || typeof from === \"function\") {\n\t\tfor (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {\n\t\t\tget: () => from[key],\n\t\t\tenumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable\n\t\t});\n\t}\n\treturn to;\n};\nvar __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, \"default\"), secondTarget && __copyProps(secondTarget, mod, \"default\"));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar propMapper_exports = {};\n__export(propMapper_exports, {\n\tappendFlatClause: () => appendFlatClause,\n\tgetFontFamilyFromNameOrVariable: () => getFontFamilyFromNameOrVariable,\n\tpropMapper: () => propMapper\n});\nmodule.exports = __toCommonJS(propMapper_exports);\nvar import_constants = require(\"@tamagui/constants\");\nvar import_runtime = require(\"@tamagui/style-grammar/runtime\");\nvar import_createVariable = require(\"../createVariable\");\nvar import_types = require(\"../types\");\nvar import_directStyle = require(\"./directStyle\");\nvar import_expandStyle = require(\"./expandStyle\");\nvar import_resolveVariableValue = require(\"./resolveVariableValue\");\nvar import_getVariantExtras = require(\"./getVariantExtras\");\nvar import_isObj = require(\"./isObj\");\nvar import_normalizeStyle = require(\"./normalizeStyle\");\nvar import_resolveRem = require(\"./resolveRem\");\nvar import_resolveSafeArea = require(\"./resolveSafeArea\");\nvar import_skipProps = require(\"./skipProps\");\nvar import_styleOriginalValues = require(\"./styleOriginalValues\");\n__reExport(propMapper_exports, require(\"./tokenCategories\"), module.exports);\nfunction _type_of(obj) {\n\t\"@swc/helpers - typeof\";\n\treturn obj && typeof Symbol !== \"undefined\" && obj.constructor === Symbol ? \"symbol\" : typeof obj;\n}\nfunction appendFlatClause(prev, conditionSource, value) {\n\tif (prev != null && typeof prev !== \"string\" && typeof prev !== \"number\") return;\n\tif (typeof value !== \"string\" && typeof value !== \"number\") return;\n\treturn prev == null ? `${conditionSource}:${value}` : `${prev} ${conditionSource}:${value}`;\n}\nvar propMapper = function(key, value, styleState, disabled, map) {\n\tif (disabled) return map(key, value);\n\tif (!import_constants.isAndroid) {\n\t\tif (key === \"elevationAndroid\") return;\n\t}\n\tvar { conf, styleProps, staticConfig } = styleState;\n\tvar { variants } = staticConfig;\n\tif (value === \"unset\") {\n\t\tvar expandedKey = !styleProps.disableExpandShorthands && conf.shorthands[key] || key;\n\t\tvar expanded = styleProps.noExpand ? null : (0, import_expandStyle.expandStyle)(expandedKey, value, conf.settings.styleCompat || \"web\");\n\t\tif (styleState.style) if (expanded) {\n\t\t\tvar _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n\t\t\ttry {\n\t\t\t\tfor (var _iterator = expanded[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n\t\t\t\t\tvar [nkey] = _step.value;\n\t\t\t\t\tdelete styleState.style[nkey];\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} else delete styleState.style[expandedKey];\n\t\treturn;\n\t}\n\tif (!styleProps.noExpand) {\n\t\tif (variants && key in variants) {\n\t\t\tvar variantValue = resolveVariants(key, value, styleProps, styleState, \"\");\n\t\t\tif (variantValue) {\n\t\t\t\tvar _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = void 0;\n\t\t\t\ttry {\n\t\t\t\t\tfor (var _iterator1 = variantValue[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) {\n\t\t\t\t\t\tvar entry = _step1.value;\n\t\t\t\t\t\tmap(entry[0], entry[1], entry[2], entry[3]);\n\t\t\t\t\t}\n\t\t\t\t} catch (err) {\n\t\t\t\t\t_didIteratorError1 = true;\n\t\t\t\t\t_iteratorError1 = err;\n\t\t\t\t} finally {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (!_iteratorNormalCompletion1 && _iterator1.return != null) _iterator1.return();\n\t\t\t\t\t} finally {\n\t\t\t\t\t\tif (_didIteratorError1) throw _iteratorError1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}\n\tif (!styleProps.disableExpandShorthands) {\n\t\tif (key in conf.shorthands) key = conf.shorthands[key];\n\t}\n\tvar originalValue = value;\n\tif (value === \"safe\" && (0, import_resolveSafeArea.isSafeAreaKey)(key)) {\n\t\tvar expanded1 = (0, import_resolveSafeArea.expandSafeAreaValue)(key);\n\t\tif (expanded1) {\n\t\t\tfor (var i = 0; i < expanded1.length; i++) {\n\t\t\t\tvar [nkey1, nvalue] = expanded1[i];\n\t\t\t\tmap(nkey1, nvalue, originalValue);\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t}\n\tif (value != null) {\n\t\tif (typeof value === \"string\") value = (0, import_resolveRem.isRemValue)(value) ? (0, import_resolveRem.resolveRem)(value) : value;\n\t\telse if ((0, import_createVariable.isVariable)(value)) value = (0, import_resolveVariableValue.resolveVariableValue)(key, value, styleProps.resolveValues);\n\t\telse if ((0, import_resolveRem.isRemValue)(value)) value = (0, import_resolveRem.resolveRem)(value);\n\t}\n\tif (value != null) {\n\t\tif (key === \"fontFamily\" && typeof originalValue === \"string\") {\n\t\t\tif (originalValue in conf.fontsParsed) styleState.fontFamily = originalValue;\n\t\t}\n\t\tvar expanded2 = styleProps.noExpand || typeof value === \"string\" ? null : (0, import_expandStyle.expandStyle)(key, value, conf.settings.styleCompat || \"web\");\n\t\tif (expanded2) {\n\t\t\tvar max = expanded2.length;\n\t\t\tfor (var i1 = 0; i1 < max; i1++) {\n\t\t\t\tvar [nkey2, nvalue1, noriginalValue] = expanded2[i1];\n\t\t\t\tmap(nkey2, nvalue1, noriginalValue !== null && noriginalValue !== void 0 ? noriginalValue : originalValue);\n\t\t\t}\n\t\t} else map(key, value, originalValue);\n\t}\n};\nvar resolveVariants = function(key, value, styleProps, styleState, parentVariantKey) {\n\tvar _styleState_staticConfig_variants;\n\tvar variantDefinition = (_styleState_staticConfig_variants = styleState.staticConfig.variants) === null || _styleState_staticConfig_variants === void 0 ? void 0 : _styleState_staticConfig_variants[key];\n\tif (typeof value === \"string\" && value.indexOf(\":\") !== -1 && !(variantDefinition && (typeof variantDefinition === \"undefined\" ? \"undefined\" : _type_of(variantDefinition)) === \"object\" && value in variantDefinition)) {\n\t\tvar starts = [];\n\t\tvar ends = [];\n\t\tvar modifiers = [];\n\t\tvar pendingModifier;\n\t\tvar sawClause = false;\n\t\tvar refused = false;\n\t\t(0, import_runtime.scanFlatValue)(value, {\n\t\t\tsegment(start, end, isBase) {\n\t\t\t\tif (start === end) {\n\t\t\t\t\tif (!isBase) refused = true;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tstarts.push(start);\n\t\t\t\tends.push(end);\n\t\t\t\tmodifiers.push(pendingModifier);\n\t\t\t},\n\t\t\tchain(start, end) {\n\t\t\t\tif (refused) return false;\n\t\t\t\tvar source = value.slice(start, end);\n\t\t\t\tif (!(0, import_directStyle.getCondition)(styleState, source)) {\n\t\t\t\t\trefused = true;\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tpendingModifier = source;\n\t\t\t\tsawClause = true;\n\t\t\t\treturn true;\n\t\t\t},\n\t\t\terror() {\n\t\t\t\trefused = true;\n\t\t\t}\n\t\t});\n\t\tif (refused) return [];\n\t\tif (sawClause) {\n\t\t\tvar entries;\n\t\t\tfor (var index = 0; index < starts.length; index++) {\n\t\t\t\tvar resolved = resolveVariantValue(key, value.slice(starts[index], ends[index]), styleProps, styleState, parentVariantKey);\n\t\t\t\tif (!resolved) continue;\n\t\t\t\tentries || (entries = []);\n\t\t\t\tvar modifier = modifiers[index];\n\t\t\t\tvar _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n\t\t\t\ttry {\n\t\t\t\t\tfor (var _iterator = resolved[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n\t\t\t\t\t\tvar entry = _step.value;\n\t\t\t\t\t\tif (modifier !== void 0) entry[3] = modifier;\n\t\t\t\t\t\tentries.push(entry);\n\t\t\t\t\t}\n\t\t\t\t} catch (err) {\n\t\t\t\t\t_didIteratorError = true;\n\t\t\t\t\t_iteratorError = err;\n\t\t\t\t} finally {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (!_iteratorNormalCompletion && _iterator.return != null) _iterator.return();\n\t\t\t\t\t} finally {\n\t\t\t\t\t\tif (_didIteratorError) throw _iteratorError;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn entries || [];\n\t\t}\n\t}\n\treturn resolveVariantValue(key, value, styleProps, styleState, parentVariantKey);\n};\nvar resolveVariantValue = function(key, value, styleProps, styleState, parentVariantKey) {\n\tvar { staticConfig, conf, debug } = styleState;\n\tvar { variants } = staticConfig;\n\tif (!variants) return;\n\tvar variant = variants[key];\n\tvar variantValue = getVariantDefinition(variant, value, conf, styleState);\n\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\") {\n\t\tconsole.groupCollapsed(`\\u2666\\uFE0F\\u2666\\uFE0F\\u2666\\uFE0F resolve variant ${key}`);\n\t\tconsole.info({\n\t\t\tkey,\n\t\t\tvalue,\n\t\t\tvariantValue,\n\t\t\tvariants\n\t\t});\n\t\tconsole.groupEnd();\n\t}\n\tif (!variantValue) {\n\t\tif (process.env.TAMAGUI_WARN_ON_MISSING_VARIANT === \"1\") {\n\t\t\tif (typeof value !== \"boolean\") {\n\t\t\t\tvar name = styleState.styleProps.displayName || \"[UnnamedComponent]\";\n\t\t\t\tconsole.warn(`No variant found: ${name} has variant \"${key}\", but no matching value \"${value}\"`);\n\t\t\t}\n\t\t}\n\t\treturn;\n\t}\n\tif (typeof variantValue === \"function\") {\n\t\tvariantValue = variantValue(value, (0, import_getVariantExtras.getVariantExtras)(styleState));\n\t\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\" && false);\n\t}\n\tvar fontFamilyResult;\n\tif ((0, import_isObj.isObj)(variantValue)) {\n\t\tvar fontFamilyUpdate = variantValue.fontFamily || variantValue[conf.inverseShorthands.fontFamily];\n\t\tif (fontFamilyUpdate) {\n\t\t\tfontFamilyResult = getFontFamilyFromNameOrVariable(fontFamilyUpdate, conf);\n\t\t\tstyleState.fontFamily = fontFamilyResult;\n\t\t\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\") console.info(` updating font family`, fontFamilyResult);\n\t\t}\n\t\tvariantValue = resolveTokensAndVariants(key, variantValue, styleProps, styleState, parentVariantKey);\n\t}\n\tif (variantValue) {\n\t\tvar expanded = (0, import_normalizeStyle.normalizeStyle)(variantValue, !!styleProps.noNormalize);\n\t\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\") console.info(` expanding styles from `, variantValue, `to`, expanded);\n\t\tvar originalValues = import_styleOriginalValues.styleOriginalValues.get(expanded);\n\t\tvar next = [];\n\t\tfor (var _$key in expanded) next.push([\n\t\t\t_$key,\n\t\t\texpanded[_$key],\n\t\t\toriginalValues === null || originalValues === void 0 ? void 0 : originalValues[_$key]\n\t\t]);\n\t\treturn next;\n\t}\n};\nfunction getFontFamilyFromNameOrVariable(input, conf) {\n\tif ((0, import_createVariable.isVariable)(input)) {\n\t\tvar val = variableToFontNameCache.get(input);\n\t\tif (val) return val;\n\t\tfor (var key in conf.fontsParsed) {\n\t\t\tvar familyVariable = conf.fontsParsed[key].family;\n\t\t\tif ((0, import_createVariable.isVariable)(familyVariable)) {\n\t\t\t\tvariableToFontNameCache.set(familyVariable, key);\n\t\t\t\tif (familyVariable === input) return key;\n\t\t\t}\n\t\t}\n\t} else if (typeof input === \"string\" && input in conf.fontsParsed) return input;\n}\nvar variableToFontNameCache = /* @__PURE__ */ new WeakMap();\nvar resolveTokensAndVariants = function(key, value, styleProps, styleState, parentVariantKey) {\n\tvar { conf, staticConfig, debug } = styleState;\n\tvar { variants } = staticConfig;\n\tvar res = {};\n\tvar originalValues;\n\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\") console.info(` - resolveTokensAndVariants`, key, value);\n\tfor (var _key in value) {\n\t\tvar subKey = conf.shorthands[_key] || _key;\n\t\tvar val = value[_key];\n\t\tif (!styleProps.noSkip && subKey in import_skipProps.skipProps) continue;\n\t\toriginalValues || (originalValues = {});\n\t\toriginalValues[subKey] = val;\n\t\tif (staticConfig) {\n\t\t\tvar _staticConfig_context, _staticConfig_parentStaticConfig_context, _staticConfig_parentStaticConfig, _staticConfig_parentStaticConfig1, _staticConfig_parentStaticConfig2, _staticConfig_context_propKeys, _staticConfig_context1, _staticConfig_parentStaticConfig_context_propKeys, _staticConfig_parentStaticConfig_context1, _staticConfig_parentStaticConfig3;\n\t\t\tvar contextProps = ((_staticConfig_context = staticConfig.context) === null || _staticConfig_context === void 0 ? void 0 : _staticConfig_context.props) || ((_staticConfig_parentStaticConfig = staticConfig.parentStaticConfig) === null || _staticConfig_parentStaticConfig === void 0 ? void 0 : (_staticConfig_parentStaticConfig_context = _staticConfig_parentStaticConfig.context) === null || _staticConfig_parentStaticConfig_context === void 0 ? void 0 : _staticConfig_parentStaticConfig_context.props);\n\t\t\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\t\t\tvar contextPropKeys = staticConfig.contextProps || inheritedContextPropKeys;\n\t\t\tif (contextProps && subKey in contextProps || (contextPropKeys === null || contextPropKeys === void 0 ? void 0 : contextPropKeys.includes(subKey)) || ((_staticConfig_context1 = staticConfig.context) === null || _staticConfig_context1 === void 0 ? void 0 : (_staticConfig_context_propKeys = _staticConfig_context1.propKeys) === null || _staticConfig_context_propKeys === void 0 ? void 0 : _staticConfig_context_propKeys.includes(subKey)) || ((_staticConfig_parentStaticConfig3 = staticConfig.parentStaticConfig) === null || _staticConfig_parentStaticConfig3 === void 0 ? void 0 : (_staticConfig_parentStaticConfig_context1 = _staticConfig_parentStaticConfig3.context) === null || _staticConfig_parentStaticConfig_context1 === void 0 ? void 0 : (_staticConfig_parentStaticConfig_context_propKeys = _staticConfig_parentStaticConfig_context1.propKeys) === null || _staticConfig_parentStaticConfig_context_propKeys === void 0 ? void 0 : _staticConfig_parentStaticConfig_context_propKeys.includes(subKey))) {\n\t\t\t\tvar _styleState, _styleState1;\n\t\t\t\t(_styleState = styleState).overriddenContextProps || (_styleState.overriddenContextProps = {});\n\t\t\t\tstyleState.overriddenContextProps[subKey] = val;\n\t\t\t\t(_styleState1 = styleState).originalContextPropValues || (_styleState1.originalContextPropValues = {});\n\t\t\t\tstyleState.originalContextPropValues[subKey] = val;\n\t\t\t}\n\t\t}\n\t\tif (styleProps.noExpand) res[subKey] = val;\n\t\telse if (variants && subKey in variants) {\n\t\t\tif (parentVariantKey && parentVariantKey === key) res[subKey] = val;\n\t\t\telse {\n\t\t\t\tvar variantOut = resolveVariants(subKey, val, styleProps, styleState, key);\n\t\t\t\tif (variantOut) {\n\t\t\t\t\tvar _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tfor (var _iterator = variantOut[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n\t\t\t\t\t\t\tvar [_$key, val1, originalVal, conditionSource] = _step.value;\n\t\t\t\t\t\t\tif (val1 == null) continue;\n\t\t\t\t\t\t\tif (conditionSource !== void 0) {\n\t\t\t\t\t\t\t\tvar appended = appendFlatClause(res[_$key], conditionSource, val1);\n\t\t\t\t\t\t\t\tif (appended === void 0) {\n\t\t\t\t\t\t\t\t\tif (process.env.NODE_ENV === \"development\") console.warn(`[tamagui] conditional variant value for \"${_$key}\" is not string-representable; dropping the clause`);\n\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tres[_$key] = appended;\n\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tres[_$key] = val1;\n\t\t\t\t\t\t\tif (originalVal !== void 0) {\n\t\t\t\t\t\t\t\toriginalValues || (originalValues = {});\n\t\t\t\t\t\t\t\toriginalValues[_$key] = originalVal;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (err) {\n\t\t\t\t\t\t_didIteratorError = true;\n\t\t\t\t\t\t_iteratorError = err;\n\t\t\t\t\t} finally {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tif (!_iteratorNormalCompletion && _iterator.return != null) _iterator.return();\n\t\t\t\t\t\t} finally {\n\t\t\t\t\t\t\tif (_didIteratorError) throw _iteratorError;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcontinue;\n\t\t}\n\t\tif ((0, import_createVariable.isVariable)(val)) {\n\t\t\tres[subKey] = (0, import_resolveVariableValue.resolveVariableValue)(subKey, val, styleProps.resolveValues);\n\t\t\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\") console.info(`variable`, subKey, res[subKey]);\n\t\t\tcontinue;\n\t\t}\n\t\tif (typeof val === \"string\") {\n\t\t\tres[subKey] = (0, import_resolveRem.isRemValue)(val) ? (0, import_resolveRem.resolveRem)(val) : val;\n\t\t\tcontinue;\n\t\t}\n\t\tif ((0, import_isObj.isObj)(val)) {\n\t\t\tvar _res, _subKey;\n\t\t\tvar subObject = resolveTokensAndVariants(subKey, val, styleProps, styleState, key);\n\t\t\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\") console.info(`object`, subKey, subObject);\n\t\t\tvar _;\n\t\t\t(_ = (_res = res)[_subKey = subKey]) !== null && _ !== void 0 || (_res[_subKey] = {});\n\t\t\tObject.assign(res[subKey], subObject);\n\t\t\tvar subOriginalValues = import_styleOriginalValues.styleOriginalValues.get(subObject);\n\t\t\tif (subOriginalValues) {\n\t\t\t\tvar existing = import_styleOriginalValues.styleOriginalValues.get(res[subKey]);\n\t\t\t\tif (existing) Object.assign(existing, subOriginalValues);\n\t\t\t\telse import_styleOriginalValues.styleOriginalValues.set(res[subKey], { ...subOriginalValues });\n\t\t\t}\n\t\t} else res[subKey] = val;\n\t}\n\tif (originalValues) import_styleOriginalValues.styleOriginalValues.set(res, originalValues);\n\treturn res;\n};\nfunction getVariantDefinition(variant, value, conf, param) {\n\tvar { theme } = param;\n\tif (!variant) return;\n\tif (value === void 0) return;\n\tif (typeof variant === \"function\") return variant;\n\tif (Object.prototype.hasOwnProperty.call(variant, value)) return variant[value];\n\tvar _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n\ttry {\n\t\tfor (var _iterator = getCompiledVariantResolvers(variant)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n\t\t\tvar { key, parts } = _step.value;\n\t\t\tvar _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = void 0;\n\t\t\ttry {\n\t\t\t\tfor (var _iterator1 = parts[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) {\n\t\t\t\t\tvar part = _step1.value;\n\t\t\t\t\tif (matchesVariantResolver(part, value, conf, theme)) return variant[key];\n\t\t\t\t}\n\t\t\t} catch (err) {\n\t\t\t\t_didIteratorError1 = true;\n\t\t\t\t_iteratorError1 = err;\n\t\t\t} finally {\n\t\t\t\ttry {\n\t\t\t\t\tif (!_iteratorNormalCompletion1 && _iterator1.return != null) _iterator1.return();\n\t\t\t\t} finally {\n\t\t\t\t\tif (_didIteratorError1) throw _iteratorError1;\n\t\t\t\t}\n\t\t\t}\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}\nvar variantResolverNameSet = new Set(import_types.variantResolverNames);\nvar variantResolverCache = /* @__PURE__ */ new WeakMap();\nfunction getCompiledVariantResolvers(variant) {\n\tvar cached = variantResolverCache.get(variant);\n\tif (cached) return cached;\n\tvar compiled = [];\n\tvar _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n\ttry {\n\t\tfor (var _iterator = Object.keys(variant)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n\t\t\tvar key = _step.value;\n\t\t\tvar parts = parseVariantResolverKey(key);\n\t\t\tif (parts) compiled.push({\n\t\t\t\tkey,\n\t\t\t\tparts\n\t\t\t});\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\tvariantResolverCache.set(variant, compiled);\n\treturn compiled;\n}\nfunction parseVariantResolverKey(key) {\n\tif (!key) return null;\n\tvar parts = key.split(\"|\").map(function(part2) {\n\t\treturn part2.trim();\n\t});\n\tif (!parts.length) return null;\n\tvar _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n\ttry {\n\t\tfor (var _iterator = parts[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n\t\t\tvar part = _step.value;\n\t\t\tif (!variantResolverNameSet.has(part)) return null;\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\treturn parts;\n}\nvar numberStringPattern = /[+-]?(?:(?:\\d+\\.?\\d*)|(?:\\.\\d+))(?:[eE][+-]?\\d+)?|[+-]?0[xX][\\da-fA-F]+|[+-]?0[bB][01]+|[+-]?0[oO][0-7]+/;\nvar remStringPattern = new RegExp(`^(?:${numberStringPattern.source})rem$`);\nvar viewportValuePattern = new RegExp(`^(?:${numberStringPattern.source})(vw|dvw|lvw|svw|vh|dvh|lvh|svh)$`);\nfunction isAllowedStyleValue(category, value, conf, string, number, rem) {\n\tvar hasSetting = Object.prototype.hasOwnProperty.call(conf.settings, \"allowedStyleValues\");\n\tvar configured = conf.settings.allowedStyleValues;\n\tvar setting = configured && (typeof configured === \"undefined\" ? \"undefined\" : _type_of(configured)) === \"object\" ? configured[category] : configured;\n\tvar web = value === \"unset\" || value === \"inherit\" || string && /^var\\(.*\\)$/.test(value) || (category === \"size\" || category === \"space\") && (value === \"max-content\" || value === \"min-content\" || string && (viewportValuePattern.test(value) || /^(calc|min|max)\\(.*\\)$/.test(value)));\n\tvar somewhat = category === \"size\" || category === \"space\" ? value === \"auto\" || number || rem || string && value.endsWith(\"%\") : number;\n\tif (setting === \"strict\") return false;\n\tif (setting === \"strict-web\") return web;\n\tif (setting === \"somewhat-strict\") return somewhat;\n\tif (setting === \"somewhat-strict-web\") return somewhat || web;\n\treturn number || string && (category === \"size\" || category === \"space\" || !hasSetting);\n}\nfunction matchesVariantResolver(resolverName, value, conf, theme) {\n\tvar string = typeof value === \"string\";\n\tvar number = typeof value === \"number\";\n\tvar rem = string && remStringPattern.test(value);\n\tswitch (resolverName) {\n\t\tcase \"Size\":\n\t\tcase \"Space\":\n\t\tcase \"Radius\":\n\t\tcase \"ZIndex\":\n\t\t\tvar category = resolverName === \"ZIndex\" ? \"zIndex\" : resolverName.toLowerCase();\n\t\t\treturn value === true || value != null && value in conf.tokensParsed[category] || (resolverName === \"Space\" || resolverName === \"Radius\" || resolverName === \"ZIndex\") && (0, import_createVariable.isVariable)(value) || (resolverName === \"Radius\" || resolverName === \"ZIndex\") && (number || rem) || isAllowedStyleValue(category, value, conf, string, number, rem);\n\t\tcase \"Color\": return value != null && value in conf.tokensParsed.color || string;\n\t\tcase \"Theme\": return string && !!theme && value in theme;\n\t\tcase \"FontSize\":\n\t\t\tvar _conf_fontsParsed_body_size, _conf_fontsParsed_body;\n\t\t\treturn value === true || !!((_conf_fontsParsed_body = conf.fontsParsed.body) === null || _conf_fontsParsed_body === void 0 ? void 0 : (_conf_fontsParsed_body_size = _conf_fontsParsed_body.size) === null || _conf_fontsParsed_body_size === void 0 ? void 0 : _conf_fontsParsed_body_size[value]) || number || rem;\n\t\tcase \"FontStyle\":\n\t\t\tvar _conf_fontsParsed_body_style, _conf_fontsParsed_body1;\n\t\t\treturn !!((_conf_fontsParsed_body1 = conf.fontsParsed.body) === null || _conf_fontsParsed_body1 === void 0 ? void 0 : (_conf_fontsParsed_body_style = _conf_fontsParsed_body1.style) === null || _conf_fontsParsed_body_style === void 0 ? void 0 : _conf_fontsParsed_body_style[value]) || value === \"normal\" || value === \"italic\";\n\t\tcase \"FontTransform\":\n\t\t\tvar _conf_fontsParsed_body_transform, _conf_fontsParsed_body2;\n\t\t\treturn !!((_conf_fontsParsed_body2 = conf.fontsParsed.body) === null || _conf_fontsParsed_body2 === void 0 ? void 0 : (_conf_fontsParsed_body_transform = _conf_fontsParsed_body2.transform) === null || _conf_fontsParsed_body_transform === void 0 ? void 0 : _conf_fontsParsed_body_transform[value]) || value === \"none\" || value === \"capitalize\" || value === \"uppercase\" || value === \"lowercase\";\n\t\tcase \"FontLineHeight\":\n\t\t\tvar _conf_fontsParsed_body_lineHeight, _conf_fontsParsed_body3;\n\t\t\treturn !!((_conf_fontsParsed_body3 = conf.fontsParsed.body) === null || _conf_fontsParsed_body3 === void 0 ? void 0 : (_conf_fontsParsed_body_lineHeight = _conf_fontsParsed_body3.lineHeight) === null || _conf_fontsParsed_body_lineHeight === void 0 ? void 0 : _conf_fontsParsed_body_lineHeight[value]) || number || rem;\n\t\tcase \"FontLetterSpacing\":\n\t\t\tvar _conf_fontsParsed_body_letterSpacing, _conf_fontsParsed_body4;\n\t\t\treturn !!((_conf_fontsParsed_body4 = conf.fontsParsed.body) === null || _conf_fontsParsed_body4 === void 0 ? void 0 : (_conf_fontsParsed_body_letterSpacing = _conf_fontsParsed_body4.letterSpacing) === null || _conf_fontsParsed_body_letterSpacing === void 0 ? void 0 : _conf_fontsParsed_body_letterSpacing[value]) || number || rem;\n\t\tcase \"number\":\n\t\tcase \"string\":\n\t\tcase \"boolean\": return (typeof value === \"undefined\" ? \"undefined\" : _type_of(value)) === resolverName;\n\t\tcase \"any\": return true;\n\t}\n}\n//# sourceMappingURL=propMapper.js.map\n"],"mappings":";;;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC/B,KAAK,IAAI,QAAQ,KAAK,UAAU,QAAQ,MAAM;EAC7C,KAAK,IAAI;EACT,YAAY;CACb,CAAC;AACF;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC7C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EACnE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GAAG,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QAAQ,UAAU,IAAI,KAAK;GAC9G,WAAW,KAAK;GAChB,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAC3D,CAAC;CACF;CACA,OAAO;AACR;AACA,IAAI,cAAc,QAAQ,KAAK,kBAAkB,YAAY,QAAQ,KAAK,SAAS,GAAG,gBAAgB,YAAY,cAAc,KAAK,SAAS;AAC9I,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CA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Q,yCAAyC,KAAK,IAAI,KAAK,IAAI,qCAAqC,WAAW,UAAU;EACvU,KAAK;EACL,KAAK;EACL,KAAK,WAAW,QAAQ,OAAO,UAAU,cAAc,cAAc,SAAS,KAAK,OAAO;EAC1F,KAAK,OAAO,OAAO;CACpB;AACD"}
|
|
1
|
+
{"version":3,"file":"propMapper.native.js","names":[],"sources":["cjs/helpers/propMapper.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n\tfor (var name in all) __defProp(target, name, {\n\t\tget: all[name],\n\t\tenumerable: true\n\t});\n};\nvar __copyProps = (to, from, except, desc) => {\n\tif (from && typeof from === \"object\" || typeof from === \"function\") {\n\t\tfor (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {\n\t\t\tget: () => from[key],\n\t\t\tenumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable\n\t\t});\n\t}\n\treturn to;\n};\nvar __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, \"default\"), secondTarget && __copyProps(secondTarget, mod, \"default\"));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar propMapper_exports = {};\n__export(propMapper_exports, {\n\tappendFlatClause: () => appendFlatClause,\n\tgetFontFamilyFromNameOrVariable: () => getFontFamilyFromNameOrVariable,\n\tpropMapper: () => propMapper\n});\nmodule.exports = __toCommonJS(propMapper_exports);\nvar import_constants = require(\"@tamagui/constants\");\nvar import_runtime = require(\"@tamagui/style-grammar/runtime\");\nvar import_createVariable = require(\"../createVariable\");\nvar import_types = require(\"../types\");\nvar import_directStyle = require(\"./directStyle\");\nvar import_expandStyle = require(\"./expandStyle\");\nvar import_resolveVariableValue = require(\"./resolveVariableValue\");\nvar import_getVariantExtras = require(\"./getVariantExtras\");\nvar import_isObj = require(\"./isObj\");\nvar import_normalizeStyle = require(\"./normalizeStyle\");\nvar import_resolveRem = require(\"./resolveRem\");\nvar import_resolveSafeArea = require(\"./resolveSafeArea\");\nvar import_skipProps = require(\"./skipProps\");\nvar import_styleOriginalValues = require(\"./styleOriginalValues\");\n__reExport(propMapper_exports, require(\"./tokenCategories\"), module.exports);\nfunction _type_of(obj) {\n\t\"@swc/helpers - typeof\";\n\treturn obj && typeof Symbol !== \"undefined\" && obj.constructor === Symbol ? \"symbol\" : typeof obj;\n}\nfunction appendFlatClause(prev, conditionSource, value) {\n\tif (prev != null && typeof prev !== \"string\" && typeof prev !== \"number\") return;\n\tif (typeof value !== \"string\" && typeof value !== \"number\") return;\n\treturn prev == null ? `${conditionSource}:${value}` : `${prev} ${conditionSource}:${value}`;\n}\nvar propMapper = function(key, value, styleState, disabled, map) {\n\tif (disabled) return map(key, value);\n\tif (!import_constants.isAndroid) {\n\t\tif (key === \"elevationAndroid\") return;\n\t}\n\tvar { conf, styleProps, staticConfig } = styleState;\n\tvar { variants } = staticConfig;\n\tif (value === \"unset\") {\n\t\tvar expandedKey = !styleProps.disableExpandShorthands && conf.shorthands[key] || key;\n\t\tvar expanded = styleProps.noExpand ? null : (0, import_expandStyle.expandStyle)(expandedKey, value, conf.settings.styleCompat || \"web\");\n\t\tif (styleState.style) if (expanded) {\n\t\t\tvar _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n\t\t\ttry {\n\t\t\t\tfor (var _iterator = expanded[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n\t\t\t\t\tvar [nkey] = _step.value;\n\t\t\t\t\tdelete styleState.style[nkey];\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} else delete styleState.style[expandedKey];\n\t\treturn;\n\t}\n\tif (!styleProps.noExpand) {\n\t\tif (variants && key in variants) {\n\t\t\tvar variantValue = resolveVariants(key, value, styleProps, styleState, \"\");\n\t\t\tif (variantValue) {\n\t\t\t\tvar _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = void 0;\n\t\t\t\ttry {\n\t\t\t\t\tfor (var _iterator1 = variantValue[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) {\n\t\t\t\t\t\tvar entry = _step1.value;\n\t\t\t\t\t\tmap(entry[0], entry[1], entry[2], entry[3]);\n\t\t\t\t\t}\n\t\t\t\t} catch (err) {\n\t\t\t\t\t_didIteratorError1 = true;\n\t\t\t\t\t_iteratorError1 = err;\n\t\t\t\t} finally {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (!_iteratorNormalCompletion1 && _iterator1.return != null) _iterator1.return();\n\t\t\t\t\t} finally {\n\t\t\t\t\t\tif (_didIteratorError1) throw _iteratorError1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}\n\tif (!styleProps.disableExpandShorthands) {\n\t\tif (key in conf.shorthands) key = conf.shorthands[key];\n\t}\n\tvar originalValue = value;\n\tif (process.env.TAMAGUI_RUNTIME_SAFE_AREA !== \"disabled\" && value === \"safe\" && (0, import_resolveSafeArea.isSafeAreaKey)(key)) {\n\t\tvar expanded1 = (0, import_resolveSafeArea.expandSafeAreaValue)(key);\n\t\tif (expanded1) {\n\t\t\tfor (var i = 0; i < expanded1.length; i++) {\n\t\t\t\tvar [nkey1, nvalue] = expanded1[i];\n\t\t\t\tmap(nkey1, nvalue, originalValue);\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t}\n\tif (value != null) {\n\t\tif (typeof value === \"string\") value = (0, import_resolveRem.isRemValue)(value) ? (0, import_resolveRem.resolveRem)(value) : value;\n\t\telse if ((0, import_createVariable.isVariable)(value)) value = (0, import_resolveVariableValue.resolveVariableValue)(key, value, styleProps.resolveValues);\n\t\telse if ((0, import_resolveRem.isRemValue)(value)) value = (0, import_resolveRem.resolveRem)(value);\n\t}\n\tif (value != null) {\n\t\tif (key === \"fontFamily\" && typeof originalValue === \"string\") {\n\t\t\tif (originalValue in conf.fontsParsed) styleState.fontFamily = originalValue;\n\t\t}\n\t\tvar expanded2 = styleProps.noExpand || typeof value === \"string\" ? null : (0, import_expandStyle.expandStyle)(key, value, conf.settings.styleCompat || \"web\");\n\t\tif (expanded2) {\n\t\t\tvar max = expanded2.length;\n\t\t\tfor (var i1 = 0; i1 < max; i1++) {\n\t\t\t\tvar [nkey2, nvalue1, noriginalValue] = expanded2[i1];\n\t\t\t\tmap(nkey2, nvalue1, noriginalValue !== null && noriginalValue !== void 0 ? noriginalValue : originalValue);\n\t\t\t}\n\t\t} else map(key, value, originalValue);\n\t}\n};\nvar resolveVariants = function(key, value, styleProps, styleState, parentVariantKey) {\n\tvar _styleState_staticConfig_variants;\n\tvar variantDefinition = (_styleState_staticConfig_variants = styleState.staticConfig.variants) === null || _styleState_staticConfig_variants === void 0 ? void 0 : _styleState_staticConfig_variants[key];\n\tif (process.env.TAMAGUI_RUNTIME_STYLE_VALUE_GRAMMAR !== \"disabled\" && typeof value === \"string\" && value.indexOf(\":\") !== -1 && !(variantDefinition && (typeof variantDefinition === \"undefined\" ? \"undefined\" : _type_of(variantDefinition)) === \"object\" && value in variantDefinition)) {\n\t\tvar starts = [];\n\t\tvar ends = [];\n\t\tvar modifiers = [];\n\t\tvar pendingModifier;\n\t\tvar sawClause = false;\n\t\tvar refused = false;\n\t\t(0, import_runtime.scanFlatValue)(value, {\n\t\t\tsegment(start, end, isBase) {\n\t\t\t\tif (start === end) {\n\t\t\t\t\tif (!isBase) refused = true;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tstarts.push(start);\n\t\t\t\tends.push(end);\n\t\t\t\tmodifiers.push(pendingModifier);\n\t\t\t},\n\t\t\tchain(start, end) {\n\t\t\t\tif (refused) return false;\n\t\t\t\tvar source = value.slice(start, end);\n\t\t\t\tif (!(0, import_directStyle.getCondition)(styleState, source)) {\n\t\t\t\t\trefused = true;\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tpendingModifier = source;\n\t\t\t\tsawClause = true;\n\t\t\t\treturn true;\n\t\t\t},\n\t\t\terror() {\n\t\t\t\trefused = true;\n\t\t\t}\n\t\t});\n\t\tif (refused) return [];\n\t\tif (sawClause) {\n\t\t\tvar entries;\n\t\t\tfor (var index = 0; index < starts.length; index++) {\n\t\t\t\tvar resolved = resolveVariantValue(key, value.slice(starts[index], ends[index]), styleProps, styleState, parentVariantKey);\n\t\t\t\tif (!resolved) continue;\n\t\t\t\tentries || (entries = []);\n\t\t\t\tvar modifier = modifiers[index];\n\t\t\t\tvar _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n\t\t\t\ttry {\n\t\t\t\t\tfor (var _iterator = resolved[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n\t\t\t\t\t\tvar entry = _step.value;\n\t\t\t\t\t\tif (modifier !== void 0) entry[3] = modifier;\n\t\t\t\t\t\tentries.push(entry);\n\t\t\t\t\t}\n\t\t\t\t} catch (err) {\n\t\t\t\t\t_didIteratorError = true;\n\t\t\t\t\t_iteratorError = err;\n\t\t\t\t} finally {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (!_iteratorNormalCompletion && _iterator.return != null) _iterator.return();\n\t\t\t\t\t} finally {\n\t\t\t\t\t\tif (_didIteratorError) throw _iteratorError;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn entries || [];\n\t\t}\n\t}\n\treturn resolveVariantValue(key, value, styleProps, styleState, parentVariantKey);\n};\nvar resolveVariantValue = function(key, value, styleProps, styleState, parentVariantKey) {\n\tvar { staticConfig, conf, debug } = styleState;\n\tvar { variants } = staticConfig;\n\tif (!variants) return;\n\tvar variant = variants[key];\n\tvar variantValue = getVariantDefinition(variant, value, conf, styleState);\n\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\") {\n\t\tconsole.groupCollapsed(`\\u2666\\uFE0F\\u2666\\uFE0F\\u2666\\uFE0F resolve variant ${key}`);\n\t\tconsole.info({\n\t\t\tkey,\n\t\t\tvalue,\n\t\t\tvariantValue,\n\t\t\tvariants\n\t\t});\n\t\tconsole.groupEnd();\n\t}\n\tif (!variantValue) {\n\t\tif (process.env.TAMAGUI_WARN_ON_MISSING_VARIANT === \"1\") {\n\t\t\tif (typeof value !== \"boolean\") {\n\t\t\t\tvar name = styleState.styleProps.displayName || \"[UnnamedComponent]\";\n\t\t\t\tconsole.warn(`No variant found: ${name} has variant \"${key}\", but no matching value \"${value}\"`);\n\t\t\t}\n\t\t}\n\t\treturn;\n\t}\n\tif (typeof variantValue === \"function\") {\n\t\tvariantValue = variantValue(value, (0, import_getVariantExtras.getVariantExtras)(styleState));\n\t\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\" && false);\n\t}\n\tvar fontFamilyResult;\n\tif ((0, import_isObj.isObj)(variantValue)) {\n\t\tvar fontFamilyUpdate = variantValue.fontFamily || variantValue[conf.inverseShorthands.fontFamily];\n\t\tif (fontFamilyUpdate) {\n\t\t\tfontFamilyResult = getFontFamilyFromNameOrVariable(fontFamilyUpdate, conf);\n\t\t\tstyleState.fontFamily = fontFamilyResult;\n\t\t\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\") console.info(` updating font family`, fontFamilyResult);\n\t\t}\n\t\tvariantValue = resolveTokensAndVariants(key, variantValue, styleProps, styleState, parentVariantKey);\n\t}\n\tif (variantValue) {\n\t\tvar expanded = (0, import_normalizeStyle.normalizeStyle)(variantValue, !!styleProps.noNormalize);\n\t\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\") console.info(` expanding styles from `, variantValue, `to`, expanded);\n\t\tvar originalValues = import_styleOriginalValues.styleOriginalValues.get(expanded);\n\t\tvar next = [];\n\t\tfor (var _$key in expanded) next.push([\n\t\t\t_$key,\n\t\t\texpanded[_$key],\n\t\t\toriginalValues === null || originalValues === void 0 ? void 0 : originalValues[_$key]\n\t\t]);\n\t\treturn next;\n\t}\n};\nfunction getFontFamilyFromNameOrVariable(input, conf) {\n\tif ((0, import_createVariable.isVariable)(input)) {\n\t\tvar val = variableToFontNameCache.get(input);\n\t\tif (val) return val;\n\t\tfor (var key in conf.fontsParsed) {\n\t\t\tvar familyVariable = conf.fontsParsed[key].family;\n\t\t\tif ((0, import_createVariable.isVariable)(familyVariable)) {\n\t\t\t\tvariableToFontNameCache.set(familyVariable, key);\n\t\t\t\tif (familyVariable === input) return key;\n\t\t\t}\n\t\t}\n\t} else if (typeof input === \"string\" && input in conf.fontsParsed) return input;\n}\nvar variableToFontNameCache = /* @__PURE__ */ new WeakMap();\nvar resolveTokensAndVariants = function(key, value, styleProps, styleState, parentVariantKey) {\n\tvar { conf, staticConfig, debug } = styleState;\n\tvar { variants } = staticConfig;\n\tvar res = {};\n\tvar originalValues;\n\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\") console.info(` - resolveTokensAndVariants`, key, value);\n\tfor (var _key in value) {\n\t\tvar subKey = conf.shorthands[_key] || _key;\n\t\tvar val = value[_key];\n\t\tif (!styleProps.noSkip && subKey in import_skipProps.skipProps) continue;\n\t\toriginalValues || (originalValues = {});\n\t\toriginalValues[subKey] = val;\n\t\tif (staticConfig) {\n\t\t\tvar _staticConfig_context, _staticConfig_parentStaticConfig_context, _staticConfig_parentStaticConfig, _staticConfig_parentStaticConfig1, _staticConfig_parentStaticConfig2, _staticConfig_context_propKeys, _staticConfig_context1, _staticConfig_parentStaticConfig_context_propKeys, _staticConfig_parentStaticConfig_context1, _staticConfig_parentStaticConfig3;\n\t\t\tvar contextProps = ((_staticConfig_context = staticConfig.context) === null || _staticConfig_context === void 0 ? void 0 : _staticConfig_context.props) || ((_staticConfig_parentStaticConfig = staticConfig.parentStaticConfig) === null || _staticConfig_parentStaticConfig === void 0 ? void 0 : (_staticConfig_parentStaticConfig_context = _staticConfig_parentStaticConfig.context) === null || _staticConfig_parentStaticConfig_context === void 0 ? void 0 : _staticConfig_parentStaticConfig_context.props);\n\t\t\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\t\t\tvar contextPropKeys = staticConfig.contextProps || inheritedContextPropKeys;\n\t\t\tif (contextProps && subKey in contextProps || (contextPropKeys === null || contextPropKeys === void 0 ? void 0 : contextPropKeys.includes(subKey)) || ((_staticConfig_context1 = staticConfig.context) === null || _staticConfig_context1 === void 0 ? void 0 : (_staticConfig_context_propKeys = _staticConfig_context1.propKeys) === null || _staticConfig_context_propKeys === void 0 ? void 0 : _staticConfig_context_propKeys.includes(subKey)) || ((_staticConfig_parentStaticConfig3 = staticConfig.parentStaticConfig) === null || _staticConfig_parentStaticConfig3 === void 0 ? void 0 : (_staticConfig_parentStaticConfig_context1 = _staticConfig_parentStaticConfig3.context) === null || _staticConfig_parentStaticConfig_context1 === void 0 ? void 0 : (_staticConfig_parentStaticConfig_context_propKeys = _staticConfig_parentStaticConfig_context1.propKeys) === null || _staticConfig_parentStaticConfig_context_propKeys === void 0 ? void 0 : _staticConfig_parentStaticConfig_context_propKeys.includes(subKey))) {\n\t\t\t\tvar _styleState, _styleState1;\n\t\t\t\t(_styleState = styleState).overriddenContextProps || (_styleState.overriddenContextProps = {});\n\t\t\t\tstyleState.overriddenContextProps[subKey] = val;\n\t\t\t\t(_styleState1 = styleState).originalContextPropValues || (_styleState1.originalContextPropValues = {});\n\t\t\t\tstyleState.originalContextPropValues[subKey] = val;\n\t\t\t}\n\t\t}\n\t\tif (styleProps.noExpand) res[subKey] = val;\n\t\telse if (variants && subKey in variants) {\n\t\t\tif (parentVariantKey && parentVariantKey === key) res[subKey] = val;\n\t\t\telse {\n\t\t\t\tvar variantOut = resolveVariants(subKey, val, styleProps, styleState, key);\n\t\t\t\tif (variantOut) {\n\t\t\t\t\tvar _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tfor (var _iterator = variantOut[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n\t\t\t\t\t\t\tvar [_$key, val1, originalVal, conditionSource] = _step.value;\n\t\t\t\t\t\t\tif (val1 == null) continue;\n\t\t\t\t\t\t\tif (conditionSource !== void 0) {\n\t\t\t\t\t\t\t\tvar appended = appendFlatClause(res[_$key], conditionSource, val1);\n\t\t\t\t\t\t\t\tif (appended === void 0) {\n\t\t\t\t\t\t\t\t\tif (process.env.NODE_ENV === \"development\") console.warn(`[tamagui] conditional variant value for \"${_$key}\" is not string-representable; dropping the clause`);\n\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tres[_$key] = appended;\n\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tres[_$key] = val1;\n\t\t\t\t\t\t\tif (originalVal !== void 0) {\n\t\t\t\t\t\t\t\toriginalValues || (originalValues = {});\n\t\t\t\t\t\t\t\toriginalValues[_$key] = originalVal;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (err) {\n\t\t\t\t\t\t_didIteratorError = true;\n\t\t\t\t\t\t_iteratorError = err;\n\t\t\t\t\t} finally {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tif (!_iteratorNormalCompletion && _iterator.return != null) _iterator.return();\n\t\t\t\t\t\t} finally {\n\t\t\t\t\t\t\tif (_didIteratorError) throw _iteratorError;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcontinue;\n\t\t}\n\t\tif ((0, import_createVariable.isVariable)(val)) {\n\t\t\tres[subKey] = (0, import_resolveVariableValue.resolveVariableValue)(subKey, val, styleProps.resolveValues);\n\t\t\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\") console.info(`variable`, subKey, res[subKey]);\n\t\t\tcontinue;\n\t\t}\n\t\tif (typeof val === \"string\") {\n\t\t\tres[subKey] = (0, import_resolveRem.isRemValue)(val) ? (0, import_resolveRem.resolveRem)(val) : val;\n\t\t\tcontinue;\n\t\t}\n\t\tif ((0, import_isObj.isObj)(val)) {\n\t\t\tvar _res, _subKey;\n\t\t\tvar subObject = resolveTokensAndVariants(subKey, val, styleProps, styleState, key);\n\t\t\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\") console.info(`object`, subKey, subObject);\n\t\t\tvar _;\n\t\t\t(_ = (_res = res)[_subKey = subKey]) !== null && _ !== void 0 || (_res[_subKey] = {});\n\t\t\tObject.assign(res[subKey], subObject);\n\t\t\tvar subOriginalValues = import_styleOriginalValues.styleOriginalValues.get(subObject);\n\t\t\tif (subOriginalValues) {\n\t\t\t\tvar existing = import_styleOriginalValues.styleOriginalValues.get(res[subKey]);\n\t\t\t\tif (existing) Object.assign(existing, subOriginalValues);\n\t\t\t\telse import_styleOriginalValues.styleOriginalValues.set(res[subKey], { ...subOriginalValues });\n\t\t\t}\n\t\t} else res[subKey] = val;\n\t}\n\tif (originalValues) import_styleOriginalValues.styleOriginalValues.set(res, originalValues);\n\treturn res;\n};\nfunction getVariantDefinition(variant, value, conf, param) {\n\tvar { theme } = param;\n\tif (!variant) return;\n\tif (value === void 0) return;\n\tif (typeof variant === \"function\") return variant;\n\tif (Object.prototype.hasOwnProperty.call(variant, value)) return variant[value];\n\tvar _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n\ttry {\n\t\tfor (var _iterator = getCompiledVariantResolvers(variant)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n\t\t\tvar { key, parts } = _step.value;\n\t\t\tvar _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = void 0;\n\t\t\ttry {\n\t\t\t\tfor (var _iterator1 = parts[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) {\n\t\t\t\t\tvar part = _step1.value;\n\t\t\t\t\tif (matchesVariantResolver(part, value, conf, theme)) return variant[key];\n\t\t\t\t}\n\t\t\t} catch (err) {\n\t\t\t\t_didIteratorError1 = true;\n\t\t\t\t_iteratorError1 = err;\n\t\t\t} finally {\n\t\t\t\ttry {\n\t\t\t\t\tif (!_iteratorNormalCompletion1 && _iterator1.return != null) _iterator1.return();\n\t\t\t\t} finally {\n\t\t\t\t\tif (_didIteratorError1) throw _iteratorError1;\n\t\t\t\t}\n\t\t\t}\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}\nvar variantResolverNameSet = new Set(import_types.variantResolverNames);\nvar variantResolverCache = /* @__PURE__ */ new WeakMap();\nfunction getCompiledVariantResolvers(variant) {\n\tvar cached = variantResolverCache.get(variant);\n\tif (cached) return cached;\n\tvar compiled = [];\n\tvar _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n\ttry {\n\t\tfor (var _iterator = Object.keys(variant)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n\t\t\tvar key = _step.value;\n\t\t\tvar parts = parseVariantResolverKey(key);\n\t\t\tif (parts) compiled.push({\n\t\t\t\tkey,\n\t\t\t\tparts\n\t\t\t});\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\tvariantResolverCache.set(variant, compiled);\n\treturn compiled;\n}\nfunction parseVariantResolverKey(key) {\n\tif (!key) return null;\n\tvar parts = key.split(\"|\").map(function(part2) {\n\t\treturn part2.trim();\n\t});\n\tif (!parts.length) return null;\n\tvar _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n\ttry {\n\t\tfor (var _iterator = parts[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n\t\t\tvar part = _step.value;\n\t\t\tif (!variantResolverNameSet.has(part)) return null;\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\treturn parts;\n}\nvar numberStringPattern = /[+-]?(?:(?:\\d+\\.?\\d*)|(?:\\.\\d+))(?:[eE][+-]?\\d+)?|[+-]?0[xX][\\da-fA-F]+|[+-]?0[bB][01]+|[+-]?0[oO][0-7]+/;\nvar remStringPattern = new RegExp(`^(?:${numberStringPattern.source})rem$`);\nvar viewportValuePattern = new RegExp(`^(?:${numberStringPattern.source})(vw|dvw|lvw|svw|vh|dvh|lvh|svh)$`);\nfunction isAllowedStyleValue(category, value, conf, string, number, rem) {\n\tvar hasSetting = Object.prototype.hasOwnProperty.call(conf.settings, \"allowedStyleValues\");\n\tvar configured = conf.settings.allowedStyleValues;\n\tvar setting = configured && (typeof configured === \"undefined\" ? \"undefined\" : _type_of(configured)) === \"object\" ? configured[category] : configured;\n\tvar web = value === \"unset\" || value === \"inherit\" || string && /^var\\(.*\\)$/.test(value) || (category === \"size\" || category === \"space\") && (value === \"max-content\" || value === \"min-content\" || string && (viewportValuePattern.test(value) || /^(calc|min|max)\\(.*\\)$/.test(value)));\n\tvar somewhat = category === \"size\" || category === \"space\" ? value === \"auto\" || number || rem || string && value.endsWith(\"%\") : number;\n\tif (setting === \"strict\") return false;\n\tif (setting === \"strict-web\") return web;\n\tif (setting === \"somewhat-strict\") return somewhat;\n\tif (setting === \"somewhat-strict-web\") return somewhat || web;\n\treturn number || string && (category === \"size\" || category === \"space\" || !hasSetting);\n}\nfunction matchesVariantResolver(resolverName, value, conf, theme) {\n\tvar string = typeof value === \"string\";\n\tvar number = typeof value === \"number\";\n\tvar rem = string && remStringPattern.test(value);\n\tswitch (resolverName) {\n\t\tcase \"Size\":\n\t\tcase \"Space\":\n\t\tcase \"Radius\":\n\t\tcase \"ZIndex\":\n\t\t\tvar category = resolverName === \"ZIndex\" ? \"zIndex\" : resolverName.toLowerCase();\n\t\t\treturn value === true || value != null && value in conf.tokensParsed[category] || (resolverName === \"Space\" || resolverName === \"Radius\" || resolverName === \"ZIndex\") && (0, import_createVariable.isVariable)(value) || (resolverName === \"Radius\" || resolverName === \"ZIndex\") && (number || rem) || isAllowedStyleValue(category, value, conf, string, number, rem);\n\t\tcase \"Color\": return value != null && value in conf.tokensParsed.color || string;\n\t\tcase \"Theme\": return string && !!theme && value in theme;\n\t\tcase \"FontSize\":\n\t\t\tvar _conf_fontsParsed_body_size, _conf_fontsParsed_body;\n\t\t\treturn value === true || !!((_conf_fontsParsed_body = conf.fontsParsed.body) === null || _conf_fontsParsed_body === void 0 ? void 0 : (_conf_fontsParsed_body_size = _conf_fontsParsed_body.size) === null || _conf_fontsParsed_body_size === void 0 ? void 0 : _conf_fontsParsed_body_size[value]) || number || rem;\n\t\tcase \"FontStyle\":\n\t\t\tvar _conf_fontsParsed_body_style, _conf_fontsParsed_body1;\n\t\t\treturn !!((_conf_fontsParsed_body1 = conf.fontsParsed.body) === null || _conf_fontsParsed_body1 === void 0 ? void 0 : (_conf_fontsParsed_body_style = _conf_fontsParsed_body1.style) === null || _conf_fontsParsed_body_style === void 0 ? void 0 : _conf_fontsParsed_body_style[value]) || value === \"normal\" || value === \"italic\";\n\t\tcase \"FontTransform\":\n\t\t\tvar _conf_fontsParsed_body_transform, _conf_fontsParsed_body2;\n\t\t\treturn !!((_conf_fontsParsed_body2 = conf.fontsParsed.body) === null || _conf_fontsParsed_body2 === void 0 ? void 0 : (_conf_fontsParsed_body_transform = _conf_fontsParsed_body2.transform) === null || _conf_fontsParsed_body_transform === void 0 ? void 0 : _conf_fontsParsed_body_transform[value]) || value === \"none\" || value === \"capitalize\" || value === \"uppercase\" || value === \"lowercase\";\n\t\tcase \"FontLineHeight\":\n\t\t\tvar _conf_fontsParsed_body_lineHeight, _conf_fontsParsed_body3;\n\t\t\treturn !!((_conf_fontsParsed_body3 = conf.fontsParsed.body) === null || _conf_fontsParsed_body3 === void 0 ? void 0 : (_conf_fontsParsed_body_lineHeight = _conf_fontsParsed_body3.lineHeight) === null || _conf_fontsParsed_body_lineHeight === void 0 ? void 0 : _conf_fontsParsed_body_lineHeight[value]) || number || rem;\n\t\tcase \"FontLetterSpacing\":\n\t\t\tvar _conf_fontsParsed_body_letterSpacing, _conf_fontsParsed_body4;\n\t\t\treturn !!((_conf_fontsParsed_body4 = conf.fontsParsed.body) === null || _conf_fontsParsed_body4 === void 0 ? void 0 : (_conf_fontsParsed_body_letterSpacing = _conf_fontsParsed_body4.letterSpacing) === null || _conf_fontsParsed_body_letterSpacing === void 0 ? void 0 : _conf_fontsParsed_body_letterSpacing[value]) || number || rem;\n\t\tcase \"number\":\n\t\tcase \"string\":\n\t\tcase \"boolean\": return (type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KAAK,8BAA8B,uBAAuB,UAAU,QAAQ,gCAAgC,KAAK,IAAI,KAAK,IAAI,4BAA4B,WAAW,UAAU;EAClT,KAAK;GACJ,IAAI,8BAA8B;GAClC,OAAO,CAAC,GAAG,0BAA0B,KAAK,YAAY,UAAU,QAAQ,4BAA4B,KAAK,IAAI,KAAK,KAAK,+BAA+B,wBAAwB,WAAW,QAAQ,iCAAiC,KAAK,IAAI,KAAK,IAAI,6BAA6B,WAAW,UAAU,YAAY,UAAU;EAC7T,KAAK;GACJ,IAAI,kCAAkC;GACtC,OAAO,CAAC,GAAG,0BAA0B,KAAK,YAAY,UAAU,QAAQ,4BAA4B,KAAK,IAAI,KAAK,KAAK,mCAAmC,wBAAwB,eAAe,QAAQ,qCAAqC,KAAK,IAAI,KAAK,IAAI,iCAAiC,WAAW,UAAU,UAAU,UAAU,gBAAgB,UAAU,eAAe,UAAU;EAC9X,KAAK;GACJ,IAAI,mCAAmC;GACvC,OAAO,CAAC,GAAG,0BAA0B,KAAK,YAAY,UAAU,QAAQ,4BAA4B,KAAK,IAAI,KAAK,KAAK,oCAAoC,wBAAwB,gBAAgB,QAAQ,sCAAsC,KAAK,IAAI,KAAK,IAAI,kCAAkC,WAAW,UAAU;EAC3T,KAAK;GACJ,IAAI,sCAAsC;GAC1C,OAAO,CAAC,GAAG,0BAA0B,KAAK,YAAY,UAAU,QAAQ,4BAA4B,KAAK,IAAI,KAAK,KAAK,uCAAuC,wBAAwB,mBAAmB,QAAQ,yCAAyC,KAAK,IAAI,KAAK,IAAI,qCAAqC,WAAW,UAAU;EACvU,KAAK;EACL,KAAK;EACL,KAAK,WAAW,QAAQ,OAAO,UAAU,cAAc,cAAc,SAAS,KAAK,OAAO;EAC1F,KAAK,OAAO,OAAO;CACpB;AACD"}
|
|
@@ -72,7 +72,7 @@ function getThemeProxied(_props, _state, _keys, _schemeKeys) {
|
|
|
72
72
|
var shouldOptimize = scheme && platform !== "web" && import_constants.supportsDynamicColorIOS && !curProps.deopt && !curState.inverses && fastSchemeChange && rootMatchesSystem;
|
|
73
73
|
if (process.env.NODE_ENV === "development" && curProps.debug === "verbose") console.info(` \u{1F3A8} useTheme().get(${key}) theme=${name} scheme=${scheme}`, `
|
|
74
74
|
shouldOptimize=${shouldOptimize} (dynamicColorIOS=${import_constants.supportsDynamicColorIOS} deopt=${curProps.deopt} inverses=${curState.inverses} fastScheme=${fastSchemeChange} rootMatch=${rootMatchesSystem})`);
|
|
75
|
-
var inlineLayer = (_curState_theme = curState.theme) === null || _curState_theme === void 0 ? void 0 : _curState_theme[import_variables.inlineLayerKey];
|
|
75
|
+
var inlineLayer = process.env.TAMAGUI_RUNTIME_INLINE_THEME_VALUES === "disabled" ? void 0 : (_curState_theme = curState.theme) === null || _curState_theme === void 0 ? void 0 : _curState_theme[import_variables.inlineLayerKey];
|
|
76
76
|
var inlineOverridden = !!(inlineLayer === null || inlineLayer === void 0 ? void 0 : inlineLayer.overridden.has(key));
|
|
77
77
|
if (shouldOptimize && inlineOverridden) {
|
|
78
78
|
var pair = inlineLayer.pairs[key];
|
|
@@ -72,7 +72,7 @@ function getThemeProxied(_props, _state, _keys, _schemeKeys) {
|
|
|
72
72
|
var shouldOptimize = scheme && platform !== "web" && import_constants.supportsDynamicColorIOS && !curProps.deopt && !curState.inverses && fastSchemeChange && rootMatchesSystem;
|
|
73
73
|
if (process.env.NODE_ENV === "development" && curProps.debug === "verbose") console.info(` \u{1F3A8} useTheme().get(${key}) theme=${name} scheme=${scheme}`, `
|
|
74
74
|
shouldOptimize=${shouldOptimize} (dynamicColorIOS=${import_constants.supportsDynamicColorIOS} deopt=${curProps.deopt} inverses=${curState.inverses} fastScheme=${fastSchemeChange} rootMatch=${rootMatchesSystem})`);
|
|
75
|
-
var inlineLayer = (_curState_theme = curState.theme) === null || _curState_theme === void 0 ? void 0 : _curState_theme[import_variables.inlineLayerKey];
|
|
75
|
+
var inlineLayer = process.env.TAMAGUI_RUNTIME_INLINE_THEME_VALUES === "disabled" ? void 0 : (_curState_theme = curState.theme) === null || _curState_theme === void 0 ? void 0 : _curState_theme[import_variables.inlineLayerKey];
|
|
76
76
|
var inlineOverridden = !!(inlineLayer === null || inlineLayer === void 0 ? void 0 : inlineLayer.overridden.has(key));
|
|
77
77
|
if (shouldOptimize && inlineOverridden) {
|
|
78
78
|
var pair = inlineLayer.pairs[key];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getThemeProxied.native.js","names":[],"sources":["cjs/hooks/getThemeProxied.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n\tfor (var name in all) __defProp(target, name, {\n\t\tget: all[name],\n\t\tenumerable: true\n\t});\n};\nvar __copyProps = (to, from, except, desc) => {\n\tif (from && typeof from === \"object\" || typeof from === \"function\") {\n\t\tfor (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {\n\t\t\tget: () => from[key],\n\t\t\tenumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable\n\t\t});\n\t}\n\treturn to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar getThemeProxied_exports = {};\n__export(getThemeProxied_exports, { getThemeProxied: () => getThemeProxied });\nmodule.exports = __toCommonJS(getThemeProxied_exports);\nvar import_constants = require(\"@tamagui/constants\");\nvar import_config = require(\"../config\");\nvar import_createVariable = require(\"../createVariable\");\nvar import_getDynamicVal = require(\"../helpers/getDynamicVal\");\nvar import_variables = require(\"../helpers/variables\");\nvar import_doesRootSchemeMatchSystem = require(\"./doesRootSchemeMatchSystem\");\nvar trackingCache = /* @__PURE__ */ new WeakMap();\nvar untrackedCache = /* @__PURE__ */ new WeakMap();\nvar curKeys;\nvar curSchemeKeys;\nvar curProps;\nvar curState;\nvar emptyObject = {};\nfunction track(key) {\n\tvar schemeOptimized = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;\n\tif (!curKeys) return;\n\tif (!curKeys.current) curKeys.current = /* @__PURE__ */ new Set();\n\tcurKeys.current.add(key);\n\tif (schemeOptimized && curSchemeKeys) {\n\t\tif (!curSchemeKeys.current) curSchemeKeys.current = /* @__PURE__ */ new Set();\n\t\tcurSchemeKeys.current.add(key);\n\t}\n\tif (process.env.NODE_ENV === \"development\" && curProps.debug) console.info(` \\u{1F3A8} useTheme() tracking key: ${key} schemeOptimized=${schemeOptimized}`);\n}\nfunction getThemeProxied(_props, _state, _keys, _schemeKeys) {\n\tvar optimizeForFirstRender = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : false;\n\tif (!(_state === null || _state === void 0 ? void 0 : _state.theme)) return emptyObject;\n\tif (!optimizeForFirstRender) {\n\t\tcurKeys = _keys;\n\t\tcurSchemeKeys = _schemeKeys;\n\t}\n\tcurProps = _props;\n\tcurState = _state;\n\tvar cache = optimizeForFirstRender ? untrackedCache : trackingCache;\n\tif (cache.has(curState.theme)) return cache.get(curState.theme);\n\tvar config = (0, import_config.getConfig)();\n\tvar proxied1 = Object.fromEntries(Object.entries(_state.theme).flatMap(function(param) {\n\t\tvar [key, value] = param;\n\t\tvar get = function(platform) {\n\t\t\tif (!curState) return;\n\t\t\tvar outVal = (0, import_createVariable.getVariable)(value);\n\t\t\tvar { name, scheme } = curState;\n\t\t\tvar _curState_theme;\n\t\t\tvar fastSchemeChange = (0, import_config.getSetting)(\"fastSchemeChange\");\n\t\t\tvar rootMatchesSystem = (0, import_doesRootSchemeMatchSystem.doesRootSchemeMatchSystem)();\n\t\t\tvar shouldOptimize = scheme && platform !== \"web\" && import_constants.supportsDynamicColorIOS && !curProps.deopt && !curState.inverses && fastSchemeChange && rootMatchesSystem;\n\t\t\tif (process.env.NODE_ENV === \"development\" && curProps.debug === \"verbose\") console.info(` \\u{1F3A8} useTheme().get(${key}) theme=${name} scheme=${scheme}`, `\n shouldOptimize=${shouldOptimize} (dynamicColorIOS=${import_constants.supportsDynamicColorIOS} deopt=${curProps.deopt} inverses=${curState.inverses} fastScheme=${fastSchemeChange} rootMatch=${rootMatchesSystem})`);\n\t\t\tvar inlineLayer = (_curState_theme = curState.theme) === null || _curState_theme === void 0 ? void 0 : _curState_theme[import_variables.inlineLayerKey];\n\t\t\tvar inlineOverridden = !!(inlineLayer === null || inlineLayer === void 0 ? void 0 : inlineLayer.overridden.has(key));\n\t\t\tif (shouldOptimize && inlineOverridden) {\n\t\t\t\tvar pair = inlineLayer.pairs[key];\n\t\t\t\tif (pair) {\n\t\t\t\t\tif (!optimizeForFirstRender) track(key, true);\n\t\t\t\t\treturn (0, import_getDynamicVal.getDynamicVal)({\n\t\t\t\t\t\tscheme,\n\t\t\t\t\t\tval: String(pair[scheme]),\n\t\t\t\t\t\toppositeVal: String(pair[scheme === \"dark\" ? \"light\" : \"dark\"])\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (shouldOptimize && !inlineOverridden) {\n\t\t\t\tvar _config_themes_name, _config_themes_oppositeName;\n\t\t\t\tvar oppositeScheme = scheme === \"dark\" ? \"light\" : \"dark\";\n\t\t\t\tvar oppositeName = name.replace(scheme, oppositeScheme);\n\t\t\t\tvar color = (0, import_createVariable.getVariable)((_config_themes_name = config.themes[name]) === null || _config_themes_name === void 0 ? void 0 : _config_themes_name[key]);\n\t\t\t\tvar oppositeColor = (0, import_createVariable.getVariable)((_config_themes_oppositeName = config.themes[oppositeName]) === null || _config_themes_oppositeName === void 0 ? void 0 : _config_themes_oppositeName[key]);\n\t\t\t\tif (process.env.NODE_ENV === \"development\" && curProps.debug === \"verbose\") console.info(` \\u{1F3A8} useTheme().get(${key}) using DynamicColorIOS`, `\n color=${color} oppositeColor=${oppositeColor}`);\n\t\t\t\tvar dynamicVal = (0, import_getDynamicVal.getDynamicVal)({\n\t\t\t\t\tscheme,\n\t\t\t\t\tval: color,\n\t\t\t\t\toppositeVal: oppositeColor\n\t\t\t\t});\n\t\t\t\tif (!optimizeForFirstRender) track(key, true);\n\t\t\t\treturn dynamicVal;\n\t\t\t}\n\t\t\tif (process.env.NODE_ENV === \"development\" && curProps.debug) console.info(` \\u{1F3A8} useTheme().get(${key}) tracking key (not optimizing)`, `\n platform=${platform} dynamicColorIOS=${import_constants.supportsDynamicColorIOS} deopt=${curProps.deopt} fastScheme=${fastSchemeChange}`);\n\t\t\tif (!optimizeForFirstRender) track(key, false);\n\t\t\treturn outVal;\n\t\t};\n\t\treturn [[key, optimizeForFirstRender ? {\n\t\t\t...value,\n\t\t\tval: value.val,\n\t\t\tget\n\t\t} : {\n\t\t\t...value,\n\t\t\tget val() {\n\t\t\t\tif (!globalThis.tamaguiAvoidTracking) track(key, false);\n\t\t\t\treturn value.val;\n\t\t\t},\n\t\t\tget\n\t\t}]];\n\t}));\n\tcache.set(_state.theme, proxied1);\n\treturn proxied1;\n}\n//# sourceMappingURL=getThemeProxied.js.map\n"],"mappings":";;;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC/B,KAAK,IAAI,QAAQ,KAAK,UAAU,QAAQ,MAAM;EAC7C,KAAK,IAAI;EACT,YAAY;CACb,CAAC;AACF;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC7C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EACnE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GAAG,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QAAQ,UAAU,IAAI,KAAK;GAC9G,WAAW,KAAK;GAChB,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAC3D,CAAC;CACF;CACA,OAAO;AACR;AACA,IAAI,gBAAgB,QAAQ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eProxied.native.js","names":[],"sources":["cjs/hooks/getThemeProxied.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n\tfor (var name in all) __defProp(target, name, {\n\t\tget: all[name],\n\t\tenumerable: true\n\t});\n};\nvar __copyProps = (to, from, except, desc) => {\n\tif (from && typeof from === \"object\" || typeof from === \"function\") {\n\t\tfor (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {\n\t\t\tget: () => from[key],\n\t\t\tenumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable\n\t\t});\n\t}\n\treturn to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar getThemeProxied_exports = {};\n__export(getThemeProxied_exports, { getThemeProxied: () => getThemeProxied });\nmodule.exports = __toCommonJS(getThemeProxied_exports);\nvar import_constants = require(\"@tamagui/constants\");\nvar import_config = require(\"../config\");\nvar import_createVariable = require(\"../createVariable\");\nvar import_getDynamicVal = require(\"../helpers/getDynamicVal\");\nvar import_variables = require(\"../helpers/variables\");\nvar import_doesRootSchemeMatchSystem = require(\"./doesRootSchemeMatchSystem\");\nvar trackingCache = /* @__PURE__ */ new WeakMap();\nvar untrackedCache = /* @__PURE__ */ new WeakMap();\nvar curKeys;\nvar curSchemeKeys;\nvar curProps;\nvar curState;\nvar emptyObject = {};\nfunction track(key) {\n\tvar schemeOptimized = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;\n\tif (!curKeys) return;\n\tif (!curKeys.current) curKeys.current = /* @__PURE__ */ new Set();\n\tcurKeys.current.add(key);\n\tif (schemeOptimized && curSchemeKeys) {\n\t\tif (!curSchemeKeys.current) curSchemeKeys.current = /* @__PURE__ */ new Set();\n\t\tcurSchemeKeys.current.add(key);\n\t}\n\tif (process.env.NODE_ENV === \"development\" && curProps.debug) console.info(` \\u{1F3A8} useTheme() tracking key: ${key} schemeOptimized=${schemeOptimized}`);\n}\nfunction getThemeProxied(_props, _state, _keys, _schemeKeys) {\n\tvar optimizeForFirstRender = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : false;\n\tif (!(_state === null || _state === void 0 ? void 0 : _state.theme)) return emptyObject;\n\tif (!optimizeForFirstRender) {\n\t\tcurKeys = _keys;\n\t\tcurSchemeKeys = _schemeKeys;\n\t}\n\tcurProps = _props;\n\tcurState = _state;\n\tvar cache = optimizeForFirstRender ? untrackedCache : trackingCache;\n\tif (cache.has(curState.theme)) return cache.get(curState.theme);\n\tvar config = (0, import_config.getConfig)();\n\tvar proxied1 = Object.fromEntries(Object.entries(_state.theme).flatMap(function(param) {\n\t\tvar [key, value] = param;\n\t\tvar get = function(platform) {\n\t\t\tif (!curState) return;\n\t\t\tvar outVal = (0, import_createVariable.getVariable)(value);\n\t\t\tvar { name, scheme } = curState;\n\t\t\tvar _curState_theme;\n\t\t\tvar fastSchemeChange = (0, import_config.getSetting)(\"fastSchemeChange\");\n\t\t\tvar rootMatchesSystem = (0, import_doesRootSchemeMatchSystem.doesRootSchemeMatchSystem)();\n\t\t\tvar shouldOptimize = scheme && platform !== \"web\" && import_constants.supportsDynamicColorIOS && !curProps.deopt && !curState.inverses && fastSchemeChange && rootMatchesSystem;\n\t\t\tif (process.env.NODE_ENV === \"development\" && curProps.debug === \"verbose\") console.info(` \\u{1F3A8} useTheme().get(${key}) theme=${name} scheme=${scheme}`, `\n shouldOptimize=${shouldOptimize} (dynamicColorIOS=${import_constants.supportsDynamicColorIOS} deopt=${curProps.deopt} inverses=${curState.inverses} fastScheme=${fastSchemeChange} rootMatch=${rootMatchesSystem})`);\n\t\t\tvar inlineLayer = process.env.TAMAGUI_RUNTIME_INLINE_THEME_VALUES === \"disabled\" ? void 0 : (_curState_theme = curState.theme) === null || _curState_theme === void 0 ? void 0 : _curState_theme[import_variables.inlineLayerKey];\n\t\t\tvar inlineOverridden = !!(inlineLayer === null || inlineLayer === void 0 ? void 0 : inlineLayer.overridden.has(key));\n\t\t\tif (shouldOptimize && inlineOverridden) {\n\t\t\t\tvar pair = inlineLayer.pairs[key];\n\t\t\t\tif (pair) {\n\t\t\t\t\tif (!optimizeForFirstRender) track(key, true);\n\t\t\t\t\treturn (0, import_getDynamicVal.getDynamicVal)({\n\t\t\t\t\t\tscheme,\n\t\t\t\t\t\tval: String(pair[scheme]),\n\t\t\t\t\t\toppositeVal: String(pair[scheme === \"dark\" ? \"light\" : \"dark\"])\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (shouldOptimize && !inlineOverridden) {\n\t\t\t\tvar _config_themes_name, _config_themes_oppositeName;\n\t\t\t\tvar oppositeScheme = scheme === \"dark\" ? \"light\" : \"dark\";\n\t\t\t\tvar oppositeName = name.replace(scheme, oppositeScheme);\n\t\t\t\tvar color = (0, import_createVariable.getVariable)((_config_themes_name = config.themes[name]) === null || _config_themes_name === void 0 ? void 0 : _config_themes_name[key]);\n\t\t\t\tvar oppositeColor = (0, import_createVariable.getVariable)((_config_themes_oppositeName = config.themes[oppositeName]) === null || _config_themes_oppositeName === void 0 ? void 0 : _config_themes_oppositeName[key]);\n\t\t\t\tif (process.env.NODE_ENV === \"development\" && curProps.debug === \"verbose\") console.info(` \\u{1F3A8} useTheme().get(${key}) using DynamicColorIOS`, `\n color=${color} oppositeColor=${oppositeColor}`);\n\t\t\t\tvar dynamicVal = (0, import_getDynamicVal.getDynamicVal)({\n\t\t\t\t\tscheme,\n\t\t\t\t\tval: color,\n\t\t\t\t\toppositeVal: oppositeColor\n\t\t\t\t});\n\t\t\t\tif (!optimizeForFirstRender) track(key, true);\n\t\t\t\treturn dynamicVal;\n\t\t\t}\n\t\t\tif (process.env.NODE_ENV === \"development\" && curProps.debug) console.info(` \\u{1F3A8} useTheme().get(${key}) tracking key (not optimizing)`, `\n platform=${platform} dynamicColorIOS=${import_constants.supportsDynamicColorIOS} deopt=${curProps.deopt} fastScheme=${fastSchemeChange}`);\n\t\t\tif (!optimizeForFirstRender) track(key, false);\n\t\t\treturn outVal;\n\t\t};\n\t\treturn [[key, optimizeForFirstRender ? {\n\t\t\t...value,\n\t\t\tval: value.val,\n\t\t\tget\n\t\t} : {\n\t\t\t...value,\n\t\t\tget val() {\n\t\t\t\tif (!globalThis.tamaguiAvoidTracking) track(key, false);\n\t\t\t\treturn value.val;\n\t\t\t},\n\t\t\tget\n\t\t}]];\n\t}));\n\tcache.set(_state.theme, proxied1);\n\treturn proxied1;\n}\n//# sourceMappingURL=getThemeProxied.js.map\n"],"mappings":";;;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC/B,KAAK,IAAI,QAAQ,KAAK,UAAU,QAAQ,MAAM;EAC7C,KAAK,IAAI;EACT,YAAY;CACb,CAAC;AACF;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC7C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EACnE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GAAG,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QAAQ,UAAU,IAAI,KAAK;GAC9G,WAAW,KAAK;GAChB,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAC3D,CAAC;CACF;CACA,OAAO;AACR;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,0BAA0B,CAAC;AAC/B,SAAS,yBAAyB,EAAE,uBAAuB,gBAAgB,CAAC;AAC5E,OAAO,UAAU,aAAa,uBAAuB;AACrD,IAAI,mBAAmB,QAAQ,oB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I,eAAe,KAAK,QAAQ,QAAQ,cAAc;IACtD,IAAI,SAAS,GAAG,sBAAsB,cAAc,sBAAsB,OAAO,OAAO,WAAW,QAAQ,wBAAwB,KAAK,IAAI,KAAK,IAAI,oBAAoB,IAAI;IAC7K,IAAI,iBAAiB,GAAG,sBAAsB,cAAc,8BAA8B,OAAO,OAAO,mBAAmB,QAAQ,gCAAgC,KAAK,IAAI,KAAK,IAAI,4BAA4B,IAAI;IACrN,IAAI,QAAQ,IAAI,aAAa,iBAAiB,SAAS,UAAU,WAAW,QAAQ,KAAK,6BAA6B,IAAI,0BAA0B;WAC7I,MAAM,iBAAiB,eAAe;IAC7C,IAAI,cAAc,GAAG,qBAAqB,eAAe;KACxD;KACA,KAAK;KACL,aAAa;IACd,CAAC;IACD,IAAI,CAAC,wBAAwB,MAAM,KAAK,IAAI;IAC5C,OAAO;GACR;GACA,IAAI,QAAQ,IAAI,aAAa,iBAAiB,SAAS,OAAO,QAAQ,KAAK,6BAA6B,IAAI,kCAAkC;cACnI,SAAS,mBAAmB,iBAAiB,wBAAwB,SAAS,SAAS,MAAM,cAAc,kBAAkB;GACxI,IAAI,CAAC,wBAAwB,MAAM,KAAK,KAAK;GAC7C,OAAO;EACR;EACA,OAAO,CAAC,CAAC,KAAK,yBAAyB;GACtC,GAAG;GACH,KAAK,MAAM;GACX;EACD,IAAI;GACH,GAAG;GACH,IAAI,MAAM;IACT,IAAI,CAAC,WAAW,sBAAsB,MAAM,KAAK,KAAK;IACtD,OAAO,MAAM;GACd;GACA;EACD,CAAC,CAAC;CACH,CAAC,CAAC;CACF,MAAM,IAAI,OAAO,OAAO,QAAQ;CAChC,OAAO;AACR"}
|
|
@@ -98,7 +98,7 @@ const useComponentState = (props, animationDriver, staticConfig, config) => {
|
|
|
98
98
|
if (!needsHydration && hasAnimationProp) {
|
|
99
99
|
curStateRef.hasAnimated = true;
|
|
100
100
|
}
|
|
101
|
-
const platformPseudo = Boolean(!isHOC && useAnimations && animationDriver?.avoidReRenders && (0, import_constants.getPlatformDriver)()?.pseudo && hasFlatModifier(props, config, platformPseudoModifiers));
|
|
101
|
+
const platformPseudo = Boolean(!isHOC && useAnimations && animationDriver?.avoidReRenders && (0, import_constants.getPlatformDriver)()?.pseudo && process.env.TAMAGUI_RUNTIME_STYLE_VALUE_GRAMMAR !== "disabled" && hasFlatModifier(props, config, platformPseudoModifiers));
|
|
102
102
|
const willBeAnimatedClient = (() => {
|
|
103
103
|
const next = !!((hasAnimationProp || platformPseudo) && !isHOC && useAnimations);
|
|
104
104
|
return Boolean(next || curStateRef.hasAnimated);
|
|
@@ -112,7 +112,7 @@ const useComponentState = (props, animationDriver, staticConfig, config) => {
|
|
|
112
112
|
const presenceState = presence?.[2];
|
|
113
113
|
const isExiting = presenceState?.isPresent === false;
|
|
114
114
|
const isEntering = presenceState?.isPresent === true && presenceState.initial !== false;
|
|
115
|
-
const hasEnterStyle = hasFlatModifier(props, config, enterModifier);
|
|
115
|
+
const hasEnterStyle = process.env.TAMAGUI_RUNTIME_STYLE_VALUE_GRAMMAR !== "disabled" && hasFlatModifier(props, config, enterModifier);
|
|
116
116
|
const hasAnimationThatNeedsHydrate = hasAnimationProp && !isHydrated && (animationDriver?.isReactNative || inputStyle !== "css");
|
|
117
117
|
const canImmediatelyEnter = hasEnterStyle || isEntering;
|
|
118
118
|
const shouldEnter = !isHOC && (hasEnterStyle || isEntering || hasAnimationThatNeedsHydrate || disableClassName);
|
|
@@ -107,7 +107,7 @@ var useComponentState = function(props, animationDriver, staticConfig, config) {
|
|
|
107
107
|
if (!needsHydration && hasAnimationProp) {
|
|
108
108
|
curStateRef.hasAnimated = true;
|
|
109
109
|
}
|
|
110
|
-
var platformPseudo = Boolean(!isHOC && useAnimations && (animationDriver === null || animationDriver === void 0 ? void 0 : animationDriver.avoidReRenders) && ((_getPlatformDriver = (0, import_constants.getPlatformDriver)()) === null || _getPlatformDriver === void 0 ? void 0 : _getPlatformDriver.pseudo) && hasFlatModifier(props, config, platformPseudoModifiers));
|
|
110
|
+
var platformPseudo = Boolean(!isHOC && useAnimations && (animationDriver === null || animationDriver === void 0 ? void 0 : animationDriver.avoidReRenders) && ((_getPlatformDriver = (0, import_constants.getPlatformDriver)()) === null || _getPlatformDriver === void 0 ? void 0 : _getPlatformDriver.pseudo) && process.env.TAMAGUI_RUNTIME_STYLE_VALUE_GRAMMAR !== "disabled" && hasFlatModifier(props, config, platformPseudoModifiers));
|
|
111
111
|
var willBeAnimatedClient = (function() {
|
|
112
112
|
var next = !!((hasAnimationProp || platformPseudo) && !isHOC && useAnimations);
|
|
113
113
|
return Boolean(next || curStateRef.hasAnimated);
|
|
@@ -121,7 +121,7 @@ var useComponentState = function(props, animationDriver, staticConfig, config) {
|
|
|
121
121
|
var presenceState = presence === null || presence === void 0 ? void 0 : presence[2];
|
|
122
122
|
var isExiting = (presenceState === null || presenceState === void 0 ? void 0 : presenceState.isPresent) === false;
|
|
123
123
|
var isEntering = (presenceState === null || presenceState === void 0 ? void 0 : presenceState.isPresent) === true && presenceState.initial !== false;
|
|
124
|
-
var hasEnterStyle = hasFlatModifier(props, config, enterModifier);
|
|
124
|
+
var hasEnterStyle = process.env.TAMAGUI_RUNTIME_STYLE_VALUE_GRAMMAR !== "disabled" && hasFlatModifier(props, config, enterModifier);
|
|
125
125
|
var hasAnimationThatNeedsHydrate = hasAnimationProp && !isHydrated && ((animationDriver === null || animationDriver === void 0 ? void 0 : animationDriver.isReactNative) || inputStyle !== "css");
|
|
126
126
|
var canImmediatelyEnter = hasEnterStyle || isEntering;
|
|
127
127
|
var shouldEnter = !isHOC && (hasEnterStyle || isEntering || hasAnimationThatNeedsHydrate || disableClassName);
|
|
@@ -107,7 +107,7 @@ var useComponentState = function(props, animationDriver, staticConfig, config) {
|
|
|
107
107
|
if (!needsHydration && hasAnimationProp) {
|
|
108
108
|
curStateRef.hasAnimated = true;
|
|
109
109
|
}
|
|
110
|
-
var platformPseudo = Boolean(!isHOC && useAnimations && (animationDriver === null || animationDriver === void 0 ? void 0 : animationDriver.avoidReRenders) && ((_getPlatformDriver = (0, import_constants.getPlatformDriver)()) === null || _getPlatformDriver === void 0 ? void 0 : _getPlatformDriver.pseudo) && hasFlatModifier(props, config, platformPseudoModifiers));
|
|
110
|
+
var platformPseudo = Boolean(!isHOC && useAnimations && (animationDriver === null || animationDriver === void 0 ? void 0 : animationDriver.avoidReRenders) && ((_getPlatformDriver = (0, import_constants.getPlatformDriver)()) === null || _getPlatformDriver === void 0 ? void 0 : _getPlatformDriver.pseudo) && process.env.TAMAGUI_RUNTIME_STYLE_VALUE_GRAMMAR !== "disabled" && hasFlatModifier(props, config, platformPseudoModifiers));
|
|
111
111
|
var willBeAnimatedClient = (function() {
|
|
112
112
|
var next = !!((hasAnimationProp || platformPseudo) && !isHOC && useAnimations);
|
|
113
113
|
return Boolean(next || curStateRef.hasAnimated);
|
|
@@ -121,7 +121,7 @@ var useComponentState = function(props, animationDriver, staticConfig, config) {
|
|
|
121
121
|
var presenceState = presence === null || presence === void 0 ? void 0 : presence[2];
|
|
122
122
|
var isExiting = (presenceState === null || presenceState === void 0 ? void 0 : presenceState.isPresent) === false;
|
|
123
123
|
var isEntering = (presenceState === null || presenceState === void 0 ? void 0 : presenceState.isPresent) === true && presenceState.initial !== false;
|
|
124
|
-
var hasEnterStyle = hasFlatModifier(props, config, enterModifier);
|
|
124
|
+
var hasEnterStyle = process.env.TAMAGUI_RUNTIME_STYLE_VALUE_GRAMMAR !== "disabled" && hasFlatModifier(props, config, enterModifier);
|
|
125
125
|
var hasAnimationThatNeedsHydrate = hasAnimationProp && !isHydrated && ((animationDriver === null || animationDriver === void 0 ? void 0 : animationDriver.isReactNative) || inputStyle !== "css");
|
|
126
126
|
var canImmediatelyEnter = hasEnterStyle || isEntering;
|
|
127
127
|
var shouldEnter = !isHOC && (hasEnterStyle || isEntering || hasAnimationThatNeedsHydrate || disableClassName);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useComponentState.native.js","names":[],"sources":["cjs/hooks/useComponentState.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar useComponentState_exports = {};\n__export(useComponentState_exports, {\n useComponentState: () => useComponentState\n});\nmodule.exports = __toCommonJS(useComponentState_exports);\nvar import_constants = require(\"@tamagui/constants\");\nvar import_helpers = require(\"@tamagui/helpers\");\nvar import_runtime = require(\"@tamagui/style-grammar/runtime\");\nvar import_is_equal_shallow = require(\"@tamagui/is-equal-shallow\");\nvar import_use_did_finish_ssr = require(\"@tamagui/use-did-finish-ssr\");\nvar import_react = require(\"react\");\nvar import_config = require(\"../config\");\nvar import_formatDiagnostic = require(\"../helpers/formatDiagnostic\");\nvar import_isOptimizedForFirstRender = require(\"./isOptimizedForFirstRender\");\nvar import_defaultComponentState = require(\"../defaultComponentState\");\nvar import_isObj = require(\"../helpers/isObj\");\nvar import_log = require(\"../helpers/log\");\nfunction _type_of(obj) {\n \"@swc/helpers - typeof\";\n return obj && typeof Symbol !== \"undefined\" && obj.constructor === Symbol ? \"symbol\" : typeof obj;\n}\nvar platformPseudoModifiers = /* @__PURE__ */ new Set([\n \"hover\",\n \"press\",\n \"focus\"\n]);\nvar enterModifier = /* @__PURE__ */ new Set([\n \"enter\"\n]);\nvar scanSource = \"\";\nvar scanWanted = enterModifier;\nvar scanFound = false;\nvar scanRefused = false;\nvar lifecycleVisitor = {\n segment(start, end, isBase) {\n if (start === end && !isBase) scanRefused = true;\n },\n chain(start, end) {\n if (scanRefused) return false;\n for (var index = start; index <= end; index++) {\n if (index !== end && scanSource.charCodeAt(index) !== 58) continue;\n if (scanWanted.has((0, import_runtime.canonicalClauseModifier)(scanSource.slice(start, index)))) {\n scanFound = true;\n }\n start = index + 1;\n }\n return true;\n },\n error() {\n scanRefused = true;\n }\n};\nfunction hasFlatModifier(props, config, modifiers) {\n for (var key in props) {\n var value = props[key];\n if (typeof value !== \"string\" || value.indexOf(\":\") === -1) continue;\n var property = config.shorthands[key] || key;\n if (!(property in import_helpers.stylePropsAll) && property !== \"transition\") continue;\n scanSource = value;\n scanWanted = modifiers;\n scanFound = false;\n scanRefused = false;\n (0, import_runtime.scanFlatValue)(value, lifecycleVisitor);\n if (scanFound && !scanRefused) return true;\n }\n return false;\n}\nvar useComponentState = function(props, animationDriver, staticConfig, config) {\n \"use no memo\";\n var _getPlatformDriver, _animationDriver_usePresence;\n var isHydrated = (0, import_use_did_finish_ssr.useDidFinishSSR)();\n var needsHydration = !(0, import_use_did_finish_ssr.useIsClientOnly)();\n var useAnimations = (animationDriver === null || animationDriver === void 0 ? void 0 : animationDriver.isStub) ? void 0 : animationDriver === null || animationDriver === void 0 ? void 0 : animationDriver.useAnimations;\n var { isHOC } = staticConfig;\n var stateRef = (0, import_react.useRef)(\n // performance: avoid creating object every render\n void 0\n );\n if (!stateRef.current) {\n stateRef.current = {\n startedUnhydrated: needsHydration && !isHydrated,\n optimizeForFirstRender: (0, import_isOptimizedForFirstRender.isOptimizedForFirstRender)()\n };\n }\n var hasAnimationProp = Boolean(!isHOC && \"transition\" in props || props.style && hasAnimatedStyleValue(props.style));\n var _animationDriver_inputStyle;\n var inputStyle = (_animationDriver_inputStyle = animationDriver === null || animationDriver === void 0 ? void 0 : animationDriver.inputStyle) !== null && _animationDriver_inputStyle !== void 0 ? _animationDriver_inputStyle : \"css\";\n var _animationDriver_outputStyle;\n var outputStyle = (_animationDriver_outputStyle = animationDriver === null || animationDriver === void 0 ? void 0 : animationDriver.outputStyle) !== null && _animationDriver_outputStyle !== void 0 ? _animationDriver_outputStyle : \"css\";\n var curStateRef = stateRef.current;\n if (!needsHydration && hasAnimationProp) {\n curStateRef.hasAnimated = true;\n }\n var platformPseudo = Boolean(!isHOC && useAnimations && (animationDriver === null || animationDriver === void 0 ? void 0 : animationDriver.avoidReRenders) && ((_getPlatformDriver = (0, import_constants.getPlatformDriver)()) === null || _getPlatformDriver === void 0 ? void 0 : _getPlatformDriver.pseudo) && hasFlatModifier(props, config, platformPseudoModifiers));\n var willBeAnimatedClient = (function() {\n var next = !!((hasAnimationProp || platformPseudo) && !isHOC && useAnimations);\n return Boolean(next || curStateRef.hasAnimated);\n })();\n var willBeAnimated = !import_constants.isServer && willBeAnimatedClient;\n if (willBeAnimated && !curStateRef.hasAnimated) {\n curStateRef.hasAnimated = true;\n }\n var { disableClassName } = props;\n var presence = !isHOC && willBeAnimated && props[\"animatePresence\"] !== false && (animationDriver === null || animationDriver === void 0 ? void 0 : (_animationDriver_usePresence = animationDriver.usePresence) === null || _animationDriver_usePresence === void 0 ? void 0 : _animationDriver_usePresence.call(animationDriver)) || null;\n var presenceState = presence === null || presence === void 0 ? void 0 : presence[2];\n var isExiting = (presenceState === null || presenceState === void 0 ? void 0 : presenceState.isPresent) === false;\n var isEntering = (presenceState === null || presenceState === void 0 ? void 0 : presenceState.isPresent) === true && presenceState.initial !== false;\n var hasEnterStyle = hasFlatModifier(props, config, enterModifier);\n var hasAnimationThatNeedsHydrate = hasAnimationProp && !isHydrated && ((animationDriver === null || animationDriver === void 0 ? void 0 : animationDriver.isReactNative) || inputStyle !== \"css\");\n var canImmediatelyEnter = hasEnterStyle || isEntering;\n var shouldEnter = !isHOC && (hasEnterStyle || isEntering || hasAnimationThatNeedsHydrate || // disableClassName doesnt work server side, only client, so needs hydrate\n // this is just for a better ux, supports css variables for light/dark, media queries, etc\n disableClassName);\n var initialState = shouldEnter ? (\n // on the very first render we switch all spring animation drivers to css rendering\n // this is because we need to use css variables, which they don't support to do proper SSR\n // without flickers of the wrong colors.\n // but once we do that initial hydration and we are in client side rendering mode,\n // we can avoid the extra re-render on mount\n canImmediatelyEnter ? import_defaultComponentState.defaultComponentStateShouldEnter : import_defaultComponentState.defaultComponentState\n ) : import_defaultComponentState.defaultComponentStateMounted;\n var disabled = isDisabled(props);\n if (disabled != null) {\n initialState.disabled = disabled;\n }\n var states = (0, import_react.useState)(initialState);\n var state = props.forceStyle ? {\n ...states[0],\n [props.forceStyle]: true\n } : states[0];\n var setState = states[1];\n var isAnimated = willBeAnimated;\n if (import_constants.isWeb && hasAnimationThatNeedsHydrate && !staticConfig.isHOC && !isHydrated) {\n isAnimated = false;\n curStateRef.willHydrate = true;\n }\n if (disabled !== state.disabled) {\n if (disabled) {\n Object.assign(state, import_defaultComponentState.defaultComponentStateMounted);\n }\n state.disabled = disabled;\n setState(function(_) {\n return {\n ...state\n };\n });\n }\n var groupName = props.group;\n if (!stateRef.current.baseSetStateShallow) {\n var r = stateRef.current;\n r.baseSetStateShallow = function(stateOrGetState) {\n setState(function(prev) {\n var next = typeof stateOrGetState === \"function\" ? stateOrGetState(prev) : stateOrGetState;\n var update = (0, import_is_equal_shallow.mergeIfNotShallowEqual)(prev, next);\n if (process.env.NODE_ENV === \"development\") {\n var dbg = r.__debug;\n if (dbg && update !== prev) {\n console.groupCollapsed(`setStateShallow CHANGE`, \"=>\", update);\n console.info(`previously`, prev);\n console.trace();\n console.groupEnd();\n }\n }\n return update;\n });\n };\n }\n if (process.env.NODE_ENV === \"development\") {\n ;\n stateRef.current.__debug = props.debug;\n }\n var setStateShallow = stateRef.current.baseSetStateShallow;\n if (process.env.NODE_ENV === \"development\" && globalThis.time) globalThis.time`state-useCreateShallowSetState`;\n var outProps = props;\n if (presenceState && isAnimated && isHydrated && staticConfig.variants) {\n if (process.env.NODE_ENV === \"development\" && props.debug === \"verbose\") {\n var _staticConfig_Component, _staticConfig_Component1;\n console.warn((0, import_formatDiagnostic.formatDiagnostic)(\"TAMAGUI_PRESENCE_STATE\", ((_staticConfig_Component = staticConfig.Component) === null || _staticConfig_Component === void 0 ? void 0 : _staticConfig_Component.displayName) || ((_staticConfig_Component1 = staticConfig.Component) === null || _staticConfig_Component1 === void 0 ? void 0 : _staticConfig_Component1.name) || \"TamaguiComponent\", \"AnimatePresence supplied lifecycle state to an animated component\", 'Remove debug=\"verbose\" after inspecting the animation state', \"presenceState\", presenceState));\n }\n var { custom } = presenceState;\n if ((0, import_isObj.isObj)(custom)) {\n outProps = {\n ...props,\n ...custom\n };\n }\n }\n var noClass = !import_constants.isWeb || !!props.forceStyle;\n if (!isHydrated) {\n noClass = false;\n } else {\n if (import_constants.isWeb && isHydrated) {\n var isAnimatedAndHydrated = isAnimated && isHydrated;\n var isClassNameDisabled = !staticConfig.acceptsClassName && ((0, import_config.getSetting)(\"disableSSR\") || !state.unmounted);\n var isDisabledManually = disableClassName && !state.unmounted;\n if (\n // Only disable className for animation drivers that output inline styles (not css)\n isAnimatedAndHydrated && outputStyle !== \"css\" || isDisabledManually || isClassNameDisabled\n ) {\n noClass = true;\n if (process.env.NODE_ENV === \"development\" && props.debug === \"verbose\") {\n (0, import_log.log)(`avoiding className`, {\n isAnimatedAndHydrated,\n isDisabledManually,\n isClassNameDisabled\n });\n }\n }\n }\n }\n return {\n props: outProps,\n startedUnhydrated: curStateRef.startedUnhydrated,\n curStateRef,\n disabled,\n groupName,\n hasAnimationProp,\n hasEnterStyle,\n isAnimated,\n isExiting,\n isHydrated,\n presence,\n presenceState,\n setState,\n setStateShallow,\n noClass,\n state,\n stateRef,\n inputStyle,\n outputStyle,\n willBeAnimated,\n willBeAnimatedClient,\n platformPseudo\n };\n};\nfunction hasAnimatedStyleValue(style) {\n for (var k in style) {\n var val = style[k];\n if (val && (typeof val === \"undefined\" ? \"undefined\" : _type_of(val)) === \"object\" && \"_animation\" in val) {\n return true;\n }\n }\n return false;\n}\nvar isDisabled = function(props) {\n var _props_accessibilityState;\n return props.disabled || props.passThrough || ((_props_accessibilityState = props.accessibilityState) === null || _props_accessibilityState === void 0 ? void 0 : _props_accessibilityState.disabled) || props[\"aria-disabled\"] || props.accessibilityDisabled || false;\n};\n//# sourceMappingURL=useComponentState.js.map\n"],"mappings":";;;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,4BAA4B,CAAC;AACjC,SAAS,2BAA2B,EAClC,yBAAyB,kBAC3B,CAAC;AACD,OAAO,UAAU,aAAa,yBAAyB;AACvD,IAAI,mBAAmB,QAAQ,oBAAoB;AACnD,IAAI,iBAAiB,QAAQ,kBAAkB;AAC/C,IAAI,iBAAiB,QAAQ,gCAAgC;AAC7D,IAAI,0BAA0B,QAAQ,2BAA2B;AACjE,IAAI,4BAA4B,QAAQ,6BAA6B;AACrE,IAAI,eAAe,QAAQ,OAAO;AAClC,IAAI,gBAAgB,QAAQ,qBAAW;A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YAAY,MAAM,iBAAiB,4BAA4B,MAAM,wBAAwB,QAAQ,8BAA8B,KAAK,IAAI,KAAK,IAAI,0BAA0B,aAAa,MAAM,oBAAoB,MAAM,yBAAyB;AACpQ"}
|
|
1
|
+
{"version":3,"file":"useComponentState.native.js","names":[],"sources":["cjs/hooks/useComponentState.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar useComponentState_exports = {};\n__export(useComponentState_exports, {\n useComponentState: () => useComponentState\n});\nmodule.exports = __toCommonJS(useComponentState_exports);\nvar import_constants = require(\"@tamagui/constants\");\nvar import_helpers = require(\"@tamagui/helpers\");\nvar import_runtime = require(\"@tamagui/style-grammar/runtime\");\nvar import_is_equal_shallow = require(\"@tamagui/is-equal-shallow\");\nvar import_use_did_finish_ssr = require(\"@tamagui/use-did-finish-ssr\");\nvar import_react = require(\"react\");\nvar import_config = require(\"../config\");\nvar import_formatDiagnostic = require(\"../helpers/formatDiagnostic\");\nvar import_isOptimizedForFirstRender = require(\"./isOptimizedForFirstRender\");\nvar import_defaultComponentState = require(\"../defaultComponentState\");\nvar import_isObj = require(\"../helpers/isObj\");\nvar import_log = require(\"../helpers/log\");\nfunction _type_of(obj) {\n \"@swc/helpers - typeof\";\n return obj && typeof Symbol !== \"undefined\" && obj.constructor === Symbol ? \"symbol\" : typeof obj;\n}\nvar platformPseudoModifiers = /* @__PURE__ */ new Set([\n \"hover\",\n \"press\",\n \"focus\"\n]);\nvar enterModifier = /* @__PURE__ */ new Set([\n \"enter\"\n]);\nvar scanSource = \"\";\nvar scanWanted = enterModifier;\nvar scanFound = false;\nvar scanRefused = false;\nvar lifecycleVisitor = {\n segment(start, end, isBase) {\n if (start === end && !isBase) scanRefused = true;\n },\n chain(start, end) {\n if (scanRefused) return false;\n for (var index = start; index <= end; index++) {\n if (index !== end && scanSource.charCodeAt(index) !== 58) continue;\n if (scanWanted.has((0, import_runtime.canonicalClauseModifier)(scanSource.slice(start, index)))) {\n scanFound = true;\n }\n start = index + 1;\n }\n return true;\n },\n error() {\n scanRefused = true;\n }\n};\nfunction hasFlatModifier(props, config, modifiers) {\n for (var key in props) {\n var value = props[key];\n if (typeof value !== \"string\" || value.indexOf(\":\") === -1) continue;\n var property = config.shorthands[key] || key;\n if (!(property in import_helpers.stylePropsAll) && property !== \"transition\") continue;\n scanSource = value;\n scanWanted = modifiers;\n scanFound = false;\n scanRefused = false;\n (0, import_runtime.scanFlatValue)(value, lifecycleVisitor);\n if (scanFound && !scanRefused) return true;\n }\n return false;\n}\nvar useComponentState = function(props, animationDriver, staticConfig, config) {\n \"use no memo\";\n var _getPlatformDriver, _animationDriver_usePresence;\n var isHydrated = (0, import_use_did_finish_ssr.useDidFinishSSR)();\n var needsHydration = !(0, import_use_did_finish_ssr.useIsClientOnly)();\n var useAnimations = (animationDriver === null || animationDriver === void 0 ? void 0 : animationDriver.isStub) ? void 0 : animationDriver === null || animationDriver === void 0 ? void 0 : animationDriver.useAnimations;\n var { isHOC } = staticConfig;\n var stateRef = (0, import_react.useRef)(\n // performance: avoid creating object every render\n void 0\n );\n if (!stateRef.current) {\n stateRef.current = {\n startedUnhydrated: needsHydration && !isHydrated,\n optimizeForFirstRender: (0, import_isOptimizedForFirstRender.isOptimizedForFirstRender)()\n };\n }\n var hasAnimationProp = Boolean(!isHOC && \"transition\" in props || props.style && hasAnimatedStyleValue(props.style));\n var _animationDriver_inputStyle;\n var inputStyle = (_animationDriver_inputStyle = animationDriver === null || animationDriver === void 0 ? void 0 : animationDriver.inputStyle) !== null && _animationDriver_inputStyle !== void 0 ? _animationDriver_inputStyle : \"css\";\n var _animationDriver_outputStyle;\n var outputStyle = (_animationDriver_outputStyle = animationDriver === null || animationDriver === void 0 ? void 0 : animationDriver.outputStyle) !== null && _animationDriver_outputStyle !== void 0 ? _animationDriver_outputStyle : \"css\";\n var curStateRef = stateRef.current;\n if (!needsHydration && hasAnimationProp) {\n curStateRef.hasAnimated = true;\n }\n var platformPseudo = Boolean(!isHOC && useAnimations && (animationDriver === null || animationDriver === void 0 ? void 0 : animationDriver.avoidReRenders) && ((_getPlatformDriver = (0, import_constants.getPlatformDriver)()) === null || _getPlatformDriver === void 0 ? void 0 : _getPlatformDriver.pseudo) && process.env.TAMAGUI_RUNTIME_STYLE_VALUE_GRAMMAR !== \"disabled\" && hasFlatModifier(props, config, platformPseudoModifiers));\n var willBeAnimatedClient = (function() {\n var next = !!((hasAnimationProp || platformPseudo) && !isHOC && useAnimations);\n return Boolean(next || curStateRef.hasAnimated);\n })();\n var willBeAnimated = !import_constants.isServer && willBeAnimatedClient;\n if (willBeAnimated && !curStateRef.hasAnimated) {\n curStateRef.hasAnimated = true;\n }\n var { disableClassName } = props;\n var presence = !isHOC && willBeAnimated && props[\"animatePresence\"] !== false && (animationDriver === null || animationDriver === void 0 ? void 0 : (_animationDriver_usePresence = animationDriver.usePresence) === null || _animationDriver_usePresence === void 0 ? void 0 : _animationDriver_usePresence.call(animationDriver)) || null;\n var presenceState = presence === null || presence === void 0 ? void 0 : presence[2];\n var isExiting = (presenceState === null || presenceState === void 0 ? void 0 : presenceState.isPresent) === false;\n var isEntering = (presenceState === null || presenceState === void 0 ? void 0 : presenceState.isPresent) === true && presenceState.initial !== false;\n var hasEnterStyle = process.env.TAMAGUI_RUNTIME_STYLE_VALUE_GRAMMAR !== \"disabled\" && hasFlatModifier(props, config, enterModifier);\n var hasAnimationThatNeedsHydrate = hasAnimationProp && !isHydrated && ((animationDriver === null || animationDriver === void 0 ? void 0 : animationDriver.isReactNative) || inputStyle !== \"css\");\n var canImmediatelyEnter = hasEnterStyle || isEntering;\n var shouldEnter = !isHOC && (hasEnterStyle || isEntering || hasAnimationThatNeedsHydrate || // disableClassName doesnt work server side, only client, so needs hydrate\n // this is just for a better ux, supports css variables for light/dark, media queries, etc\n disableClassName);\n var initialState = shouldEnter ? (\n // on the very first render we switch all spring animation drivers to css rendering\n // this is because we need to use css variables, which they don't support to do proper SSR\n // without flickers of the wrong colors.\n // but once we do that initial hydration and we are in client side rendering mode,\n // we can avoid the extra re-render on mount\n canImmediatelyEnter ? import_defaultComponentState.defaultComponentStateShouldEnter : import_defaultComponentState.defaultComponentState\n ) : import_defaultComponentState.defaultComponentStateMounted;\n var disabled = isDisabled(props);\n if (disabled != null) {\n initialState.disabled = disabled;\n }\n var states = (0, import_react.useState)(initialState);\n var state = props.forceStyle ? {\n ...states[0],\n [props.forceStyle]: true\n } : states[0];\n var setState = states[1];\n var isAnimated = willBeAnimated;\n if (import_constants.isWeb && hasAnimationThatNeedsHydrate && !staticConfig.isHOC && !isHydrated) {\n isAnimated = false;\n curStateRef.willHydrate = true;\n }\n if (disabled !== state.disabled) {\n if (disabled) {\n Object.assign(state, import_defaultComponentState.defaultComponentStateMounted);\n }\n state.disabled = disabled;\n setState(function(_) {\n return {\n ...state\n };\n });\n }\n var groupName = props.group;\n if (!stateRef.current.baseSetStateShallow) {\n var r = stateRef.current;\n r.baseSetStateShallow = function(stateOrGetState) {\n setState(function(prev) {\n var next = typeof stateOrGetState === \"function\" ? stateOrGetState(prev) : stateOrGetState;\n var update = (0, import_is_equal_shallow.mergeIfNotShallowEqual)(prev, next);\n if (process.env.NODE_ENV === \"development\") {\n var dbg = r.__debug;\n if (dbg && update !== prev) {\n console.groupCollapsed(`setStateShallow CHANGE`, \"=>\", update);\n console.info(`previously`, prev);\n console.trace();\n console.groupEnd();\n }\n }\n return update;\n });\n };\n }\n if (process.env.NODE_ENV === \"development\") {\n ;\n stateRef.current.__debug = props.debug;\n }\n var setStateShallow = stateRef.current.baseSetStateShallow;\n if (process.env.NODE_ENV === \"development\" && globalThis.time) globalThis.time`state-useCreateShallowSetState`;\n var outProps = props;\n if (presenceState && isAnimated && isHydrated && staticConfig.variants) {\n if (process.env.NODE_ENV === \"development\" && props.debug === \"verbose\") {\n var _staticConfig_Component, _staticConfig_Component1;\n console.warn((0, import_formatDiagnostic.formatDiagnostic)(\"TAMAGUI_PRESENCE_STATE\", ((_staticConfig_Component = staticConfig.Component) === null || _staticConfig_Component === void 0 ? void 0 : _staticConfig_Component.displayName) || ((_staticConfig_Component1 = staticConfig.Component) === null || _staticConfig_Component1 === void 0 ? void 0 : _staticConfig_Component1.name) || \"TamaguiComponent\", \"AnimatePresence supplied lifecycle state to an animated component\", 'Remove debug=\"verbose\" after inspecting the animation state', \"presenceState\", presenceState));\n }\n var { custom } = presenceState;\n if ((0, import_isObj.isObj)(custom)) {\n outProps = {\n ...props,\n ...custom\n };\n }\n }\n var noClass = !import_constants.isWeb || !!props.forceStyle;\n if (!isHydrated) {\n noClass = false;\n } else {\n if (import_constants.isWeb && isHydrated) {\n var isAnimatedAndHydrated = isAnimated && isHydrated;\n var isClassNameDisabled = !staticConfig.acceptsClassName && ((0, import_config.getSetting)(\"disableSSR\") || !state.unmounted);\n var isDisabledManually = disableClassName && !state.unmounted;\n if (\n // Only disable className for animation drivers that output inline styles (not css)\n isAnimatedAndHydrated && outputStyle !== \"css\" || isDisabledManually || isClassNameDisabled\n ) {\n noClass = true;\n if (process.env.NODE_ENV === \"development\" && props.debug === \"verbose\") {\n (0, import_log.log)(`avoiding className`, {\n isAnimatedAndHydrated,\n isDisabledManually,\n isClassNameDisabled\n });\n }\n }\n }\n }\n return {\n props: outProps,\n startedUnhydrated: curStateRef.startedUnhydrated,\n curStateRef,\n disabled,\n groupName,\n hasAnimationProp,\n hasEnterStyle,\n isAnimated,\n isExiting,\n isHydrated,\n presence,\n presenceState,\n setState,\n setStateShallow,\n noClass,\n state,\n stateRef,\n inputStyle,\n outputStyle,\n willBeAnimated,\n willBeAnimatedClient,\n platformPseudo\n };\n};\nfunction hasAnimatedStyleValue(style) {\n for (var k in style) {\n var val = style[k];\n if (val && (typeof val === \"undefined\" ? \"undefined\" : _type_of(val)) === \"object\" && \"_animation\" in val) {\n return true;\n }\n }\n return false;\n}\nvar isDisabled = function(props) {\n var _props_accessibilityState;\n return props.disabled || props.passThrough || ((_props_accessibilityState = props.accessibilityState) === null || _props_accessibilityState === void 0 ? void 0 : _props_accessibilityState.disabled) || props[\"aria-disabled\"] || props.accessibilityDisabled || false;\n};\n//# sourceMappingURL=useComponentState.js.map\n"],"mappings":";;;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,4BAA4B,CAAC;AACjC,SAAS,2BAA2B,EAClC,yBAAyB,kB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A;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF;AACF;AACA,SAAS,sBAAsB,OAAO;CACpC,KAAK,IAAI,KAAK,OAAO;EACnB,IAAI,MAAM,MAAM;EAChB,IAAI,QAAQ,OAAO,QAAQ,cAAc,cAAc,SAAS,GAAG,OAAO,YAAY,gBAAgB,KAAK;GACzG,OAAO;EACT;CACF;CACA,OAAO;AACT;AACA,IAAI,aAAa,SAAS,OAAO;CAC/B,IAAI;CACJ,OAAO,MAAM,YAAY,MAAM,iBAAiB,4BAA4B,MAAM,wBAAwB,QAAQ,8BAA8B,KAAK,IAAI,KAAK,IAAI,0BAA0B,aAAa,MAAM,oBAAoB,MAAM,yBAAyB;AACpQ"}
|
|
@@ -84,7 +84,7 @@ function usePropsAndStyle(props, opts) {
|
|
|
84
84
|
const { mediaGroups, pseudoGroups } = splitStyles || {};
|
|
85
85
|
(0, import_constants.useIsomorphicLayoutEffect)(() => {
|
|
86
86
|
let disposeSafeArea;
|
|
87
|
-
if (splitStyles?.usesSafeArea) {
|
|
87
|
+
if (process.env.TAMAGUI_RUNTIME_SAFE_AREA !== "disabled" && splitStyles?.usesSafeArea) {
|
|
88
88
|
const updateSafeArea = () => {
|
|
89
89
|
setState((previous) => ({ ...previous }));
|
|
90
90
|
};
|
|
@@ -88,7 +88,7 @@ function usePropsAndStyle(props, opts) {
|
|
|
88
88
|
var { mediaGroups, pseudoGroups } = splitStyles || {};
|
|
89
89
|
(0, import_constants.useIsomorphicLayoutEffect)(function() {
|
|
90
90
|
var disposeSafeArea;
|
|
91
|
-
if (splitStyles === null || splitStyles === void 0 ? void 0 : splitStyles.usesSafeArea) {
|
|
91
|
+
if (process.env.TAMAGUI_RUNTIME_SAFE_AREA !== "disabled" && (splitStyles === null || splitStyles === void 0 ? void 0 : splitStyles.usesSafeArea)) {
|
|
92
92
|
var updateSafeArea = function() {
|
|
93
93
|
setState(function(previous) {
|
|
94
94
|
return { ...previous };
|
|
@@ -88,7 +88,7 @@ function usePropsAndStyle(props, opts) {
|
|
|
88
88
|
var { mediaGroups, pseudoGroups } = splitStyles || {};
|
|
89
89
|
(0, import_constants.useIsomorphicLayoutEffect)(function() {
|
|
90
90
|
var disposeSafeArea;
|
|
91
|
-
if (splitStyles === null || splitStyles === void 0 ? void 0 : splitStyles.usesSafeArea) {
|
|
91
|
+
if (process.env.TAMAGUI_RUNTIME_SAFE_AREA !== "disabled" && (splitStyles === null || splitStyles === void 0 ? void 0 : splitStyles.usesSafeArea)) {
|
|
92
92
|
var updateSafeArea = function() {
|
|
93
93
|
setState(function(previous) {
|
|
94
94
|
return { ...previous };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useProps.native.js","names":[],"sources":["cjs/hooks/useProps.native.js"],"sourcesContent":["\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar useProps_exports = {};\n__export(useProps_exports, {\n useProps: () => useProps,\n usePropsAndStyle: () => usePropsAndStyle,\n useStyle: () => useStyle\n});\nmodule.exports = __toCommonJS(useProps_exports);\nvar import_constants = require(\"@tamagui/constants\");\nvar import_react = __toESM(require(\"react\"), 1);\nvar import_config = require(\"../config\");\nvar import_ComponentContext = require(\"../contexts/ComponentContext\");\nvar import_GroupContext = require(\"../contexts/GroupContext\");\nvar import_getSplitStyles = require(\"../helpers/getSplitStyles\");\nvar import_resolveSafeAreaVariable = require(\"../helpers/resolveSafeAreaVariable\");\nvar import_subscribeToContextGroup = require(\"../helpers/subscribeToContextGroup\");\nvar import_View = require(\"../views/View\");\nvar import_useComponentState = require(\"./useComponentState\");\nvar import_mediaState = require(\"../helpers/mediaState\");\nvar import_useMedia = require(\"./useMedia\");\nvar import_useTheme = require(\"./useTheme\");\nfunction useProps(props, opts) {\n var [propsOut, styleOut] = usePropsAndStyle(props, {\n ...opts,\n noExpand: true,\n noNormalize: true,\n resolveValues: \"none\"\n });\n return {\n ...propsOut,\n ...styleOut\n };\n}\nfunction useStyle(props, opts) {\n return usePropsAndStyle(props, opts)[1] || {};\n}\nfunction usePropsAndStyle(props, opts) {\n var _opts_forComponent;\n var _opts_forComponent_staticConfig;\n var staticConfig = (_opts_forComponent_staticConfig = opts === null || opts === void 0 ? void 0 : (_opts_forComponent = opts.forComponent) === null || _opts_forComponent === void 0 ? void 0 : _opts_forComponent.staticConfig) !== null && _opts_forComponent_staticConfig !== void 0 ? _opts_forComponent_staticConfig : import_View.View.staticConfig;\n var [theme, themeState] = (0, import_useTheme.useThemeWithState)({\n name: \"theme\" in props ? props.theme : void 0,\n needsUpdate() {\n return true;\n }\n });\n var componentContext = import_react.default.useContext(import_ComponentContext.ComponentContext);\n var groupContext = import_react.default.useContext(import_GroupContext.GroupContext);\n var { props: statefulProps, state, disabled, setState, setStateShallow } = (0, import_useComponentState.useComponentState)(props, componentContext.animationDriver, staticConfig, (0, import_config.getConfig)());\n var mediaStateNow = (opts === null || opts === void 0 ? void 0 : opts.noMedia) ? (\n // not safe to use mediaState but really marginal to hit this\n import_mediaState.mediaState\n ) : (0, import_useMedia.useMedia)();\n var splitStyles = (0, import_getSplitStyles.useSplitStyles)(statefulProps, staticConfig, theme, (themeState === null || themeState === void 0 ? void 0 : themeState.name) || \"\", state, {\n isAnimated: false,\n mediaState: mediaStateNow,\n noSkip: true,\n noMergeStyle: true,\n noClass: true,\n resolveValues: \"auto\",\n ...opts\n }, null, componentContext, groupContext);\n var { mediaGroups, pseudoGroups } = splitStyles || {};\n (0, import_constants.useIsomorphicLayoutEffect)(function() {\n var disposeSafeArea;\n if (splitStyles === null || splitStyles === void 0 ? void 0 : splitStyles.usesSafeArea) {\n var updateSafeArea = function() {\n setState(function(previous) {\n return {\n ...previous\n };\n });\n };\n disposeSafeArea = (0, import_resolveSafeAreaVariable.subscribeToSafeArea)(updateSafeArea);\n updateSafeArea();\n }\n if (disabled) {\n return disposeSafeArea;\n }\n if (state.unmounted) {\n setStateShallow({\n unmounted: false\n });\n return disposeSafeArea;\n }\n if (groupContext) {\n var disposeGroup = (0, import_subscribeToContextGroup.subscribeToContextGroup)({\n groupContext,\n setStateShallow,\n mediaGroups,\n pseudoGroups\n });\n if (!disposeSafeArea) return disposeGroup;\n return function() {\n disposeSafeArea();\n disposeGroup === null || disposeGroup === void 0 ? void 0 : disposeGroup();\n };\n }\n return disposeSafeArea;\n }, [\n disabled,\n groupContext,\n splitStyles === null || splitStyles === void 0 ? void 0 : splitStyles.usesSafeArea,\n pseudoGroups ? Object.keys([\n ...pseudoGroups\n ]).join(\"\") : 0,\n mediaGroups ? Object.keys([\n ...mediaGroups\n ]).join(\"\") : 0\n ]);\n return [\n (splitStyles === null || splitStyles === void 0 ? void 0 : splitStyles.viewProps) || {},\n (splitStyles === null || splitStyles === void 0 ? void 0 : splitStyles.style) || {},\n theme,\n import_mediaState.medi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G,cAAc,WAAW,CAAC;CAChN,IAAI,iBAAiB,SAAS,QAAQ,SAAS,KAAK,IAAI,KAAK,IAAI,KAAK,WAEpE,kBAAkB,cACf,GAAG,gBAAgB,UAAU;CAClC,IAAI,eAAe,GAAG,sBAAsB,gBAAgB,eAAe,cAAc,QAAQ,eAAe,QAAQ,eAAe,KAAK,IAAI,KAAK,IAAI,WAAW,SAAS,IAAI,OAAO;EACtL,YAAY;EACZ,YAAY;EACZ,QAAQ;EACR,cAAc;EACd,SAAS;EACT,eAAe;EACf,GAAG;CACL,GAAG,MAAM,kBAAkB,YAAY;CACvC,IAAI,EAAE,aAAa,iBAAiB,eAAe,CAAC;CACpD,CAAC,GAAG,iBAAiB,2BAA2B,WAAW;EACzD,IAAI;EACJ,IAAI,gBAAgB,QAAQ,gBAAgB,KAAK,IAAI,KAAK,IAAI,YAAY,
|
|
1
|
+
{"version":3,"file":"useProps.native.js","names":[],"sources":["cjs/hooks/useProps.native.js"],"sourcesContent":["\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar useProps_exports = {};\n__export(useProps_exports, {\n useProps: () => useProps,\n usePropsAndStyle: () => usePropsAndStyle,\n useStyle: () => useStyle\n});\nmodule.exports = __toCommonJS(useProps_exports);\nvar import_constants = require(\"@tamagui/constants\");\nvar import_react = __toESM(require(\"react\"), 1);\nvar import_config = require(\"../config\");\nvar import_ComponentContext = require(\"../contexts/ComponentContext\");\nvar import_GroupContext = require(\"../contexts/GroupContext\");\nvar import_getSplitStyles = require(\"../helpers/getSplitStyles\");\nvar import_resolveSafeAreaVariable = require(\"../helpers/resolveSafeAreaVariable\");\nvar import_subscribeToContextGroup = require(\"../helpers/subscribeToContextGroup\");\nvar import_View = require(\"../views/View\");\nvar import_useComponentState = require(\"./useComponentState\");\nvar import_mediaState = require(\"../helpers/mediaState\");\nvar import_useMedia = require(\"./useMedia\");\nvar import_useTheme = require(\"./useTheme\");\nfunction useProps(props, opts) {\n var [propsOut, styleOut] = usePropsAndStyle(props, {\n ...opts,\n noExpand: true,\n noNormalize: true,\n resolveValues: \"none\"\n });\n return {\n ...propsOut,\n ...styleOut\n };\n}\nfunction useStyle(props, opts) {\n return usePropsAndStyle(props, opts)[1] || {};\n}\nfunction usePropsAndStyle(props, opts) {\n var _opts_forComponent;\n var _opts_forComponent_staticConfig;\n var staticConfig = (_opts_forComponent_staticConfig = opts === null || opts === void 0 ? void 0 : (_opts_forComponent = opts.forComponent) === null || _opts_forComponent === void 0 ? void 0 : _opts_forComponent.staticConfig) !== null && _opts_forComponent_staticConfig !== void 0 ? _opts_forComponent_staticConfig : import_View.View.staticConfig;\n var [theme, themeState] = (0, import_useTheme.useThemeWithState)({\n name: \"theme\" in props ? props.theme : void 0,\n needsUpdate() {\n return true;\n }\n });\n var componentContext = import_react.default.useContext(import_ComponentContext.ComponentContext);\n var groupContext = import_react.default.useContext(import_GroupContext.GroupContext);\n var { props: statefulProps, state, disabled, setState, setStateShallow } = (0, import_useComponentState.useComponentState)(props, componentContext.animationDriver, staticConfig, (0, import_config.getConfig)());\n var mediaStateNow = (opts === null || opts === void 0 ? void 0 : opts.noMedia) ? (\n // not safe to use mediaState but really marginal to hit this\n import_mediaState.mediaState\n ) : (0, import_useMedia.useMedia)();\n var splitStyles = (0, import_getSplitStyles.useSplitStyles)(statefulProps, staticConfig, theme, (themeState === null || themeState === void 0 ? void 0 : themeState.name) || \"\", state, {\n isAnimated: false,\n mediaState: mediaStateNow,\n noSkip: true,\n noMergeStyle: true,\n noClass: true,\n resolveValues: \"auto\",\n ...opts\n }, null, componentContext, groupContext);\n var { mediaGroups, pseudoGroups } = splitStyles || {};\n (0, import_constants.useIsomorphicLayoutEffect)(function() {\n var disposeSafeArea;\n if (process.env.TAMAGUI_RUNTIME_SAFE_AREA !== \"disabled\" && (splitStyles === null || splitStyles === void 0 ? void 0 : splitStyles.usesSafeArea)) {\n var updateSafeArea = function() {\n setState(function(previous) {\n return {\n ...previous\n };\n });\n };\n disposeSafeArea = (0, import_resolveSafeAreaVariable.subscribeToSafeArea)(updateSafeArea);\n updateSafeArea();\n }\n if (disabled) {\n return disposeSafeArea;\n }\n if (state.unmounted) {\n setStateShallow({\n unmounted: false\n });\n return disposeSafeArea;\n }\n if (groupContext) {\n var disposeGroup = (0, import_subscribeToContextGroup.subscribeToContextGroup)({\n groupContext,\n setStateShallow,\n mediaGroups,\n pseudoGroups\n });\n if (!disposeSafeArea) return disposeGroup;\n return function() {\n disposeSafeArea();\n disposeGroup === null || disposeGroup === void 0 ? void 0 : disposeGroup();\n };\n }\n return disposeSafeArea;\n }, [\n disabled,\n groupContext,\n splitStyles === null || splitStyles === void 0 ? void 0 : splitStyles.usesSafeArea,\n pseudoGroups ? Object.keys([\n ...pseudoGroups\n ]).join(\"\") : 0,\n mediaGroups ? Object.keys([\n ...mediaGroups\n ]).join(\"\") : 0\n ]);\n return [\n (splitStyles === null || splitStyles === void 0 ? void 0 : splitStyles.viewProps) || {},\n (splitStyles === null || splitStyles === void 0 ? void 0 : splitStyles.style) || {},\n theme,\n import_mediaState.mediaState\n ];\n}\n//# sourceMappingURL=useProps.js.map\n"],"mappings":";;;;AACA,IAAI,WAAW,OAAO;AACtB,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO;AAC1B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,WAAW,KAAK,YAAY,YAAY,SAAS,OAAO,OAAO,SAAS,aAAa,GAAG,CAAC,IAAI,CAAC,GAAG,YAKnG,cAAc,CAAC,OAAO,CAAC,IAAI,aAAa,UAAU,QAAQ,WAAW;CAAE,OAAO;CAAK,YAAY;AAAK,CAAC,IAAI,QACzG,GACF;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,mBAAmB,CAAC;AACxB,SAAS,kBAAkB;CACzB,gBAAgB;CAChB,wBAAwB;CACxB,gBAAgB;AAClB,CAAC;AACD,OAAO,UAAU,aAAa,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A;EACA,gBAAgB,QAAQ,gBAAgB,KAAK,IAAI,KAAK,IAAI,YAAY;EACtE,eAAe,OAAO,KAAK,CACzB,GAAG,YACL,CAAC,EAAE,KAAK,EAAE,IAAI;EACd,cAAc,OAAO,KAAK,CACxB,GAAG,WACL,CAAC,EAAE,KAAK,EAAE,IAAI;CAChB,CAAC;CACD,OAAO;GACJ,gBAAgB,QAAQ,gBAAgB,KAAK,IAAI,KAAK,IAAI,YAAY,cAAc,CAAC;GACrF,gBAAgB,QAAQ,gBAAgB,KAAK,IAAI,KAAK,IAAI,YAAY,UAAU,CAAC;EAClF;EACA,kBAAkB;CACpB;AACF"}
|
|
@@ -211,7 +211,7 @@ const getSnapshotImpl = (r) => {
|
|
|
211
211
|
const needsUpdate = props.passThrough ? false : optimizeForFirstRender ? true : isRoot || props.name === "light" || props.name === "dark" || props.name === null ? true : !HasRenderedOnce.get(keys) ? true : canSkipForSchemeChange ? false : keys?.current?.size ? true : props.needsUpdate?.();
|
|
212
212
|
const [rerender, nextRaw] = getNextState(local, props, propsKey, isRoot, id, parentId, needsUpdate, PendingUpdate.get(id));
|
|
213
213
|
let next = nextRaw;
|
|
214
|
-
if (props.inlineValues && nextRaw?.theme) {
|
|
214
|
+
if (process.env.TAMAGUI_RUNTIME_INLINE_THEME_VALUES !== "disabled" && props.inlineValues && nextRaw?.theme) {
|
|
215
215
|
const parentTheme = states.get(parentId)?.theme || nextRaw.theme;
|
|
216
216
|
const merged = (0, import_variables.getMergedInlineTheme)(parentTheme, props.inlineValues, nextRaw.name, (0, import_config.getConfig)());
|
|
217
217
|
if (merged !== nextRaw.theme) next = {
|
|
@@ -386,5 +386,5 @@ function resolveThemeName(parentName, name, reset, themes2, forceUpdate = false)
|
|
|
386
386
|
if (!forceUpdate && found === parentName && !validSchemes[found]) return null;
|
|
387
387
|
return found;
|
|
388
388
|
}
|
|
389
|
-
const getPropsKey = ({ name, reset, forceClassName, inlineValues }) => `${name || ""}${reset || ""}${forceClassName || ""}${inlineValues ? (0, import_variables.getInlineValuesKey)(inlineValues) : ""}`;
|
|
389
|
+
const getPropsKey = ({ name, reset, forceClassName, inlineValues }) => `${name || ""}${reset || ""}${forceClassName || ""}${process.env.TAMAGUI_RUNTIME_INLINE_THEME_VALUES !== "disabled" && inlineValues ? (0, import_variables.getInlineValuesKey)(inlineValues) : ""}`;
|
|
390
390
|
const hasThemeUpdatingProps = (props) => "name" in props || "reset" in props || "forceClassName" in props || "inlineValues" in props;
|
|
@@ -244,7 +244,7 @@ var getSnapshotImpl = function(r) {
|
|
|
244
244
|
var needsUpdate = props.passThrough ? false : optimizeForFirstRender ? true : isRoot || props.name === "light" || props.name === "dark" || props.name === null ? true : !HasRenderedOnce.get(keys) ? true : canSkipForSchemeChange ? false : (keys === null || keys === void 0 ? void 0 : (_keys_current = keys.current) === null || _keys_current === void 0 ? void 0 : _keys_current.size) ? true : (_props_needsUpdate = props.needsUpdate) === null || _props_needsUpdate === void 0 ? void 0 : _props_needsUpdate.call(props);
|
|
245
245
|
var [rerender, nextRaw] = getNextState(local, props, propsKey, isRoot, id, parentId, needsUpdate, PendingUpdate.get(id));
|
|
246
246
|
var next = nextRaw;
|
|
247
|
-
if (props.inlineValues && (nextRaw === null || nextRaw === void 0 ? void 0 : nextRaw.theme)) {
|
|
247
|
+
if (process.env.TAMAGUI_RUNTIME_INLINE_THEME_VALUES !== "disabled" && props.inlineValues && (nextRaw === null || nextRaw === void 0 ? void 0 : nextRaw.theme)) {
|
|
248
248
|
var _states_get;
|
|
249
249
|
var parentTheme = ((_states_get = states.get(parentId)) === null || _states_get === void 0 ? void 0 : _states_get.theme) || nextRaw.theme;
|
|
250
250
|
var merged = (0, import_variables.getMergedInlineTheme)(parentTheme, props.inlineValues, nextRaw.name, (0, import_config.getConfig)());
|
|
@@ -435,7 +435,7 @@ function resolveThemeName(parentName, name, reset, themes2) {
|
|
|
435
435
|
}
|
|
436
436
|
var getPropsKey = function(param) {
|
|
437
437
|
var { name, reset, forceClassName, inlineValues } = param;
|
|
438
|
-
return `${name || ""}${reset || ""}${forceClassName || ""}${inlineValues ? (0, import_variables.getInlineValuesKey)(inlineValues) : ""}`;
|
|
438
|
+
return `${name || ""}${reset || ""}${forceClassName || ""}${process.env.TAMAGUI_RUNTIME_INLINE_THEME_VALUES !== "disabled" && inlineValues ? (0, import_variables.getInlineValuesKey)(inlineValues) : ""}`;
|
|
439
439
|
};
|
|
440
440
|
var hasThemeUpdatingProps = function(props) {
|
|
441
441
|
return "name" in props || "reset" in props || "forceClassName" in props || "inlineValues" in props;
|
|
@@ -244,7 +244,7 @@ var getSnapshotImpl = function(r) {
|
|
|
244
244
|
var needsUpdate = props.passThrough ? false : optimizeForFirstRender ? true : isRoot || props.name === "light" || props.name === "dark" || props.name === null ? true : !HasRenderedOnce.get(keys) ? true : canSkipForSchemeChange ? false : (keys === null || keys === void 0 ? void 0 : (_keys_current = keys.current) === null || _keys_current === void 0 ? void 0 : _keys_current.size) ? true : (_props_needsUpdate = props.needsUpdate) === null || _props_needsUpdate === void 0 ? void 0 : _props_needsUpdate.call(props);
|
|
245
245
|
var [rerender, nextRaw] = getNextState(local, props, propsKey, isRoot, id, parentId, needsUpdate, PendingUpdate.get(id));
|
|
246
246
|
var next = nextRaw;
|
|
247
|
-
if (props.inlineValues && (nextRaw === null || nextRaw === void 0 ? void 0 : nextRaw.theme)) {
|
|
247
|
+
if (process.env.TAMAGUI_RUNTIME_INLINE_THEME_VALUES !== "disabled" && props.inlineValues && (nextRaw === null || nextRaw === void 0 ? void 0 : nextRaw.theme)) {
|
|
248
248
|
var _states_get;
|
|
249
249
|
var parentTheme = ((_states_get = states.get(parentId)) === null || _states_get === void 0 ? void 0 : _states_get.theme) || nextRaw.theme;
|
|
250
250
|
var merged = (0, import_variables.getMergedInlineTheme)(parentTheme, props.inlineValues, nextRaw.name, (0, import_config.getConfig)());
|
|
@@ -435,7 +435,7 @@ function resolveThemeName(parentName, name, reset, themes2) {
|
|
|
435
435
|
}
|
|
436
436
|
var getPropsKey = function(param) {
|
|
437
437
|
var { name, reset, forceClassName, inlineValues } = param;
|
|
438
|
-
return `${name || ""}${reset || ""}${forceClassName || ""}${inlineValues ? (0, import_variables.getInlineValuesKey)(inlineValues) : ""}`;
|
|
438
|
+
return `${name || ""}${reset || ""}${forceClassName || ""}${process.env.TAMAGUI_RUNTIME_INLINE_THEME_VALUES !== "disabled" && inlineValues ? (0, import_variables.getInlineValuesKey)(inlineValues) : ""}`;
|
|
439
439
|
};
|
|
440
440
|
var hasThemeUpdatingProps = function(props) {
|
|
441
441
|
return "name" in props || "reset" in props || "forceClassName" in props || "inlineValues" in props;
|