@terrazzo/plugin-sass 0.7.4 → 0.8.1

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,27 @@
1
1
  # @terrazzo/plugin-sass
2
2
 
3
+ ## 0.8.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`5edf1fd`](https://github.com/terrazzoapp/terrazzo/commit/5edf1fde42cd53b5883eefcbe849dc5749cfaa8f)]:
8
+ - @terrazzo/cli@0.8.1
9
+ - @terrazzo/token-tools@0.8.1
10
+ - @terrazzo/plugin-css@0.8.1
11
+
12
+ ## 0.8.0
13
+
14
+ ### Minor Changes
15
+
16
+ - [#489](https://github.com/terrazzoapp/terrazzo/pull/489) [`63f91e6`](https://github.com/terrazzoapp/terrazzo/commit/63f91e6eee1bec5cf7fae3c1bffdde40a5604ec6) Thanks [@drwpow](https://github.com/drwpow)! - Use Rolldown for packaging 🚀
17
+
18
+ ### Patch Changes
19
+
20
+ - Updated dependencies [[`63f91e6`](https://github.com/terrazzoapp/terrazzo/commit/63f91e6eee1bec5cf7fae3c1bffdde40a5604ec6)]:
21
+ - @terrazzo/token-tools@0.8.0
22
+ - @terrazzo/plugin-css@0.8.0
23
+ - @terrazzo/cli@0.8.0
24
+
3
25
  ## 0.7.4
4
26
 
5
27
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -1,5 +1,22 @@
1
- import type { Plugin } from '@terrazzo/parser';
2
- import type { SassPluginOptions } from './lib.js';
3
- export * from './lib.js';
4
- export default function pluginSass(options?: SassPluginOptions): Plugin;
1
+ import { Plugin } from "@terrazzo/parser";
2
+ import { CSSPluginOptions } from "@terrazzo/plugin-css";
3
+
4
+ //#region src/lib.d.ts
5
+ interface SassPluginOptions {
6
+ /** Where to output CSS */
7
+ filename?: CSSPluginOptions['filename'];
8
+ /** Glob patterns to exclude tokens from output */
9
+ exclude?: CSSPluginOptions['exclude'];
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 map.get($_token);\n}";
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
+ //#endregion
16
+ //#region src/index.d.ts
17
+ declare function pluginSass(options?: SassPluginOptions): Plugin;
18
+ //# sourceMappingURL=index.d.ts.map
19
+
20
+ //#endregion
21
+ export { FILE_HEADER, MIXIN_TOKEN, MIXIN_TYPOGRAPHY, SassPluginOptions, pluginSass as default };
5
22
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE/C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAElD,cAAc,UAAU,CAAC;AAEzB,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,OAAO,CAAC,EAAE,iBAAiB,GAAG,MAAM,CAoBtE"}
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,2GAAA;AAAgB,cAUf,WAAA,GAVe,kUAAA;AAGf,cAkBA,gBAAA,GAlBW,+bAAA;AAOxB;;;iBCVwB,UAAA,WAAqB,oBAAoB;ADJjE"}