@terrazzo/plugin-tailwind 0.0.4 → 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 +13 -0
- package/dist/index.d.ts +31 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1776 -86
- package/dist/index.js.map +1 -1
- package/package.json +16 -12
- package/rolldown.config.ts +14 -0
- package/dist/lib.d.ts +0 -20
- package/dist/lib.d.ts.map +0 -1
- package/dist/lib.js +0 -21
- package/dist/lib.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
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
|
+
|
|
3
16
|
## 0.0.4
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,32 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","
|
|
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"}
|