/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/withAlphaVariable.js (2056B)
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { enumerable: true, get: all[name] }); } _export(exports, { withAlphaValue: function() { return withAlphaValue; }, default: function() { return withAlphaVariable; } }); const _color = require("./color"); function withAlphaValue(color, alphaValue, defaultValue) { if (typeof color === "function") { return color({ opacityValue: alphaValue }); } let parsed = (0, _color.parseColor)(color, { loose: true }); if (parsed === null) { return defaultValue; } return (0, _color.formatColor)({ ...parsed, alpha: alphaValue }); } function withAlphaVariable({ color , property , variable }) { let properties = [].concat(property); if (typeof color === "function") { return { [variable]: "1", ...Object.fromEntries(properties.map((p)=>{ return [ p, color({ opacityVariable: variable, opacityValue: `var(${variable}, 1)` }) ]; })) }; } const parsed = (0, _color.parseColor)(color); if (parsed === null) { return Object.fromEntries(properties.map((p)=>[ p, color ])); } if (parsed.alpha !== undefined) { // Has an alpha value, return color as-is return Object.fromEntries(properties.map((p)=>[ p, color ])); } return { [variable]: "1", ...Object.fromEntries(properties.map((p)=>{ return [ p, (0, _color.formatColor)({ ...parsed, alpha: `var(${variable}, 1)` }) ]; })) }; }