@breadstone-infrastructure/style-dictionary 0.0.177 → 0.0.178
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.
|
@@ -3,16 +3,11 @@ import type { Format } from 'style-dictionary/types';
|
|
|
3
3
|
* Style-Dictionary format that outputs a CommonJS `tailwind.config.js`,
|
|
4
4
|
* exporting the theme configuration as `module.exports = …`.
|
|
5
5
|
*/
|
|
6
|
-
export declare const
|
|
7
|
-
/**
|
|
8
|
-
* Style-Dictionary format that outputs an ESM `tailwind.config.mjs`,
|
|
9
|
-
* exporting the theme configuration as `export default { … }`.
|
|
10
|
-
*/
|
|
11
|
-
export declare const tailwindConfigEsmFormat: Format;
|
|
6
|
+
export declare const tailwindPresetFormat: Format;
|
|
12
7
|
/**
|
|
13
8
|
* Style-Dictionary format that generates a Tailwind plugin module.
|
|
14
9
|
* Exports a proper Tailwind CSS plugin that can be added to the plugins array
|
|
15
10
|
* in tailwind.config.js.
|
|
16
11
|
*/
|
|
17
|
-
export declare const
|
|
12
|
+
export declare const tailwindPluginFormat: Format;
|
|
18
13
|
//# sourceMappingURL=tailwindFormat.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tailwindFormat.d.ts","sourceRoot":"","sources":["../../../src/formats/tailwind/tailwindFormat.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAKrD;;;GAGG;AACH,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"tailwindFormat.d.ts","sourceRoot":"","sources":["../../../src/formats/tailwind/tailwindFormat.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAKrD;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,MAalC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,EAAE,MA2BlC,CAAC"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// #region Imports
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
4
|
+
exports.tailwindPluginFormat = exports.tailwindPresetFormat = void 0;
|
|
5
5
|
const buildTailwindConfig_js_1 = require("./buildTailwindConfig.js");
|
|
6
6
|
// #endregion
|
|
7
7
|
/**
|
|
8
8
|
* Style-Dictionary format that outputs a CommonJS `tailwind.config.js`,
|
|
9
9
|
* exporting the theme configuration as `module.exports = …`.
|
|
10
10
|
*/
|
|
11
|
-
exports.
|
|
11
|
+
exports.tailwindPresetFormat = {
|
|
12
12
|
name: 'tailwind/config/cjs',
|
|
13
13
|
format({ dictionary, options }) {
|
|
14
14
|
const config = (0, buildTailwindConfig_js_1.buildTailwindConfig)(dictionary.allTokens, options.ignoredTokenNames ?? []);
|
|
@@ -22,30 +22,12 @@ exports.tailwindConfigCjsFormat = {
|
|
|
22
22
|
return `${header}\n\nmodule.exports = ${JSON.stringify(config, null, 2)};\n`;
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
/**
|
|
26
|
-
* Style-Dictionary format that outputs an ESM `tailwind.config.mjs`,
|
|
27
|
-
* exporting the theme configuration as `export default { … }`.
|
|
28
|
-
*/
|
|
29
|
-
exports.tailwindConfigEsmFormat = {
|
|
30
|
-
name: 'tailwind/config/esm',
|
|
31
|
-
format({ dictionary, options }) {
|
|
32
|
-
const config = (0, buildTailwindConfig_js_1.buildTailwindConfig)(dictionary.allTokens, options.ignoredTokenNames ?? []);
|
|
33
|
-
const header = `// ------------------------------------------------------------------------------
|
|
34
|
-
// <auto-generated>
|
|
35
|
-
// This code was generated by a tool.
|
|
36
|
-
// Changes to this file may cause incorrect behavior and will be lost if
|
|
37
|
-
// the code is regenerated.
|
|
38
|
-
// </auto-generated>
|
|
39
|
-
// ------------------------------------------------------------------------------`;
|
|
40
|
-
return `${header}\n\nexport default ${JSON.stringify(config, null, 2)};\n`;
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
25
|
/**
|
|
44
26
|
* Style-Dictionary format that generates a Tailwind plugin module.
|
|
45
27
|
* Exports a proper Tailwind CSS plugin that can be added to the plugins array
|
|
46
28
|
* in tailwind.config.js.
|
|
47
29
|
*/
|
|
48
|
-
exports.
|
|
30
|
+
exports.tailwindPluginFormat = {
|
|
49
31
|
name: 'tailwind/plugin',
|
|
50
32
|
format({ dictionary, options }) {
|
|
51
33
|
const config = (0, buildTailwindConfig_js_1.buildTailwindConfig)(dictionary.allTokens, options.ignoredTokenNames ?? []);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tailwindFormat.js","sourceRoot":"","sources":["../../../src/formats/tailwind/tailwindFormat.ts"],"names":[],"mappings":";AAAA,kBAAkB;;;AAGlB,qEAA+D;AAE/D,aAAa;AAEb;;;GAGG;AACU,QAAA,
|
|
1
|
+
{"version":3,"file":"tailwindFormat.js","sourceRoot":"","sources":["../../../src/formats/tailwind/tailwindFormat.ts"],"names":[],"mappings":";AAAA,kBAAkB;;;AAGlB,qEAA+D;AAE/D,aAAa;AAEb;;;GAGG;AACU,QAAA,oBAAoB,GAAW;IACxC,IAAI,EAAE,qBAAqB;IAC3B,MAAM,CAAC,EAAE,UAAU,EAAE,OAAO,EAAE;QAC1B,MAAM,MAAM,GAAG,IAAA,4CAAmB,EAAC,UAAU,CAAC,SAAS,EAAE,OAAO,CAAC,iBAAiB,IAAI,EAAE,CAAC,CAAC;QAC1F,MAAM,MAAM,GAAG;;;;;;kFAM2D,CAAC;QAC3E,OAAO,GAAG,MAAM,wBAAwB,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC;IACjF,CAAC;CACJ,CAAC;AAEF;;;;GAIG;AACU,QAAA,oBAAoB,GAAW;IACxC,IAAI,EAAE,iBAAiB;IACvB,MAAM,CAAC,EAAE,UAAU,EAAE,OAAO,EAAE;QAC1B,MAAM,MAAM,GAAG,IAAA,4CAAmB,EAAC,UAAU,CAAC,SAAS,EAAE,OAAO,CAAC,iBAAiB,IAAI,EAAE,CAAC,CAAC;QAC1F,MAAM,YAAY,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;QAC3D,MAAM,MAAM,GAAG;;;;;;kFAM2D,CAAC;QAE3E,OAAO,GAAG,MAAM;;;;;;;;;;;KAWnB,YAAY;CAChB,CAAC;IACE,CAAC;CACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@breadstone-infrastructure/style-dictionary",
|
|
3
3
|
"description": "Common style-dictionary classes and functions",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.178",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "andre.wehlert <awehlert@breadstone.de> (https://www.breadstone.de)",
|
|
7
7
|
"repository": {
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"module": "./index.js",
|
|
14
14
|
"types": "./index.d.ts",
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@breadstone-infrastructure/utilities": "^0.0.
|
|
16
|
+
"@breadstone-infrastructure/utilities": "^0.0.178",
|
|
17
17
|
"chroma-js": "^3.2.0",
|
|
18
18
|
"style-dictionary": "^4.4.0",
|
|
19
19
|
"tailwindcss": "^3.4.18"
|