@terrazzo/plugin-sass 0.10.3 → 2.0.0-alpha.0
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 +11 -0
- package/dist/index.d.ts +2 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +358 -400
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @terrazzo/plugin-sass
|
|
2
2
|
|
|
3
|
+
## 0.10.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#551](https://github.com/terrazzoapp/terrazzo/pull/551) [`6096445`](https://github.com/terrazzoapp/terrazzo/commit/60964453dc0ba6cc3740b202c5af27a8b2c38edc) Thanks [@nlemoine](https://github.com/nlemoine)! - Fix token Sass function
|
|
8
|
+
|
|
9
|
+
- [#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
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [[`936789e`](https://github.com/terrazzoapp/terrazzo/commit/936789eb0604c5d8adfa256f16322d11fd99da6a)]:
|
|
12
|
+
- @terrazzo/plugin-css@0.10.4
|
|
13
|
+
|
|
3
14
|
## 0.10.3
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -8,15 +8,12 @@ interface SassPluginOptions {
|
|
|
8
8
|
/** Glob patterns to exclude tokens from output */
|
|
9
9
|
exclude?: CSSPluginOptions['exclude'];
|
|
10
10
|
}
|
|
11
|
-
declare const FILE_HEADER = "////\n/// Autogenerated by \u26CB Terrazzo. DO NOT EDIT!\n////\n\n@use \"sass:list\";\n@use \"sass:map\";";
|
|
12
|
-
declare const MIXIN_TOKEN = "@function token($tokenName) {\n @if map.has-key($__token-values, $tokenName) == false {\n @error 'No token named \"#{$tokenName}\"';\n }\n $_token: map.get($__token-values, $tokenName);\n @if map.has-key($_token, \"__tz-error\") {\n @error map.get($_token, \"__tz-error\");\n }\n @return
|
|
11
|
+
declare const FILE_HEADER = "////\n/// Autogenerated by \u26CB Terrazzo. DO NOT EDIT!\n////\n\n@use \"sass:list\";\n@use \"sass:map\";\n@use \"sass:meta\";";
|
|
12
|
+
declare const MIXIN_TOKEN = "@function token($tokenName) {\n @if map.has-key($__token-values, $tokenName) == false {\n @error 'No token named \"#{$tokenName}\"';\n }\n $_token: map.get($__token-values, $tokenName);\n @if meta.type-of($_token) == map and map.has-key($_token, \"__tz-error\") {\n @error map.get($_token, \"__tz-error\");\n }\n\n @return $_token;\n}";
|
|
13
13
|
declare const MIXIN_TYPOGRAPHY = "@mixin typography($tokenName, $modeName: \".\") {\n @if map.has-key($__token-typography-mixins, $tokenName) == false {\n @error 'No typography mixin named \"#{$tokenName}\"';\n }\n $_mixin: map.get($__token-typography-mixins, $tokenName);\n $_properties: map.get($_mixin, \".\");\n @if map.has-key($_mixin) {\n $_properties: map.get($_mixin);\n }\n @each $_property, $_value in $_properties {\n #{$_property}: #{$_value};\n }\n}";
|
|
14
|
-
//# sourceMappingURL=lib.d.ts.map
|
|
15
14
|
//#endregion
|
|
16
15
|
//#region src/index.d.ts
|
|
17
16
|
declare function pluginSass(options?: SassPluginOptions): Plugin;
|
|
18
|
-
//# sourceMappingURL=index.d.ts.map
|
|
19
|
-
|
|
20
17
|
//#endregion
|
|
21
18
|
export { FILE_HEADER, MIXIN_TOKEN, MIXIN_TYPOGRAPHY, SassPluginOptions, pluginSass as default };
|
|
22
19
|
//# 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/index.ts"],"sourcesContent":[],"mappings":";;;;UAEiB,iBAAA;;aAEJ;EAFI;EAAiB,OAAA,CAAA,EAItB,gBAJsB,CAAA,SAAA,CAAA;;AAItB,cAGC,WAAA,GAHD,
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/lib.ts","../src/index.ts"],"sourcesContent":[],"mappings":";;;;UAEiB,iBAAA;;aAEJ;EAFI;EAAiB,OAAA,CAAA,EAItB,gBAJsB,CAAA,SAAA,CAAA;;AAItB,cAGC,WAAA,GAHD,gIAAA;AAAgB,cAWf,WAAA,GAXe,4VAAA;AAGf,cAoBA,gBAAA,GApBW,+bAAA;;;iBCHA,UAAA,WAAqB,oBAAoB"}
|