/opt/canhelp/node_modules/tailwindcss/lib/util
NameSizeModeActions
applyImportantSelector.js13810644editdlrm
bigSign.js2890644editdlrm
buildMediaQuery.js7800644editdlrm
cloneDeep.js5440644editdlrm
cloneNodes.js19150644editdlrm
color.js39120644editdlrm
colorNames.js92430644editdlrm
configurePlugins.js6850644editdlrm
createPlugin.js9610644editdlrm
createUtilityPlugin.js19300644editdlrm
dataTypes.js90340644editdlrm
defaults.js10360644editdlrm
escapeClassName.js9580644editdlrm
escapeCommas.js2920644editdlrm
flattenColorPalette.js6630644editdlrm
formatVariantSelector.js116120644editdlrm
getAllConfigs.js17130644editdlrm
hashConfig.js5180644editdlrm
isKeyframeRule.js3400644editdlrm
isPlainObject.js4700644editdlrm
isSyntacticallyValidPropertyValue.js20720644editdlrm
log.js16060644editdlrm
math-operators.js52140644editdlrm
nameClass.js13160644editdlrm
negateValue.js10530644editdlrm
normalizeConfig.js149790644editdlrm
normalizeScreens.js56020644editdlrm
parseAnimationValue.js29120644editdlrm
parseBoxShadowValue.js26260644editdlrm
parseDependency.js11820644editdlrm
parseGlob.js8620644editdlrm
parseObjectStyles.js10250644editdlrm
pluginUtils.js111610644editdlrm
prefixSelector.js14080644editdlrm
pseudoElements.js69850644editdlrm
removeAlphaVariables.js10730644editdlrm
resolveConfig.js93470644editdlrm
resolveConfigPath.js22890644editdlrm
responsive.js6720644editdlrm
splitAtTopLevelOnly.js18050644editdlrm
tap.js2660644editdlrm
toColorValue.js3330644editdlrm
toPath.js9510644editdlrm
transformThemeValue.js22770644editdlrm
validateConfig.js13590644editdlrm
validateFormalSyntax.js9980644editdlrm
withAlphaVariable.js20560644editdlrm
Edit: /opt/canhelp/node_modules/tailwindcss/lib/util/transformThemeValue.js (2277B)
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "default", { enumerable: true, get: function() { return transformThemeValue; } }); const _postcss = /*#__PURE__*/ _interop_require_default(require("postcss")); const _isPlainObject = /*#__PURE__*/ _interop_require_default(require("./isPlainObject")); function _interop_require_default(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function transformThemeValue(themeSection) { if ([ "fontSize", "outline" ].includes(themeSection)) { return (value)=>{ if (typeof value === "function") value = value({}); if (Array.isArray(value)) value = value[0]; return value; }; } if (themeSection === "fontFamily") { return (value)=>{ if (typeof value === "function") value = value({}); let families = Array.isArray(value) && (0, _isPlainObject.default)(value[1]) ? value[0] : value; return Array.isArray(families) ? families.join(", ") : families; }; } if ([ "boxShadow", "transitionProperty", "transitionDuration", "transitionDelay", "transitionTimingFunction", "backgroundImage", "backgroundSize", "backgroundColor", "cursor", "animation" ].includes(themeSection)) { return (value)=>{ if (typeof value === "function") value = value({}); if (Array.isArray(value)) value = value.join(", "); return value; }; } // For backwards compatibility reasons, before we switched to underscores // instead of commas for arbitrary values. if ([ "gridTemplateColumns", "gridTemplateRows", "objectPosition" ].includes(themeSection)) { return (value)=>{ if (typeof value === "function") value = value({}); if (typeof value === "string") value = _postcss.default.list.comma(value).join(" "); return value; }; } return (value, opts = {})=>{ if (typeof value === "function") { value = value(opts); } return value; }; }