@terrazzo/plugin-css 0.10.0 → 0.10.2
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 +17 -0
- package/dist/index.d.ts +6 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1592 -332
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @terrazzo/plugin-css
|
|
2
2
|
|
|
3
|
+
## 0.10.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#521](https://github.com/terrazzoapp/terrazzo/pull/521) [`f0d909c`](https://github.com/terrazzoapp/terrazzo/commit/f0d909c78e5b41749437d52df2197ab85ebeea33) Thanks [@ciampo](https://github.com/ciampo)! - Add token $description as CSS comments
|
|
8
|
+
|
|
9
|
+
## 0.10.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#510](https://github.com/terrazzoapp/terrazzo/pull/510) [`4493731`](https://github.com/terrazzoapp/terrazzo/commit/4493731a4d458af45a1bb4c56e3fe0d42d66aeef) Thanks [@drwpow](https://github.com/drwpow)! - Reduce decimal places in color output.
|
|
14
|
+
- [plugin-css] ⚠️ Minor breaking change: decimals have been simplified in output. To restore original behavior, pass in `colorDepth: 'unlimited'`
|
|
15
|
+
|
|
16
|
+
- Updated dependencies [[`4493731`](https://github.com/terrazzoapp/terrazzo/commit/4493731a4d458af45a1bb4c56e3fe0d42d66aeef)]:
|
|
17
|
+
- @terrazzo/token-tools@0.10.1
|
|
18
|
+
- @terrazzo/cli@0.10.1
|
|
19
|
+
|
|
3
20
|
## 0.10.0
|
|
4
21
|
|
|
5
22
|
### Minor Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -45,10 +45,14 @@ interface ModeSelector {
|
|
|
45
45
|
/** Provide CSS selectors to generate. (e.g.: `["@media (prefers-color-scheme: dark)", "[data-color-theme='dark']"]` ) */
|
|
46
46
|
selectors: string[];
|
|
47
47
|
}
|
|
48
|
+
interface CSSRuleDeclaration {
|
|
49
|
+
value: string;
|
|
50
|
+
description?: string;
|
|
51
|
+
}
|
|
48
52
|
interface CSSRule {
|
|
49
53
|
selectors: string[];
|
|
50
54
|
nestedQuery?: string;
|
|
51
|
-
declarations: Record<string,
|
|
55
|
+
declarations: Record<string, CSSRuleDeclaration>;
|
|
52
56
|
}
|
|
53
57
|
/** Convert CSSRules into a formatted, indented CSS string */
|
|
54
58
|
declare function printRules(rules: CSSRule[]): string;
|
|
@@ -72,5 +76,5 @@ declare function cssPlugin(options?: CSSPluginOptions): Plugin;
|
|
|
72
76
|
//# sourceMappingURL=index.d.ts.map
|
|
73
77
|
|
|
74
78
|
//#endregion
|
|
75
|
-
export { BuildFormatOptions, CSSPluginOptions, CSSRule, FILE_PREFIX, FORMAT_ID, GetRuleOptions, ModeSelector, UtilityCSSGroup, UtilityCSSPrefix, cssPlugin as default, printRules };
|
|
79
|
+
export { BuildFormatOptions, CSSPluginOptions, CSSRule, CSSRuleDeclaration, FILE_PREFIX, FORMAT_ID, GetRuleOptions, ModeSelector, UtilityCSSGroup, UtilityCSSPrefix, cssPlugin as default, printRules };
|
|
76
80
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/lib.ts","../src/build/index.ts","../src/index.ts"],"sourcesContent":[],"mappings":";;;KAEY,eAAA;KAEA,gBAAA;AAFA,cAIC,SAAA,GAJc,KAAA;AAEf,cAIC,WAAA,GAJe,uJAAA;AAEf,UAMI,gBAAA,CANK;EAET;AAIb;;;EAS8B,QAEL,CAAA,EAAA,MAAA;EAAe;EAEH,OAAmB,CAAA,EAAA,MAAA,EAAA;EAAgB;EAEtC,aAAtB,CAAA,EANM,YAMN,EAAA;EAAM;EAkBD,YAAA,CA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