@breadstone-infrastructure/style-dictionary 0.0.205 → 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.
Files changed (79) hide show
  1. package/CHANGELOG.md +182 -0
  2. package/formats/index.d.ts +3 -0
  3. package/formats/index.d.ts.map +1 -0
  4. package/formats/{tailwind/index.js → index.js} +2 -2
  5. package/formats/index.js.map +1 -0
  6. package/formats/tailwind/v3/DesignTokenType.d.ts.map +1 -0
  7. package/formats/tailwind/v3/DesignTokenType.js.map +1 -0
  8. package/formats/tailwind/{TailwindPropertyMapping.d.ts → v3/TailwindV3PropertyMapping.d.ts} +15 -15
  9. package/formats/tailwind/v3/TailwindV3PropertyMapping.d.ts.map +1 -0
  10. package/formats/tailwind/{TailwindPropertyMapping.js → v3/TailwindV3PropertyMapping.js} +6 -6
  11. package/formats/tailwind/v3/TailwindV3PropertyMapping.js.map +1 -0
  12. package/formats/tailwind/{buildTailwindConfig.d.ts → v3/buildTailwindV3Config.d.ts} +5 -4
  13. package/formats/tailwind/v3/buildTailwindV3Config.d.ts.map +1 -0
  14. package/formats/tailwind/{buildTailwindConfig.js → v3/buildTailwindV3Config.js} +19 -17
  15. package/formats/tailwind/v3/buildTailwindV3Config.js.map +1 -0
  16. package/formats/tailwind/v3/index.d.ts +5 -0
  17. package/formats/tailwind/v3/index.d.ts.map +1 -0
  18. package/formats/tailwind/v3/index.js +21 -0
  19. package/formats/tailwind/v3/index.js.map +1 -0
  20. package/formats/tailwind/v3/tailwindV3Format.d.ts +32 -0
  21. package/formats/tailwind/v3/tailwindV3Format.d.ts.map +1 -0
  22. package/formats/tailwind/v3/tailwindV3Format.js +123 -0
  23. package/formats/tailwind/v3/tailwindV3Format.js.map +1 -0
  24. package/formats/tailwind/v4/DesignTokenType.d.ts +10 -0
  25. package/formats/tailwind/v4/DesignTokenType.d.ts.map +1 -0
  26. package/formats/tailwind/v4/DesignTokenType.js +3 -0
  27. package/formats/tailwind/v4/DesignTokenType.js.map +1 -0
  28. package/formats/tailwind/v4/TailwindV4PropertyMapping.d.ts +45 -0
  29. package/formats/tailwind/v4/TailwindV4PropertyMapping.d.ts.map +1 -0
  30. package/formats/tailwind/v4/TailwindV4PropertyMapping.js +322 -0
  31. package/formats/tailwind/v4/TailwindV4PropertyMapping.js.map +1 -0
  32. package/formats/tailwind/v4/buildTailwindV4Config.d.ts +83 -0
  33. package/formats/tailwind/v4/buildTailwindV4Config.d.ts.map +1 -0
  34. package/formats/tailwind/v4/buildTailwindV4Config.js +338 -0
  35. package/formats/tailwind/v4/buildTailwindV4Config.js.map +1 -0
  36. package/formats/tailwind/v4/buildTailwindV4Theme.d.ts +71 -0
  37. package/formats/tailwind/v4/buildTailwindV4Theme.d.ts.map +1 -0
  38. package/formats/tailwind/v4/buildTailwindV4Theme.js +247 -0
  39. package/formats/tailwind/v4/buildTailwindV4Theme.js.map +1 -0
  40. package/formats/tailwind/v4/index.d.ts +4 -0
  41. package/formats/tailwind/v4/index.d.ts.map +1 -0
  42. package/formats/tailwind/v4/index.js +20 -0
  43. package/formats/tailwind/v4/index.js.map +1 -0
  44. package/formats/tailwind/v4/tailwindV4Format.d.ts +119 -0
  45. package/formats/tailwind/v4/tailwindV4Format.d.ts.map +1 -0
  46. package/formats/tailwind/v4/tailwindV4Format.js +169 -0
  47. package/formats/tailwind/v4/tailwindV4Format.js.map +1 -0
  48. package/index.d.ts +3 -9
  49. package/index.d.ts.map +1 -1
  50. package/index.js +3 -17
  51. package/index.js.map +1 -1
  52. package/package.json +3 -3
  53. package/preprocessors/index.d.ts +3 -0
  54. package/preprocessors/index.d.ts.map +1 -0
  55. package/preprocessors/index.js +19 -0
  56. package/preprocessors/index.js.map +1 -0
  57. package/transforms/index.d.ts +7 -0
  58. package/transforms/index.d.ts.map +1 -0
  59. package/transforms/index.js +23 -0
  60. package/transforms/index.js.map +1 -0
  61. package/formats/tailwind/DesignTokenType.d.ts.map +0 -1
  62. package/formats/tailwind/DesignTokenType.js.map +0 -1
  63. package/formats/tailwind/TailwindPropertyMapping.d.ts.map +0 -1
  64. package/formats/tailwind/TailwindPropertyMapping.js.map +0 -1
  65. package/formats/tailwind/buildTailwindConfig.d.ts.map +0 -1
  66. package/formats/tailwind/buildTailwindConfig.js.map +0 -1
  67. package/formats/tailwind/index.d.ts +0 -3
  68. package/formats/tailwind/index.d.ts.map +0 -1
  69. package/formats/tailwind/index.js.map +0 -1
  70. package/formats/tailwind/tailwindFormat.d.ts +0 -13
  71. package/formats/tailwind/tailwindFormat.d.ts.map +0 -1
  72. package/formats/tailwind/tailwindFormat.js +0 -57
  73. package/formats/tailwind/tailwindFormat.js.map +0 -1
  74. package/formats/tailwind/tailwindFormat2.d.ts +0 -13
  75. package/formats/tailwind/tailwindFormat2.d.ts.map +0 -1
  76. package/formats/tailwind/tailwindFormat2.js +0 -65
  77. package/formats/tailwind/tailwindFormat2.js.map +0 -1
  78. /package/formats/tailwind/{DesignTokenType.d.ts → v3/DesignTokenType.d.ts} +0 -0
  79. /package/formats/tailwind/{DesignTokenType.js → v3/DesignTokenType.js} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,3 +1,185 @@
1
+ ## 0.0.208 (2025-12-13)
2
+
3
+ ### 🚀 Features
4
+
5
+ - update component properties and descriptions for better clarity and functionality ([5d4069bff7](https://github.com/RueDeRennes/mosaik/commit/5d4069bff7))
6
+
7
+ ## 0.0.207 (2025-12-13)
8
+
9
+ ### 🚀 Features
10
+
11
+ - **tailwind:** implement Tailwind v4 config generation and update package scripts ([db31430aaf](https://github.com/RueDeRennes/mosaik/commit/db31430aaf))
12
+
13
+ ### 🩹 Fixes
14
+
15
+ - **stepper:** update properties and styles for Stepper themes and components ([5f66855a75](https://github.com/RueDeRennes/mosaik/commit/5f66855a75))
16
+
17
+ ## 0.0.206 (2025-12-09)
18
+
19
+ ### 🚀 Features
20
+
21
+ - **tailwind:** add material and memphis theme presets for Tailwind CSS ([79cfb43ae2](https://github.com/RueDeRennes/mosaik/commit/79cfb43ae2))
22
+
23
+ ## 0.0.205 (2025-12-07)
24
+
25
+ ### 🩹 Fixes
26
+
27
+ - **buttons): update stack-gap variable usage in FloatingActionButton, RepeatButton, SplitButton, ToggleButton themes fix(card): update stack-gap variable usage in CardActions theme fix(expander): update stack-gap variable usage in Expander theme fix(comment): update stack-gap variable usage in Comment theme fix(dialog): update stack-gap variable usage in DialogActions theme fix(segment): update stack-gap variable usage in SegmentItem theme fix(tab-strip): update stack-gap variable usage in TabStripItem theme fix(states): update stack-gap variable usage in Busy, Empty, Error, and Success state themes chore(package:** bump version to 0.0.204 in package.json ([878a490c1e](https://github.com/RueDeRennes/mosaik/commit/878a490c1e))
28
+
29
+ ## 0.0.204 (2025-12-07)
30
+
31
+ This was a version bump only for style-dictionary-plugins to align it with other projects, there were no code changes.
32
+
33
+ ## 0.0.203 (2025-12-06)
34
+
35
+ This was a version bump only for style-dictionary-plugins to align it with other projects, there were no code changes.
36
+
37
+ ## 0.0.202 (2025-12-06)
38
+
39
+ This was a version bump only for style-dictionary-plugins to align it with other projects, there were no code changes.
40
+
41
+ ## 0.0.201 (2025-12-05)
42
+
43
+ This was a version bump only for style-dictionary-plugins to align it with other projects, there were no code changes.
44
+
45
+ ## 0.0.200 (2025-12-05)
46
+
47
+ This was a version bump only for style-dictionary-plugins to align it with other projects, there were no code changes.
48
+
49
+ ## 0.0.199 (2025-12-05)
50
+
51
+ ### 🩹 Fixes
52
+
53
+ - **package:** add missing newline at end of file ([e7bbe4e7c1](https://github.com/RueDeRennes/mosaik/commit/e7bbe4e7c1))
54
+
55
+ ## 0.0.198 (2025-12-05)
56
+
57
+ This was a version bump only for style-dictionary-plugins to align it with other projects, there were no code changes.
58
+
59
+ ## 0.0.197 (2025-12-05)
60
+
61
+ This was a version bump only for style-dictionary-plugins to align it with other projects, there were no code changes.
62
+
63
+ ## 0.0.196 (2025-12-05)
64
+
65
+ ### 🚀 Features
66
+
67
+ - **event-hub:** add Event Hub pattern implementation for Angular 2025 ([88dc4f7404](https://github.com/RueDeRennes/mosaik/commit/88dc4f7404))
68
+
69
+ ### 🩹 Fixes
70
+
71
+ - **keywords:** add Event Bus and Message Bus to event hub documentation ([69cafcf76f](https://github.com/RueDeRennes/mosaik/commit/69cafcf76f))
72
+
73
+ ## 0.0.195 (2025-12-03)
74
+
75
+ ### 🩹 Fixes
76
+
77
+ - **package:** add missing newline at end of file in package.json ([a9bf15349b](https://github.com/RueDeRennes/mosaik/commit/a9bf15349b))
78
+
79
+ ## 0.0.194 (2025-12-03)
80
+
81
+ ### 🩹 Fixes
82
+
83
+ - **Cdk:** export FormFieldStatusDirective alongside FORM_STATUS_HOST from FormStatusDirective ([c8521cd4ff](https://github.com/RueDeRennes/mosaik/commit/c8521cd4ff))
84
+
85
+ ## 0.0.193 (2025-12-03)
86
+
87
+ This was a version bump only for style-dictionary-plugins to align it with other projects, there were no code changes.
88
+
89
+ ## 0.0.192 (2025-12-03)
90
+
91
+ This was a version bump only for style-dictionary-plugins to align it with other projects, there were no code changes.
92
+
93
+ ## 0.0.191 (2025-12-03)
94
+
95
+ This was a version bump only for style-dictionary-plugins to align it with other projects, there were no code changes.
96
+
97
+ ## 0.0.190 (2025-12-02)
98
+
99
+ ### 🩹 Fixes
100
+
101
+ - **choice-group:** add flex property to root part for improved layout consistency ([8bd80ed40b](https://github.com/RueDeRennes/mosaik/commit/8bd80ed40b))
102
+
103
+ ## 0.0.189 (2025-12-02)
104
+
105
+ This was a version bump only for style-dictionary-plugins to align it with other projects, there were no code changes.
106
+
107
+ ## 0.0.188 (2025-12-02)
108
+
109
+ ### 🚀 Features
110
+
111
+ - **directives:** update FormFieldDirective to improve error handling and usage documentation ([7c07bb43fd](https://github.com/RueDeRennes/mosaik/commit/7c07bb43fd))
112
+
113
+ ## 0.0.187 (2025-12-02)
114
+
115
+ This was a version bump only for style-dictionary-plugins to align it with other projects, there were no code changes.
116
+
117
+ ## 0.0.186 (2025-12-02)
118
+
119
+ This was a version bump only for style-dictionary-plugins to align it with other projects, there were no code changes.
120
+
121
+ ## 0.0.185 (2025-12-02)
122
+
123
+ This was a version bump only for style-dictionary-plugins to align it with other projects, there were no code changes.
124
+
125
+ ## 0.0.184 (2025-12-02)
126
+
127
+ ### 🚀 Features
128
+
129
+ - **eslint:** enhance ESLint configuration and add .eslintignore file ([4b3deb5566](https://github.com/RueDeRennes/mosaik/commit/4b3deb5566))
130
+
131
+ ## 0.0.183 (2025-11-30)
132
+
133
+ This was a version bump only for style-dictionary-plugins to align it with other projects, there were no code changes.
134
+
135
+ ## 0.0.182 (2025-11-30)
136
+
137
+ ### 🚀 Features
138
+
139
+ - **themes:** refactor theme generator strategies and update build process ([55859a854f](https://github.com/RueDeRennes/mosaik/commit/55859a854f))
140
+
141
+ ## 0.0.181 (2025-11-30)
142
+
143
+ This was a version bump only for style-dictionary-plugins to align it with other projects, there were no code changes.
144
+
145
+ ## 0.0.180 (2025-11-30)
146
+
147
+ ### 🚀 Features
148
+
149
+ - **tailwind:** refactor exports to use module.exports and add v3 directory structure ([7e66c07bf2](https://github.com/RueDeRennes/mosaik/commit/7e66c07bf2))
150
+
151
+ ## 0.0.179 (2025-11-29)
152
+
153
+ ### 🚀 Features
154
+
155
+ - **tailwind): add Material and Memphis presets for Tailwind CSS themes fix(tokens): correct typo in headline2 key in joy and memphis theme JSON files chore(tsconfig:** update TypeScript configuration to include Tailwind files ([0ae3d28053](https://github.com/RueDeRennes/mosaik/commit/0ae3d28053))
156
+
157
+ ## 0.0.178 (2025-11-29)
158
+
159
+ ### 🩹 Fixes
160
+
161
+ - **package:** add missing newline at end of file ([0fc5a107d6](https://github.com/RueDeRennes/mosaik/commit/0fc5a107d6))
162
+
163
+ ## 0.0.177 (2025-11-29)
164
+
165
+ ### 🚀 Features
166
+
167
+ - **theme:** add new design tokens and update existing token categories for consistency ([331e4a684a](https://github.com/RueDeRennes/mosaik/commit/331e4a684a))
168
+
169
+ ### 🩹 Fixes
170
+
171
+ - **release:** update release script version to 0.0.177 ([1895016b0a](https://github.com/RueDeRennes/mosaik/commit/1895016b0a))
172
+
173
+ ## 0.0.176 (2025-11-29)
174
+
175
+ ### 🚀 Features
176
+
177
+ - add oklch color transform and update dependencies in style-dictionary plugins ([40063afe0a](https://github.com/RueDeRennes/mosaik/commit/40063afe0a))
178
+
179
+ ### 🩹 Fixes
180
+
181
+ - add missing newline at end of JSON files ([60b2109dd0](https://github.com/RueDeRennes/mosaik/commit/60b2109dd0))
182
+
1
183
  ## 0.0.175 (2025-11-28)
2
184
 
3
185
  ### 🩹 Fixes
@@ -0,0 +1,3 @@
1
+ export * from './tailwind/v3';
2
+ export * from './tailwind/v4';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/formats/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC"}
@@ -14,6 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./tailwindFormat"), exports);
18
- __exportStar(require("./tailwindFormat2"), exports);
17
+ __exportStar(require("./tailwind/v3"), exports);
18
+ __exportStar(require("./tailwind/v4"), exports);
19
19
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/formats/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,gDAA8B"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DesignTokenType.d.ts","sourceRoot":"","sources":["../../../../src/formats/tailwind/v3/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"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DesignTokenType.js","sourceRoot":"","sources":["../../../../src/formats/tailwind/v3/DesignTokenType.ts"],"names":[],"mappings":""}
@@ -1,34 +1,34 @@
1
1
  import type { Config as TailwindConfig } from 'tailwindcss';
2
- import type { DesignTokenType } from './DesignTokenType';
2
+ import type { DesignTokenType } from './DesignTokenType.js';
3
3
  /**
4
- * A valid key for the `theme` section of Tailwind config.
4
+ * A valid key for the `theme` section of Tailwind v3 config.
5
5
  *
6
6
  * @public
7
7
  */
8
- export type TailwindThemeKey = keyof NonNullable<TailwindConfig['theme']>;
8
+ export type TailwindV3ThemeKey = keyof NonNullable<TailwindConfig['theme']>;
9
9
  /**
10
10
  * Strategy describing how to map a token value under a given theme key.
11
11
  *
12
12
  * @private
13
13
  */
14
- type MappingStrategy = 'flat' | 'nested' | 'shadeMap' | 'shadow';
14
+ type V3MappingStrategy = 'flat' | 'nested' | 'shadeMap' | 'shadow';
15
15
  /**
16
16
  * Function type for transforming token paths into Tailwind-compatible keys.
17
17
  * Can return either a string (for flat/shadow strategies) or an array (for nested/shadeMap strategies).
18
18
  *
19
19
  * @public
20
20
  */
21
- export type PathTransformFn = (path: ReadonlyArray<string>) => string | ReadonlyArray<string>;
21
+ export type V3PathTransformFn = (path: ReadonlyArray<string>) => string | ReadonlyArray<string>;
22
22
  /**
23
- * Internal mapping definition: for a given Tailwind theme key,
23
+ * Internal mapping definition for Tailwind v3: for a given Tailwind theme key,
24
24
  * which mapping strategy to apply when inserting tokens.
25
25
  *
26
26
  * @public
27
27
  */
28
- export interface IKeyMapping {
29
- readonly themeKey: TailwindThemeKey;
30
- readonly strategy: MappingStrategy;
31
- readonly pathTransform?: PathTransformFn;
28
+ export interface IV3KeyMapping {
29
+ readonly themeKey: TailwindV3ThemeKey;
30
+ readonly strategy: V3MappingStrategy;
31
+ readonly pathTransform?: V3PathTransformFn;
32
32
  }
33
33
  /**
34
34
  * Set of supported design token types for validation.
@@ -39,16 +39,16 @@ export interface IKeyMapping {
39
39
  export declare const SUPPORTED_TOKEN_TYPES: ReadonlyArray<DesignTokenType>;
40
40
  /**
41
41
  * Maps token-level `category` values (which MUST match Tailwind theme keys)
42
- * to Tailwind theme keys and the corresponding mapping strategy.
42
+ * to Tailwind v3 theme keys and the corresponding mapping strategy.
43
43
  *
44
44
  * This is the primary mapping: if a token specifies a `category` and it is
45
45
  * found here, it is used directly.
46
46
  *
47
47
  * @public
48
48
  */
49
- export declare const CATEGORY_TO_KEY_MAPPING: Partial<Record<TailwindThemeKey, IKeyMapping>>;
49
+ export declare const CATEGORY_TO_V3_KEY_MAPPING: Partial<Record<TailwindV3ThemeKey, IV3KeyMapping>>;
50
50
  /**
51
- * Fallback mapping from logical token type → Tailwind theme key + strategy.
51
+ * Fallback mapping from logical token type → Tailwind v3 theme key + strategy.
52
52
  *
53
53
  * This is used when there is no valid `category` on the token.
54
54
  * It keeps the behavior close to the original formatter where routing
@@ -56,6 +56,6 @@ export declare const CATEGORY_TO_KEY_MAPPING: Partial<Record<TailwindThemeKey, I
56
56
  *
57
57
  * @public
58
58
  */
59
- export declare const TOKEN_TYPE_TO_KEY_MAPPING: Partial<Record<DesignTokenType, IKeyMapping>>;
59
+ export declare const TOKEN_TYPE_TO_V3_KEY_MAPPING: Partial<Record<DesignTokenType, IV3KeyMapping>>;
60
60
  export {};
61
- //# sourceMappingURL=TailwindPropertyMapping.d.ts.map
61
+ //# sourceMappingURL=TailwindV3PropertyMapping.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TailwindV3PropertyMapping.d.ts","sourceRoot":"","sources":["../../../../src/formats/tailwind/v3/TailwindV3PropertyMapping.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,IAAI,cAAc,EAAE,MAAM,aAAa,CAAC;AAC5D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAM5D;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAAG,MAAM,WAAW,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;AAE5E;;;;GAIG;AACH,KAAK,iBAAiB,GAAG,MAAM,GAAG,QAAQ,GAAG,UAAU,GAAG,QAAQ,CAAC;AAEnE;;;;;GAKG;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,IAAI,EAAE,aAAa,CAAC,MAAM,CAAC,KAAK,MAAM,GAAG,aAAa,CAAC,MAAM,CAAC,CAAC;AAEhG;;;;;GAKG;AACH,MAAM,WAAW,aAAa;IAC1B,QAAQ,CAAC,QAAQ,EAAE,kBAAkB,CAAC;IACtC,QAAQ,CAAC,QAAQ,EAAE,iBAAiB,CAAC;IACrC,QAAQ,CAAC,aAAa,CAAC,EAAE,iBAAiB,CAAC;CAC9C;AAMD;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,EAAE,aAAa,CAAC,eAAe,CAwBhE,CAAC;AAMF;;;;;;;;GAQG;AACH,eAAO,MAAM,0BAA0B,EAAE,OAAO,CAAC,MAAM,CAAC,kBAAkB,EAAE,aAAa,CAAC,CAwNzF,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,4BAA4B,EAAE,OAAO,CAAC,MAAM,CAAC,eAAe,EAAE,aAAa,CAAC,CAwIxF,CAAC"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // #region Imports
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.TOKEN_TYPE_TO_KEY_MAPPING = exports.CATEGORY_TO_KEY_MAPPING = exports.SUPPORTED_TOKEN_TYPES = void 0;
4
+ exports.TOKEN_TYPE_TO_V3_KEY_MAPPING = exports.CATEGORY_TO_V3_KEY_MAPPING = exports.SUPPORTED_TOKEN_TYPES = void 0;
5
5
  // #endregion
6
6
  // #region Constants
7
7
  /**
@@ -39,14 +39,14 @@ exports.SUPPORTED_TOKEN_TYPES = [
39
39
  // #region Mappings
40
40
  /**
41
41
  * Maps token-level `category` values (which MUST match Tailwind theme keys)
42
- * to Tailwind theme keys and the corresponding mapping strategy.
42
+ * to Tailwind v3 theme keys and the corresponding mapping strategy.
43
43
  *
44
44
  * This is the primary mapping: if a token specifies a `category` and it is
45
45
  * found here, it is used directly.
46
46
  *
47
47
  * @public
48
48
  */
49
- exports.CATEGORY_TO_KEY_MAPPING = {
49
+ exports.CATEGORY_TO_V3_KEY_MAPPING = {
50
50
  colors: {
51
51
  themeKey: 'colors',
52
52
  strategy: 'shadeMap',
@@ -269,7 +269,7 @@ exports.CATEGORY_TO_KEY_MAPPING = {
269
269
  }
270
270
  };
271
271
  /**
272
- * Fallback mapping from logical token type → Tailwind theme key + strategy.
272
+ * Fallback mapping from logical token type → Tailwind v3 theme key + strategy.
273
273
  *
274
274
  * This is used when there is no valid `category` on the token.
275
275
  * It keeps the behavior close to the original formatter where routing
@@ -277,7 +277,7 @@ exports.CATEGORY_TO_KEY_MAPPING = {
277
277
  *
278
278
  * @public
279
279
  */
280
- exports.TOKEN_TYPE_TO_KEY_MAPPING = {
280
+ exports.TOKEN_TYPE_TO_V3_KEY_MAPPING = {
281
281
  color: {
282
282
  themeKey: 'colors',
283
283
  strategy: 'shadeMap',
@@ -418,4 +418,4 @@ exports.TOKEN_TYPE_TO_KEY_MAPPING = {
418
418
  }
419
419
  };
420
420
  // #endregion
421
- //# sourceMappingURL=TailwindPropertyMapping.js.map
421
+ //# sourceMappingURL=TailwindV3PropertyMapping.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TailwindV3PropertyMapping.js","sourceRoot":"","sources":["../../../../src/formats/tailwind/v3/TailwindV3PropertyMapping.ts"],"names":[],"mappings":";AAAA,kBAAkB;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CAAC,CAAC,CAAC,CAAC;YACnB,CAAC;YACD,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;QACjC,CAAC;KACJ;IACD,MAAM,EAAE;QACJ,QAAQ,EAAE,WAAW;QACrB,QAAQ,EAAE,QAAQ;KACrB;IACD,OAAO,EAAE;QACL,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,MAAM;KACnB;IACD,MAAM,EAAE;QACJ,QAAQ,EAAE,QAAQ;QAClB,QAAQ,EAAE,MAAM;KACnB;IACD,QAAQ,EAAE;QACN,QAAQ,EAAE,oBAAoB;QAC9B,QAAQ,EAAE,MAAM;KACnB;CACJ,CAAC;AAEF,aAAa"}
@@ -6,9 +6,9 @@ import type { TransformedToken } from 'style-dictionary/types';
6
6
  * Resolution priority per token:
7
7
  *
8
8
  * 1. If `token.category` is present and matches a known Tailwind theme key
9
- * (configured in CATEGORY_TO_KEY_MAPPING), that mapping is used.
9
+ * (configured in CATEGORY_TO_V3_KEY_MAPPING), that mapping is used.
10
10
  * 2. Otherwise, the token's logical type (`getType(token)`) is used with
11
- * TOKEN_TYPE_TO_KEY_MAPPING as a fallback routing.
11
+ * TOKEN_TYPE_TO_V3_KEY_MAPPING as a fallback routing.
12
12
  * 3. If neither category nor type yields a mapping, the token is skipped
13
13
  * and a warning is logged.
14
14
  *
@@ -18,6 +18,7 @@ import type { TransformedToken } from 'style-dictionary/types';
18
18
  * @param allTokens All transformed tokens from Style-Dictionary.
19
19
  * @param ignoredTokenNameSubstrings Optional substrings; tokens whose name contains any of them are ignored entirely.
20
20
  * @returns A TailwindConfig where `theme.extend` contains the mapped tokens.
21
+ * @public
21
22
  */
22
- export declare function buildTailwindConfig(allTokens: ReadonlyArray<TransformedToken>, ignoredTokenNameSubstrings?: Array<string>): TailwindConfig;
23
- //# sourceMappingURL=buildTailwindConfig.d.ts.map
23
+ export declare function buildTailwindV3Config(allTokens: ReadonlyArray<TransformedToken>, ignoredTokenNameSubstrings?: Array<string>): TailwindConfig;
24
+ //# sourceMappingURL=buildTailwindV3Config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"buildTailwindV3Config.d.ts","sourceRoot":"","sources":["../../../../src/formats/tailwind/v3/buildTailwindV3Config.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,IAAI,cAAc,EAAE,MAAM,aAAa,CAAC;AAC5D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAoI/D;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,qBAAqB,CACjC,SAAS,EAAE,aAAa,CAAC,gBAAgB,CAAC,EAC1C,0BAA0B,GAAE,KAAK,CAAC,MAAM,CAAM,GAC/C,cAAc,CA6JhB"}
@@ -1,11 +1,12 @@
1
1
  "use strict";
2
+ /* eslint-disable max-depth */
2
3
  // #region Imports
3
4
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.buildTailwindConfig = buildTailwindConfig;
5
+ exports.buildTailwindV3Config = buildTailwindV3Config;
5
6
  const utilities_1 = require("@breadstone-infrastructure/utilities");
6
- const getType_js_1 = require("../../utilities/getType.js");
7
- const getValue_js_1 = require("../../utilities/getValue.js");
8
- const TailwindPropertyMapping_js_1 = require("./TailwindPropertyMapping.js");
7
+ const getType_js_1 = require("../../../utilities/getType.js");
8
+ const getValue_js_1 = require("../../../utilities/getValue.js");
9
+ const TailwindV3PropertyMapping_js_1 = require("./TailwindV3PropertyMapping.js");
9
10
  // #endregion
10
11
  /**
11
12
  * Normalizes a raw token value into a JS value suitable for a Tailwind config.
@@ -57,7 +58,7 @@ function deepSet(obj, path, value) {
57
58
  * @private
58
59
  */
59
60
  function validateTokenTypes(tokens, ignoredNames = []) {
60
- const supported = new Set(TailwindPropertyMapping_js_1.SUPPORTED_TOKEN_TYPES);
61
+ const supported = new Set(TailwindV3PropertyMapping_js_1.SUPPORTED_TOKEN_TYPES);
61
62
  tokens
62
63
  .filter((token) => {
63
64
  const lower = token.name.toLowerCase();
@@ -68,7 +69,7 @@ function validateTokenTypes(tokens, ignoredNames = []) {
68
69
  const rawCategory = token.category;
69
70
  if (rawCategory) {
70
71
  const categoryKey = rawCategory;
71
- if (TailwindPropertyMapping_js_1.CATEGORY_TO_KEY_MAPPING[categoryKey]) {
72
+ if (TailwindV3PropertyMapping_js_1.CATEGORY_TO_V3_KEY_MAPPING[categoryKey]) {
72
73
  return; // Category is valid, no need to check type
73
74
  }
74
75
  }
@@ -77,7 +78,7 @@ function validateTokenTypes(tokens, ignoredNames = []) {
77
78
  return;
78
79
  }
79
80
  if (!supported.has(type)) {
80
- console.warn(`${(0, utilities_1.symbol)('warning')} ${(0, utilities_1.yellow)(`Type "${type}" is not supported in Tailwind builder for token "${token.path.join('.')}:${token.name}".`)}`);
81
+ console.warn(`${(0, utilities_1.symbol)('warning')} ${(0, utilities_1.yellow)(`Type "${type}" is not supported in Tailwind v3 builder for token "${token.path.join('.')}:${token.name}".`)}`);
81
82
  }
82
83
  });
83
84
  }
@@ -85,11 +86,11 @@ function validateTokenTypes(tokens, ignoredNames = []) {
85
86
  * Resolves the mapping for a token in three steps:
86
87
  *
87
88
  * 1. If a `category` is present and mapped, use that mapping.
88
- * 2. Otherwise, fall back to token type via `getType` and `TOKEN_TYPE_TO_KEY_MAPPING`.
89
+ * 2. Otherwise, fall back to token type via `getType` and `TOKEN_TYPE_TO_V3_KEY_MAPPING`.
89
90
  * 3. If neither yields a mapping, return undefined (caller will log and skip).
90
91
  *
91
92
  * @param token The token to resolve mapping for.
92
- * @returns An IKeyMapping when resolvable, otherwise undefined.
93
+ * @returns An IV3KeyMapping when resolvable, otherwise undefined.
93
94
  * @private
94
95
  */
95
96
  function resolveMappingForToken(token) {
@@ -97,7 +98,7 @@ function resolveMappingForToken(token) {
97
98
  // 1. Category-based mapping (if present)
98
99
  if (rawCategory) {
99
100
  const categoryKey = rawCategory;
100
- const byCategory = TailwindPropertyMapping_js_1.CATEGORY_TO_KEY_MAPPING[categoryKey];
101
+ const byCategory = TailwindV3PropertyMapping_js_1.CATEGORY_TO_V3_KEY_MAPPING[categoryKey];
101
102
  if (byCategory) {
102
103
  return byCategory;
103
104
  }
@@ -106,9 +107,9 @@ function resolveMappingForToken(token) {
106
107
  }
107
108
  // 2. Type-based mapping
108
109
  // Try multiple type properties: token.type (set by transforms), token.$type (original), token.original.type, token.original.$type
109
- const type = (token.type ?? token.$type ?? token.original?.type ?? token.original?.$type);
110
+ const type = (token.type ?? token.$type ?? token.original.type ?? token.original.$type);
110
111
  if (type) {
111
- const byType = TailwindPropertyMapping_js_1.TOKEN_TYPE_TO_KEY_MAPPING[type];
112
+ const byType = TailwindV3PropertyMapping_js_1.TOKEN_TYPE_TO_V3_KEY_MAPPING[type];
112
113
  if (byType) {
113
114
  return byType;
114
115
  }
@@ -122,9 +123,9 @@ function resolveMappingForToken(token) {
122
123
  * Resolution priority per token:
123
124
  *
124
125
  * 1. If `token.category` is present and matches a known Tailwind theme key
125
- * (configured in CATEGORY_TO_KEY_MAPPING), that mapping is used.
126
+ * (configured in CATEGORY_TO_V3_KEY_MAPPING), that mapping is used.
126
127
  * 2. Otherwise, the token's logical type (`getType(token)`) is used with
127
- * TOKEN_TYPE_TO_KEY_MAPPING as a fallback routing.
128
+ * TOKEN_TYPE_TO_V3_KEY_MAPPING as a fallback routing.
128
129
  * 3. If neither category nor type yields a mapping, the token is skipped
129
130
  * and a warning is logged.
130
131
  *
@@ -134,8 +135,9 @@ function resolveMappingForToken(token) {
134
135
  * @param allTokens All transformed tokens from Style-Dictionary.
135
136
  * @param ignoredTokenNameSubstrings Optional substrings; tokens whose name contains any of them are ignored entirely.
136
137
  * @returns A TailwindConfig where `theme.extend` contains the mapped tokens.
138
+ * @public
137
139
  */
138
- function buildTailwindConfig(allTokens, ignoredTokenNameSubstrings = []) {
140
+ function buildTailwindV3Config(allTokens, ignoredTokenNameSubstrings = []) {
139
141
  // Pre-validation of token types (non-blocking, only logs)
140
142
  validateTokenTypes(allTokens, ignoredTokenNameSubstrings);
141
143
  const config = { theme: { extend: {} } };
@@ -159,7 +161,7 @@ function buildTailwindConfig(allTokens, ignoredTokenNameSubstrings = []) {
159
161
  }
160
162
  const mapping = resolveMappingForToken(token);
161
163
  if (!mapping) {
162
- console.warn(`${(0, utilities_1.symbol)('warning')} ${(0, utilities_1.yellow)(`Token "${token.path.join('.')}:${token.name}" cannot be mapped to Tailwind (no valid category or type mapping). Skipping.`)}`);
164
+ console.warn(`${(0, utilities_1.symbol)('warning')} ${(0, utilities_1.yellow)(`Token "${token.path.join('.')}:${token.name}" cannot be mapped to Tailwind v3 (no valid category or type mapping). Skipping.`)}`);
163
165
  continue;
164
166
  }
165
167
  const { themeKey, strategy } = mapping;
@@ -277,4 +279,4 @@ function buildTailwindConfig(allTokens, ignoredTokenNameSubstrings = []) {
277
279
  }
278
280
  return config;
279
281
  }
280
- //# sourceMappingURL=buildTailwindConfig.js.map
282
+ //# sourceMappingURL=buildTailwindV3Config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"buildTailwindV3Config.js","sourceRoot":"","sources":["../../../../src/formats/tailwind/v3/buildTailwindV3Config.ts"],"names":[],"mappings":";AAAA,8BAA8B;AAC9B,kBAAkB;;AA2JlB,sDAgKC;AAvTD,oEAAsE;AACtE,8DAAwD;AACxD,gEAA0D;AAE1D,iFAA8K;AAE9K,aAAa;AAEb;;;;;;GAMG;AACH,SAAS,cAAc,CAAC,KAAc;IAClC,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QACvB,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;IACvC,CAAC;IACD,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QACzD,OAAO,KAAK,CAAC;IACjB,CAAC;IACD,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC;A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;oBAClC,+EAA+E;oBAC/E,6FAA6F;oBAC7F,KAAK,MAAM,CAAC,QAAQ,EAAE,UAAU,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC;wBACvD,IAAI,OAAO,UAAU,KAAK,QAAQ,IAAI,UAAU,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC;4BACtF,MAAM,QAAQ,GAAG,UAAqC,CAAC;4BACvD,MAAM,SAAS,GAAG,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;4BACxC,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC,IAAI,SAAS,CAAC,CAAC,CAAC,KAAK,SAAS,EAAE,CAAC;gCACvD,GAAG,CAAC,QAAQ,CAAC,GAAG,EAAE,OAAO,EAAE,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;4BACxD,CAAC;wBACL,CAAC;oBACL,CAAC;gBACL,CAAC;YACL,CAAC;QACL,CAAC;IACL,CAAC;IAED,OAAO,MAAM,CAAC;AAClB,CAAC"}
@@ -0,0 +1,5 @@
1
+ export * from './tailwindV3Format.js';
2
+ export * from './buildTailwindV3Config.js';
3
+ export * from './DesignTokenType.js';
4
+ export * from './TailwindV3PropertyMapping.js';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/formats/tailwind/v3/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,gCAAgC,CAAC"}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./tailwindV3Format.js"), exports);
18
+ __exportStar(require("./buildTailwindV3Config.js"), exports);
19
+ __exportStar(require("./DesignTokenType.js"), exports);
20
+ __exportStar(require("./TailwindV3PropertyMapping.js"), exports);
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/formats/tailwind/v3/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,6DAA2C;AAC3C,uDAAqC;AACrC,iEAA+C"}
@@ -0,0 +1,32 @@
1
+ import type { Format } from 'style-dictionary/types';
2
+ /**
3
+ * Style-Dictionary format that outputs a CommonJS `tailwind.config.js`,
4
+ * exporting the theme configuration as `module.exports = …`.
5
+ *
6
+ * @public
7
+ */
8
+ export declare const tailwindV3PresetFormat: Format;
9
+ /**
10
+ * Style-Dictionary format that generates a Tailwind v3 plugin module.
11
+ * Exports a proper Tailwind CSS plugin that can be added to the plugins array
12
+ * in tailwind.config.js.
13
+ *
14
+ * @public
15
+ */
16
+ export declare const tailwindV3PluginFormat: Format;
17
+ /**
18
+ * Style-Dictionary format that outputs a TypeScript Tailwind v3 preset,
19
+ * exporting the theme configuration with type annotations.
20
+ *
21
+ * @public
22
+ */
23
+ export declare const tailwindV3PresetTsFormat: Format;
24
+ /**
25
+ * Style-Dictionary format that generates a TypeScript Tailwind v3 plugin module.
26
+ * Exports a proper Tailwind CSS plugin that can be added to the plugins array
27
+ * in tailwind.config.ts.
28
+ *
29
+ * @public
30
+ */
31
+ export declare const tailwindV3PluginTsFormat: Format;
32
+ //# sourceMappingURL=tailwindV3Format.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tailwindV3Format.d.ts","sourceRoot":"","sources":["../../../../src/formats/tailwind/v3/tailwindV3Format.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAsB,MAAM,EAAgB,MAAM,wBAAwB,CAAC;AAKvF;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,EAAE,MAgBpC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB,EAAE,MA8BpC,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB,EAAE,MAuBtC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB,EAAE,MAgCtC,CAAC"}