@terrazzo/plugin-css 0.10.2 → 0.10.4

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 CHANGED
@@ -1,5 +1,20 @@
1
1
  # @terrazzo/plugin-css
2
2
 
3
+ ## 0.10.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#550](https://github.com/terrazzoapp/terrazzo/pull/550) [`936789e`](https://github.com/terrazzoapp/terrazzo/commit/936789eb0604c5d8adfa256f16322d11fd99da6a) Thanks [@nlemoine](https://github.com/nlemoine)! - Add support for color-scheme property
8
+
9
+ ## 0.10.3
10
+
11
+ ### Patch Changes
12
+
13
+ - [#533](https://github.com/terrazzoapp/terrazzo/pull/533) [`e1a612f`](https://github.com/terrazzoapp/terrazzo/commit/e1a612f2297662b1dfd4ca517c83b9679960a5cf) Thanks [@pvignau](https://github.com/pvignau)! - Auto-install CSS plugin with Sass during init
14
+
15
+ - Updated dependencies [[`6141d4f`](https://github.com/terrazzoapp/terrazzo/commit/6141d4f5a9790be73b314c517d9da010f237814e)]:
16
+ - @terrazzo/parser@0.10.3
17
+
3
18
  ## 0.10.2
4
19
 
5
20
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -36,6 +36,10 @@ interface CSSPluginOptions {
36
36
  * @default ":root"
37
37
  */
38
38
  baseSelector?: string;
39
+ /**
40
+ * Set the color-scheme CSS property for the base selector (e.g.: "light", "dark", "light dark")
41
+ */
42
+ baseScheme?: string;
39
43
  }
40
44
  interface ModeSelector {
41
45
  /** The name of the mode to match */
@@ -44,6 +48,8 @@ interface ModeSelector {
44
48
  tokens?: string[];
45
49
  /** Provide CSS selectors to generate. (e.g.: `["@media (prefers-color-scheme: dark)", "[data-color-theme='dark']"]` ) */
46
50
  selectors: string[];
51
+ /** Set the color-scheme CSS property for this mode (e.g.: "light", "dark", "light dark") */
52
+ scheme?: string;
47
53
  }
48
54
  interface CSSRuleDeclaration {
49
55
  value: string;
@@ -60,7 +66,6 @@ interface GetRuleOptions {
60
66
  /** Combine a selector with parent selectors (e.g. if adding a @media-query within another selector list) */
61
67
  parentSelectors?: string[];
62
68
  }
63
- //# sourceMappingURL=lib.d.ts.map
64
69
  //#endregion
65
70
  //#region src/build/index.d.ts
66
71
  interface BuildFormatOptions {
@@ -69,12 +74,11 @@ interface BuildFormatOptions {
69
74
  modeSelectors: CSSPluginOptions['modeSelectors'];
70
75
  utility: CSSPluginOptions['utility'];
71
76
  baseSelector: string;
77
+ baseScheme: CSSPluginOptions['baseScheme'];
72
78
  }
73
79
  //#endregion
74
80
  //#region src/index.d.ts
75
81
  declare function cssPlugin(options?: CSSPluginOptions): Plugin;
76
- //# sourceMappingURL=index.d.ts.map
77
-
78
82
  //#endregion
79
83
  export { BuildFormatOptions, CSSPluginOptions, CSSRule, CSSRuleDeclaration, FILE_PREFIX, FORMAT_ID, GetRuleOptions, ModeSelector, UtilityCSSGroup, UtilityCSSPrefix, cssPlugin as default, printRules };
80
84
  //# sourceMappingURL=index.d.ts.map
@@ -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,CAAA,EAAY,CAAA,KAAA,EAtBJ,eAsBI,EAAA,GAAA,MAAA;EAYZ;EAIA,SAAA,CAAO,EAAA,CAAA,KAAA,EApCF,eAoCE,EAAA,IAAA,EAAA,MAAA,EAAA,GApCgC,gBAoChC,CAAA,OAAA,CAAA;EAAA;EAAA,OAGO,CAAA,EArCnB,MAqCmB,CArCZ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