@trackunit/css-tailwind-custom-properties-plugin
Advanced tools
Comparing version 0.0.22 to 0.0.23
56
index.js
@@ -1,3 +0,57 @@ | ||
import plugin from 'tailwindcss/plugin'; | ||
var createPlugin$2 = {}; | ||
var createPlugin$1 = {}; | ||
(function (exports) { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
Object.defineProperty(exports, "default", { | ||
enumerable: true, | ||
get: ()=>_default | ||
}); | ||
function createPlugin(plugin, config) { | ||
return { | ||
handler: plugin, | ||
config | ||
}; | ||
} | ||
createPlugin.withOptions = function(pluginFunction, configFunction = ()=>({})) { | ||
const optionsFunction = function(options) { | ||
return { | ||
__options: options, | ||
handler: pluginFunction(options), | ||
config: configFunction(options) | ||
}; | ||
}; | ||
optionsFunction.__isOptionsFunction = true; | ||
// Expose plugin dependencies so that `object-hash` returns a different | ||
// value if anything here changes, to ensure a rebuild is triggered. | ||
optionsFunction.__pluginFunction = pluginFunction; | ||
optionsFunction.__configFunction = configFunction; | ||
return optionsFunction; | ||
}; | ||
const _default = createPlugin; | ||
}(createPlugin$1)); | ||
(function (exports) { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
Object.defineProperty(exports, "default", { | ||
enumerable: true, | ||
get: ()=>_default | ||
}); | ||
const _createPlugin = /*#__PURE__*/ _interopRequireDefault(createPlugin$1); | ||
function _interopRequireDefault(obj) { | ||
return obj && obj.__esModule ? obj : { | ||
default: obj | ||
}; | ||
} | ||
const _default = _createPlugin.default; | ||
}(createPlugin$2)); | ||
let createPlugin = createPlugin$2; | ||
var plugin = (createPlugin.__esModule ? createPlugin : { default: createPlugin }).default; | ||
/** | ||
@@ -4,0 +58,0 @@ * Converts an array of keys to a valid CSS custom property name. |
{ | ||
"name": "@trackunit/css-tailwind-custom-properties-plugin", | ||
"version": "0.0.22", | ||
"version": "0.0.23", | ||
"main": "./index.cjs", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/Trackunit/manager", |
export * from "./plugin"; | ||
export * from "./variablesToCSSRules"; |
@@ -0,0 +0,0 @@ export declare const CssTailwindCustomPropertiesPlugin: { |
@@ -0,0 +0,0 @@ import { CSSRuleObject } from "tailwindcss/types/config"; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11343
244