@breadstone-infrastructure/style-dictionary 0.0.206 → 0.0.209
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/CHANGELOG.md +182 -0
- package/formats/tailwind/v4/buildTailwindV4Config.d.ts +83 -0
- package/formats/tailwind/v4/buildTailwindV4Config.d.ts.map +1 -0
- package/formats/tailwind/v4/buildTailwindV4Config.js +338 -0
- package/formats/tailwind/v4/buildTailwindV4Config.js.map +1 -0
- package/formats/tailwind/v4/index.d.ts +2 -0
- package/formats/tailwind/v4/index.d.ts.map +1 -1
- package/formats/tailwind/v4/index.js +2 -0
- package/formats/tailwind/v4/index.js.map +1 -1
- package/formats/tailwind/v4/tailwindV4Format.d.ts +64 -0
- package/formats/tailwind/v4/tailwindV4Format.d.ts.map +1 -1
- package/formats/tailwind/v4/tailwindV4Format.js +82 -1
- package/formats/tailwind/v4/tailwindV4Format.js.map +1 -1
- package/package.json +3 -3
- package/formats/tailwind/DesignTokenType.d.ts +0 -10
- package/formats/tailwind/DesignTokenType.d.ts.map +0 -1
- package/formats/tailwind/DesignTokenType.js +0 -3
- package/formats/tailwind/DesignTokenType.js.map +0 -1
- package/formats/tailwind/TailwindPropertyMapping.d.ts +0 -61
- package/formats/tailwind/TailwindPropertyMapping.d.ts.map +0 -1
- package/formats/tailwind/TailwindPropertyMapping.js +0 -421
- package/formats/tailwind/TailwindPropertyMapping.js.map +0 -1
- package/formats/tailwind/buildTailwindConfig.d.ts +0 -23
- package/formats/tailwind/buildTailwindConfig.d.ts.map +0 -1
- package/formats/tailwind/buildTailwindConfig.js +0 -280
- package/formats/tailwind/buildTailwindConfig.js.map +0 -1
- package/formats/tailwind/index.d.ts +0 -3
- package/formats/tailwind/index.d.ts.map +0 -1
- package/formats/tailwind/index.js +0 -19
- package/formats/tailwind/index.js.map +0 -1
- package/formats/tailwind/tailwindFormat.d.ts +0 -13
- package/formats/tailwind/tailwindFormat.d.ts.map +0 -1
- package/formats/tailwind/tailwindFormat.js +0 -57
- package/formats/tailwind/tailwindFormat.js.map +0 -1
- package/formats/tailwind/tailwindFormat2.d.ts +0 -13
- package/formats/tailwind/tailwindFormat2.d.ts.map +0 -1
- package/formats/tailwind/tailwindFormat2.js +0 -65
- package/formats/tailwind/tailwindFormat2.js.map +0 -1
- package/formats/tailwind/v3/TailwindPropertyMapping.d.ts +0 -61
- package/formats/tailwind/v3/TailwindPropertyMapping.d.ts.map +0 -1
- package/formats/tailwind/v3/TailwindPropertyMapping.js +0 -421
- package/formats/tailwind/v3/TailwindPropertyMapping.js.map +0 -1
- package/formats/tailwind/v3/buildTailwindConfig.d.ts +0 -23
- package/formats/tailwind/v3/buildTailwindConfig.d.ts.map +0 -1
- package/formats/tailwind/v3/buildTailwindConfig.js +0 -281
- package/formats/tailwind/v3/buildTailwindConfig.js.map +0 -1
- package/formats/tailwind/v3/tailwindFormat.d.ts +0 -13
- package/formats/tailwind/v3/tailwindFormat.d.ts.map +0 -1
- package/formats/tailwind/v3/tailwindFormat.js +0 -57
- package/formats/tailwind/v3/tailwindFormat.js.map +0 -1
- package/formats/tailwind/v3/tailwindFormat2.d.ts +0 -13
- package/formats/tailwind/v3/tailwindFormat2.d.ts.map +0 -1
- package/formats/tailwind/v3/tailwindFormat2.js +0 -65
- package/formats/tailwind/v3/tailwindFormat2.js.map +0 -1
|
@@ -52,4 +52,68 @@ export declare const tailwindV4PresetFormat: Format;
|
|
|
52
52
|
* @public
|
|
53
53
|
*/
|
|
54
54
|
export declare const tailwindV4CssPropertiesFormat: Format;
|
|
55
|
+
/**
|
|
56
|
+
* Style-Dictionary format that outputs a Tailwind v4 JavaScript config file.
|
|
57
|
+
* This generates a config that can be used with the @config directive in CSS.
|
|
58
|
+
*
|
|
59
|
+
* In Tailwind v4, you can still use a JavaScript config file, but it's imported
|
|
60
|
+
* via the @config directive in your CSS file rather than being auto-discovered.
|
|
61
|
+
*
|
|
62
|
+
* @example
|
|
63
|
+
* ```js
|
|
64
|
+
* // tailwind.config.js
|
|
65
|
+
* export default {
|
|
66
|
+
* theme: {
|
|
67
|
+
* colors: {
|
|
68
|
+
* primary: {
|
|
69
|
+
* 500: '#3b82f6',
|
|
70
|
+
* },
|
|
71
|
+
* },
|
|
72
|
+
* },
|
|
73
|
+
* };
|
|
74
|
+
* ```
|
|
75
|
+
*
|
|
76
|
+
* Usage in CSS:
|
|
77
|
+
* ```css
|
|
78
|
+
* @config "./tailwind.config.js";
|
|
79
|
+
* @import "tailwindcss";
|
|
80
|
+
* ```
|
|
81
|
+
*
|
|
82
|
+
* @public
|
|
83
|
+
*/
|
|
84
|
+
export declare const tailwindV4ConfigJsFormat: Format;
|
|
85
|
+
/**
|
|
86
|
+
* Style-Dictionary format that outputs a Tailwind v4 TypeScript config file.
|
|
87
|
+
* This generates a typed config that can be used with the @config directive in CSS.
|
|
88
|
+
*
|
|
89
|
+
* In Tailwind v4, you can still use a TypeScript config file, but it's imported
|
|
90
|
+
* via the @config directive in your CSS file rather than being auto-discovered.
|
|
91
|
+
*
|
|
92
|
+
* @example
|
|
93
|
+
* ```ts
|
|
94
|
+
* // tailwind.config.ts
|
|
95
|
+
* import type { Config } from 'tailwindcss';
|
|
96
|
+
*
|
|
97
|
+
* const config: Config = {
|
|
98
|
+
* theme: {
|
|
99
|
+
* colors: {
|
|
100
|
+
* primary: {
|
|
101
|
+
* 500: '#3b82f6',
|
|
102
|
+
* },
|
|
103
|
+
* },
|
|
104
|
+
* },
|
|
105
|
+
* };
|
|
106
|
+
*
|
|
107
|
+
* export default config;
|
|
108
|
+
* ```
|
|
109
|
+
*
|
|
110
|
+
* Usage in CSS:
|
|
111
|
+
* ```css
|
|
112
|
+
* @config "./tailwind.config.ts";
|
|
113
|
+
* @import "tailwindcss";
|
|
114
|
+
* ```
|
|
115
|
+
*
|
|
116
|
+
* @public
|
|
117
|
+
*/
|
|
118
|
+
export declare const tailwindV4ConfigTsFormat: Format;
|
|
55
119
|
//# sourceMappingURL=tailwindV4Format.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tailwindV4Format.d.ts","sourceRoot":"","sources":["../../../../src/formats/tailwind/v4/tailwindV4Format.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAsB,MAAM,EAAgB,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"tailwindV4Format.d.ts","sourceRoot":"","sources":["../../../../src/formats/tailwind/v4/tailwindV4Format.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAsB,MAAM,EAAgB,MAAM,wBAAwB,CAAC;AAMvF;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,qBAAqB,EAAE,MAanC,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,sBAAsB,EAAE,MAYpC,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,6BAA6B,EAAE,MAY3C,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,eAAO,MAAM,wBAAwB,EAAE,MAWtC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,eAAO,MAAM,wBAAwB,EAAE,MAWtC,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// #region Imports
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.tailwindV4CssPropertiesFormat = exports.tailwindV4PresetFormat = exports.tailwindV4ThemeFormat = void 0;
|
|
4
|
+
exports.tailwindV4ConfigTsFormat = exports.tailwindV4ConfigJsFormat = exports.tailwindV4CssPropertiesFormat = exports.tailwindV4PresetFormat = exports.tailwindV4ThemeFormat = void 0;
|
|
5
5
|
const buildTailwindV4Theme_js_1 = require("./buildTailwindV4Theme.js");
|
|
6
|
+
const buildTailwindV4Config_js_1 = require("./buildTailwindV4Config.js");
|
|
6
7
|
// #endregion
|
|
7
8
|
/**
|
|
8
9
|
* Style-Dictionary format that outputs a Tailwind v4 CSS theme file.
|
|
@@ -85,4 +86,84 @@ exports.tailwindV4CssPropertiesFormat = {
|
|
|
85
86
|
});
|
|
86
87
|
}
|
|
87
88
|
};
|
|
89
|
+
/**
|
|
90
|
+
* Style-Dictionary format that outputs a Tailwind v4 JavaScript config file.
|
|
91
|
+
* This generates a config that can be used with the @config directive in CSS.
|
|
92
|
+
*
|
|
93
|
+
* In Tailwind v4, you can still use a JavaScript config file, but it's imported
|
|
94
|
+
* via the @config directive in your CSS file rather than being auto-discovered.
|
|
95
|
+
*
|
|
96
|
+
* @example
|
|
97
|
+
* ```js
|
|
98
|
+
* // tailwind.config.js
|
|
99
|
+
* export default {
|
|
100
|
+
* theme: {
|
|
101
|
+
* colors: {
|
|
102
|
+
* primary: {
|
|
103
|
+
* 500: '#3b82f6',
|
|
104
|
+
* },
|
|
105
|
+
* },
|
|
106
|
+
* },
|
|
107
|
+
* };
|
|
108
|
+
* ```
|
|
109
|
+
*
|
|
110
|
+
* Usage in CSS:
|
|
111
|
+
* ```css
|
|
112
|
+
* @config "./tailwind.config.js";
|
|
113
|
+
* @import "tailwindcss";
|
|
114
|
+
* ```
|
|
115
|
+
*
|
|
116
|
+
* @public
|
|
117
|
+
*/
|
|
118
|
+
exports.tailwindV4ConfigJsFormat = {
|
|
119
|
+
name: 'tailwind/v4/config/js',
|
|
120
|
+
format({ dictionary, options }) {
|
|
121
|
+
return (0, buildTailwindV4Config_js_1.buildTailwindV4ConfigJs)(dictionary.allTokens, {
|
|
122
|
+
ignoredTokenNameSubstrings: options.ignoredTokenNames ?? [],
|
|
123
|
+
useExtend: options.useExtend ?? false
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
/**
|
|
128
|
+
* Style-Dictionary format that outputs a Tailwind v4 TypeScript config file.
|
|
129
|
+
* This generates a typed config that can be used with the @config directive in CSS.
|
|
130
|
+
*
|
|
131
|
+
* In Tailwind v4, you can still use a TypeScript config file, but it's imported
|
|
132
|
+
* via the @config directive in your CSS file rather than being auto-discovered.
|
|
133
|
+
*
|
|
134
|
+
* @example
|
|
135
|
+
* ```ts
|
|
136
|
+
* // tailwind.config.ts
|
|
137
|
+
* import type { Config } from 'tailwindcss';
|
|
138
|
+
*
|
|
139
|
+
* const config: Config = {
|
|
140
|
+
* theme: {
|
|
141
|
+
* colors: {
|
|
142
|
+
* primary: {
|
|
143
|
+
* 500: '#3b82f6',
|
|
144
|
+
* },
|
|
145
|
+
* },
|
|
146
|
+
* },
|
|
147
|
+
* };
|
|
148
|
+
*
|
|
149
|
+
* export default config;
|
|
150
|
+
* ```
|
|
151
|
+
*
|
|
152
|
+
* Usage in CSS:
|
|
153
|
+
* ```css
|
|
154
|
+
* @config "./tailwind.config.ts";
|
|
155
|
+
* @import "tailwindcss";
|
|
156
|
+
* ```
|
|
157
|
+
*
|
|
158
|
+
* @public
|
|
159
|
+
*/
|
|
160
|
+
exports.tailwindV4ConfigTsFormat = {
|
|
161
|
+
name: 'tailwind/v4/config/ts',
|
|
162
|
+
format({ dictionary, options }) {
|
|
163
|
+
return (0, buildTailwindV4Config_js_1.buildTailwindV4ConfigTs)(dictionary.allTokens, {
|
|
164
|
+
ignoredTokenNameSubstrings: options.ignoredTokenNames ?? [],
|
|
165
|
+
useExtend: options.useExtend ?? false
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
};
|
|
88
169
|
//# sourceMappingURL=tailwindV4Format.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tailwindV4Format.js","sourceRoot":"","sources":["../../../../src/formats/tailwind/v4/tailwindV4Format.ts"],"names":[],"mappings":";AAAA,kBAAkB;;;AAGlB,uEAAwF;
|
|
1
|
+
{"version":3,"file":"tailwindV4Format.js","sourceRoot":"","sources":["../../../../src/formats/tailwind/v4/tailwindV4Format.ts"],"names":[],"mappings":";AAAA,kBAAkB;;;AAGlB,uEAAwF;AACxF,yEAA8F;AAE9F,aAAa;AAEb;;;;;;;;;;;;;;;;;GAiBG;AACU,QAAA,qBAAqB,GAAW;IACzC,IAAI,EAAE,mBAAmB;IACzB,MAAM,CAAC,EAAE,UAAU,EAAE,OAAO,EAG3B;QACG,OAAO,IAAA,8CAAoB,EAAC,UAAU,CAAC,SAAS,EAAE;YAC9C,0BAA0B,EAAE,OAAO,CAAC,iBAAiB,IAAI,EAAE;YAC3D,qBAAqB,EAAE,IAAI;YAC3B,WAAW,EAAE,IAAI;YACjB,UAAU,EAAE,OAAO,CAAC,UAAU;SACjC,CAAC,CAAC;IACP,CAAC;CACJ,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACU,QAAA,sBAAsB,GAAW;IAC1C,IAAI,EAAE,oBAAoB;IAC1B,MAAM,CAAC,EAAE,UAAU,EAAE,OAAO,EAG3B;QACG,OAAO,IAAA,+CAAqB,EAAC,UAAU,CAAC,SAAS,EAAE;YAC/C,0BAA0B,EAAE,OAAO,CAAC,iBAAiB,IAAI,EAAE;YAC3D,WAAW,EAAE,IAAI;YACjB,UAAU,EAAE,OAAO,CAAC,UAAU;SACjC,CAAC,CAAC;IACP,CAAC;CACJ,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACU,QAAA,6BAA6B,GAAW;IACjD,IAAI,EAAE,4BAA4B;IAClC,MAAM,CAAC,EAAE,UAAU,EAAE,OAAO,EAG3B;QACG,OAAO,IAAA,+CAAqB,EAAC,UAAU,CAAC,SAAS,EAAE;YAC/C,0BAA0B,EAAE,OAAO,CAAC,iBAAiB,IAAI,EAAE;YAC3D,qBAAqB,EAAE,KAAK;YAC5B,WAAW,EAAE,KAAK;SACrB,CAAC,CAAC;IACP,CAAC;CACJ,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACU,QAAA,wBAAwB,GAAW;IAC5C,IAAI,EAAE,uBAAuB;IAC7B,MAAM,CAAC,EAAE,UAAU,EAAE,OAAO,EAG3B;QACG,OAAO,IAAA,kDAAuB,EAAC,UAAU,CAAC,SAAS,EAAE;YACjD,0BAA0B,EAAE,OAAO,CAAC,iBAAiB,IAAI,EAAE;YAC3D,SAAS,EAAE,OAAO,CAAC,SAAS,IAAI,KAAK;SACxC,CAAC,CAAC;IACP,CAAC;CACJ,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACU,QAAA,wBAAwB,GAAW;IAC5C,IAAI,EAAE,uBAAuB;IAC7B,MAAM,CAAC,EAAE,UAAU,EAAE,OAAO,EAG3B;QACG,OAAO,IAAA,kDAAuB,EAAC,UAAU,CAAC,SAAS,EAAE;YACjD,0BAA0B,EAAE,OAAO,CAAC,iBAAiB,IAAI,EAAE;YAC3D,SAAS,EAAE,OAAO,CAAC,SAAS,IAAI,KAAK;SACxC,CAAC,CAAC;IACP,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.209",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "andre.wehlert <awehlert@breadstone.de> (https://www.breadstone.de)",
|
|
7
7
|
"repository": {
|
|
@@ -13,9 +13,9 @@
|
|
|
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.209",
|
|
17
17
|
"chroma-js": "^3.2.0",
|
|
18
18
|
"style-dictionary": "^4.4.0",
|
|
19
|
-
"tailwindcss": "^3.4.
|
|
19
|
+
"tailwindcss": "^3.4.19"
|
|
20
20
|
}
|
|
21
21
|
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Supported logical token types as returned by `getType`.
|
|
3
|
-
*
|
|
4
|
-
* This mirrors your original formatter's behavior and is used for
|
|
5
|
-
* type-based fallback mapping if no valid category is present.
|
|
6
|
-
*
|
|
7
|
-
* @public
|
|
8
|
-
*/
|
|
9
|
-
export type DesignTokenType = 'borderRadius' | 'borderWidth' | 'color' | 'duration' | 'font' | 'fontFamily' | 'fontSize' | 'fontWeight' | 'height' | 'letterSpacing' | 'lineHeight' | 'maxHeight' | 'maxWidth' | 'minHeight' | 'minWidth' | 'opacity' | 'shadow' | 'size' | 'spacing' | 'textDecorationLine' | 'textTransform' | 'width' | 'zIndex';
|
|
10
|
-
//# sourceMappingURL=DesignTokenType.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DesignTokenType.d.ts","sourceRoot":"","sources":["../../../src/formats/tailwind/DesignTokenType.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,MAAM,eAAe,GAAK,cAAc,GAAG,aAAa,GAAG,OAAO,GAAG,UAAU,GAAG,MAAM,GAAG,YAAY,GAAG,UAAU,GAAG,YAAY,GAAG,QAAQ,GAAG,eAAe,GAAG,YAAY,GAAG,WAAW,GAAG,UAAU,GAAG,WAAW,GAAG,UAAU,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,GAAG,oBAAoB,GAAG,eAAe,GAAG,OAAO,GAAG,QAAQ,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DesignTokenType.js","sourceRoot":"","sources":["../../../src/formats/tailwind/DesignTokenType.ts"],"names":[],"mappings":""}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import type { Config as TailwindConfig } from 'tailwindcss';
|
|
2
|
-
import type { DesignTokenType } from './DesignTokenType';
|
|
3
|
-
/**
|
|
4
|
-
* A valid key for the `theme` section of Tailwind config.
|
|
5
|
-
*
|
|
6
|
-
* @public
|
|
7
|
-
*/
|
|
8
|
-
export type TailwindThemeKey = keyof NonNullable<TailwindConfig['theme']>;
|
|
9
|
-
/**
|
|
10
|
-
* Strategy describing how to map a token value under a given theme key.
|
|
11
|
-
*
|
|
12
|
-
* @private
|
|
13
|
-
*/
|
|
14
|
-
type MappingStrategy = 'flat' | 'nested' | 'shadeMap' | 'shadow';
|
|
15
|
-
/**
|
|
16
|
-
* Function type for transforming token paths into Tailwind-compatible keys.
|
|
17
|
-
* Can return either a string (for flat/shadow strategies) or an array (for nested/shadeMap strategies).
|
|
18
|
-
*
|
|
19
|
-
* @public
|
|
20
|
-
*/
|
|
21
|
-
export type PathTransformFn = (path: ReadonlyArray<string>) => string | ReadonlyArray<string>;
|
|
22
|
-
/**
|
|
23
|
-
* Internal mapping definition: for a given Tailwind theme key,
|
|
24
|
-
* which mapping strategy to apply when inserting tokens.
|
|
25
|
-
*
|
|
26
|
-
* @public
|
|
27
|
-
*/
|
|
28
|
-
export interface IKeyMapping {
|
|
29
|
-
readonly themeKey: TailwindThemeKey;
|
|
30
|
-
readonly strategy: MappingStrategy;
|
|
31
|
-
readonly pathTransform?: PathTransformFn;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Set of supported design token types for validation.
|
|
35
|
-
* Used only for logging; unsupported types are skipped.
|
|
36
|
-
*
|
|
37
|
-
* @public
|
|
38
|
-
*/
|
|
39
|
-
export declare const SUPPORTED_TOKEN_TYPES: ReadonlyArray<DesignTokenType>;
|
|
40
|
-
/**
|
|
41
|
-
* Maps token-level `category` values (which MUST match Tailwind theme keys)
|
|
42
|
-
* to Tailwind theme keys and the corresponding mapping strategy.
|
|
43
|
-
*
|
|
44
|
-
* This is the primary mapping: if a token specifies a `category` and it is
|
|
45
|
-
* found here, it is used directly.
|
|
46
|
-
*
|
|
47
|
-
* @public
|
|
48
|
-
*/
|
|
49
|
-
export declare const CATEGORY_TO_KEY_MAPPING: Partial<Record<TailwindThemeKey, IKeyMapping>>;
|
|
50
|
-
/**
|
|
51
|
-
* Fallback mapping from logical token type → Tailwind theme key + strategy.
|
|
52
|
-
*
|
|
53
|
-
* This is used when there is no valid `category` on the token.
|
|
54
|
-
* It keeps the behavior close to the original formatter where routing
|
|
55
|
-
* was based on `type`.
|
|
56
|
-
*
|
|
57
|
-
* @public
|
|
58
|
-
*/
|
|
59
|
-
export declare const TOKEN_TYPE_TO_KEY_MAPPING: Partial<Record<DesignTokenType, IKeyMapping>>;
|
|
60
|
-
export {};
|
|
61
|
-
//# sourceMappingURL=TailwindPropertyMapping.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TailwindPropertyMapping.d.ts","sourceRoot":"","sources":["../../../src/formats/tailwind/TailwindPropertyMapping.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,IAAI,cAAc,EAAE,MAAM,aAAa,CAAC;AAC5D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAMzD;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG,MAAM,WAAW,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;AAE1E;;;;GAIG;AACH,KAAK,eAAe,GAAG,MAAM,GAAG,QAAQ,GAAG,UAAU,GAAG,QAAQ,CAAC;AAEjE;;;;;GAKG;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,IAAI,EAAE,aAAa,CAAC,MAAM,CAAC,KAAK,MAAM,GAAG,aAAa,CAAC,MAAM,CAAC,CAAC;AAE9F;;;;;GAKG;AACH,MAAM,WAAW,WAAW;IACxB,QAAQ,CAAC,QAAQ,EAAE,gBAAgB,CAAC;IACpC,QAAQ,CAAC,QAAQ,EAAE,eAAe,CAAC;IACnC,QAAQ,CAAC,aAAa,CAAC,EAAE,eAAe,CAAC;CAC5C;AAMD;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,EAAE,aAAa,CAAC,eAAe,CAwBhE,CAAC;AAMF;;;;;;;;GAQG;AACH,eAAO,MAAM,uBAAuB,EAAE,OAAO,CAAC,MAAM,CAAC,gBAAgB,EAAE,WAAW,CAAC,CAwNlF,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,yBAAyB,EAAE,OAAO,CAAC,MAAM,CAAC,eAAe,EAAE,WAAW,CAAC,CAwInF,CAAC"}
|