/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/prefixSelector.js (1408B)
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, /** * @template {string | import('postcss-selector-parser').Root} T * * Prefix all classes in the selector with the given prefix * * It can take either a string or a selector AST and will return the same type * * @param {string} prefix * @param {T} selector * @param {boolean} prependNegative * @returns {T} */ "default", { enumerable: true, get: function() { return _default; } }); const _postcssselectorparser = /*#__PURE__*/ _interop_require_default(require("postcss-selector-parser")); function _interop_require_default(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _default(prefix, selector, prependNegative = false) { if (prefix === "") { return selector; } /** @type {import('postcss-selector-parser').Root} */ let ast = typeof selector === "string" ? (0, _postcssselectorparser.default)().astSync(selector) : selector; ast.walkClasses((classSelector)=>{ let baseClass = classSelector.value; let shouldPlaceNegativeBeforePrefix = prependNegative && baseClass.startsWith("-"); classSelector.value = shouldPlaceNegativeBeforePrefix ? `-${prefix}${baseClass.slice(1)}` : `${prefix}${baseClass}`; }); return typeof selector === "string" ? ast.toString() : ast; }