@terrazzo/plugin-tailwind 0.0.3 → 0.1.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 CHANGED
@@ -1,5 +1,29 @@
1
1
  # @terrazzo/plugin-tailwind
2
2
 
3
+ ## 0.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#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 🚀
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [[`63f91e6`](https://github.com/terrazzoapp/terrazzo/commit/63f91e6eee1bec5cf7fae3c1bffdde40a5604ec6)]:
12
+ - @terrazzo/token-tools@0.8.0
13
+ - @terrazzo/plugin-css@0.8.0
14
+ - @terrazzo/cli@0.8.0
15
+
16
+ ## 0.0.4
17
+
18
+ ### Patch Changes
19
+
20
+ - [#485](https://github.com/terrazzoapp/terrazzo/pull/485) [`84335da`](https://github.com/terrazzoapp/terrazzo/commit/84335da86adbe4cf112b91d8d9bfa1301c5492d4) Thanks [@drwpow](https://github.com/drwpow)! - Add transform API to allow dynamic parsing / transformation of tokens on load
21
+
22
+ - Updated dependencies [[`84335da`](https://github.com/terrazzoapp/terrazzo/commit/84335da86adbe4cf112b91d8d9bfa1301c5492d4)]:
23
+ - @terrazzo/cli@0.7.4
24
+ - @terrazzo/plugin-css@0.7.4
25
+ - @terrazzo/token-tools@0.7.4
26
+
3
27
  ## 0.0.3
4
28
 
5
29
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -1,6 +1,32 @@
1
- import type { Plugin } from '@terrazzo/parser';
2
- import { type TailwindPluginOptions } from './lib.js';
3
- export declare const FORMAT_ID = "tailwind";
4
- export * from './lib.js';
5
- export default function pluginTailwind(options: TailwindPluginOptions): Plugin;
1
+ import { Plugin } from "@terrazzo/parser";
2
+
3
+ //#region src/lib.d.ts
4
+ interface TailwindPluginOptions {
5
+ /**
6
+ * Filename to output.
7
+ * @default "tailwind-theme.css"
8
+ */
9
+ filename?: string;
10
+ /** @see https://tailwindcss.com/docs/theme */
11
+ theme: Record<string, any>;
12
+ /** Array of mapping variants to DTCG modes. */
13
+ modeVariants?: {
14
+ variant: string;
15
+ mode: string;
16
+ }[];
17
+ }
18
+ /** Flatten an arbitrarily-nested object */
19
+ declare function flattenThemeObj(themeObj: Record<string, unknown>): {
20
+ path: string[];
21
+ value: string | string[];
22
+ }[];
23
+ //# sourceMappingURL=lib.d.ts.map
24
+ //#endregion
25
+ //#region src/index.d.ts
26
+ declare const FORMAT_ID = "tailwind";
27
+ declare function pluginTailwind(options: TailwindPluginOptions): Plugin;
28
+ //# sourceMappingURL=index.d.ts.map
29
+
30
+ //#endregion
31
+ export { FORMAT_ID, TailwindPluginOptions, pluginTailwind as default, flattenThemeObj };
6
32
  //# 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,EAAE,KAAK,qBAAqB,EAAmB,MAAM,UAAU,CAAC;AAEvE,eAAO,MAAM,SAAS,aAAa,CAAC;AAEpC,cAAc,UAAU,CAAC;AAEzB,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,OAAO,EAAE,qBAAqB,GAAG,MAAM,CAgE7E"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../src/lib.ts","../src/index.ts"],"sourcesContent":[],"mappings":";;;UAAiB,qBAAA;;;AAAjB;AAaA;;;SANS;ECHI;EAIW,YAAA,CAAA,EAAA;IAAc,OAAA,EAAA,MAAA;IAAU,IAAA,EAAA,MAAA;EAAqB,CAAA,EAAG;AAAM;;iBDK9D,eAAA,WAA0B;;;;;;;cCT7B,SAAA;ADSG,iBCLQ,cAAA,CDKwB,OAAA,ECLA,qBDKA,CAAA,ECLwB,MDKxB"}