tailwind-to-style 3.1.2 → 3.2.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.
@@ -0,0 +1,26 @@
1
+ // Type definitions for tailwind-to-style/twsx
2
+ // Tree-shakeable import: import { twsx } from 'tailwind-to-style/twsx'
3
+
4
+ export interface StyleObject {
5
+ [selector: string]: string | StyleObject | Array<string | StyleObject>;
6
+ }
7
+
8
+ export interface TwsxOptions {
9
+ /** Whether to auto-inject CSS into the DOM (default: true in browser, false in SSR) */
10
+ inject?: boolean;
11
+ /** Enable minified output */
12
+ minify?: boolean;
13
+ /** Output format */
14
+ format?: 'pretty' | 'minified';
15
+ [key: string]: any;
16
+ }
17
+
18
+ /**
19
+ * Generates CSS string from style object with SCSS-like syntax
20
+ */
21
+ export function twsx(obj: StyleObject, options?: TwsxOptions): string;
22
+
23
+ /**
24
+ * Debounced version of twsx function (100ms delay)
25
+ */
26
+ export const debouncedTwsx: typeof twsx;