@trackunit/css-component-tokens 1.11.8 → 1.11.9-alpha-e76d0654d61.0
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/index.cjs.js +5 -1
- package/package.json +2 -2
package/index.cjs.js
CHANGED
|
@@ -5,6 +5,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var cssTailwindCustomPropertiesPlugin = require('@trackunit/css-tailwind-custom-properties-plugin');
|
|
6
6
|
var plugin = require('tailwindcss/plugin');
|
|
7
7
|
|
|
8
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
|
+
|
|
10
|
+
var plugin__default = /*#__PURE__*/_interopDefault(plugin);
|
|
11
|
+
|
|
8
12
|
/** Returns object structure for Tailwind variable config for specified theme for ALL ComponentTokenDefinitions. */
|
|
9
13
|
const getComponentTokenVariablesByThemeName = (theme, componentTokenDefinitions) => {
|
|
10
14
|
const themeTokenObject = Object.fromEntries(Object.entries(componentTokenDefinitions).map(([componentName, componentThemes]) => [
|
|
@@ -252,7 +256,7 @@ const cssVariablesDefinition = cssTailwindCustomPropertiesPlugin.variablesToCSSR
|
|
|
252
256
|
component: getComponentTokenVariablesByThemeName("theme-marketing", componentTokenDefinitions),
|
|
253
257
|
},
|
|
254
258
|
});
|
|
255
|
-
const ComponentTokensPlugin =
|
|
259
|
+
const ComponentTokensPlugin = plugin__default.default(function ({ addComponents }) {
|
|
256
260
|
addComponents(cssVariablesDefinition);
|
|
257
261
|
addComponents(getAllComponentTokenRules(componentTokenDefinitions));
|
|
258
262
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/css-component-tokens",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.9-alpha-e76d0654d61.0",
|
|
4
4
|
"main": "./index.cjs.js",
|
|
5
5
|
"repository": "https://github.com/Trackunit/manager",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"csstype": "3.1.2",
|
|
12
12
|
"tailwindcss": "3.4.3",
|
|
13
|
-
"@trackunit/css-tailwind-custom-properties-plugin": "1.11.
|
|
13
|
+
"@trackunit/css-tailwind-custom-properties-plugin": "1.11.9-alpha-e76d0654d61.0"
|
|
14
14
|
},
|
|
15
15
|
"module": "./index.esm.js",
|
|
16
16
|
"types": "./index.d.ts"
|