tailwind-to-style 2.7.5 → 2.7.7

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/dist/index.d.ts CHANGED
@@ -7,18 +7,6 @@ export interface TwsxOptions {
7
7
  [key: string]: any;
8
8
  }
9
9
 
10
- export interface GlobalConfig {
11
- theme: {
12
- extend: {
13
- colors: Record<string, string | Record<string, string>>;
14
- [key: string]: any;
15
- };
16
- screens: Record<string, string>;
17
- [key: string]: any;
18
- };
19
- inject: boolean;
20
- }
21
-
22
10
  export interface PerformanceStats {
23
11
  cacheStats: {
24
12
  cssResolution: number;
@@ -56,37 +44,24 @@ export function tws(classNames: string, convertToJson?: boolean): string | Recor
56
44
  * Generates CSS string from style object with SCSS-like syntax
57
45
  * Supports nested selectors, state variants, responsive variants, and @css directives
58
46
  * @param obj - Object with SCSS-like style format
59
- * @param options - Additional options, merges with global config
47
+ * @param options - Additional options
60
48
  * @returns Generated CSS string
61
49
  */
62
50
  export function twsx(obj: StyleObject, options?: TwsxOptions): string;
63
51
 
64
- /**
65
- * Set global configuration for both tws and twsx
66
- * @param config - Global configuration object
67
- * @returns Current global configuration
68
- */
69
- export function setConfig(config: Partial<GlobalConfig>): GlobalConfig;
70
-
71
- /**
72
- * Get current global configuration for both tws and twsx
73
- * @returns Current global configuration
74
- */
75
- export function getConfig(): GlobalConfig;
76
-
77
- /**
78
- * Reset global configuration to default
79
- * @returns Default configuration
80
- */
81
- export function resetConfig(): GlobalConfig;
82
-
83
52
  /**
84
53
  * Debounced version of tws function with performance monitoring
54
+ * @param classNames - String containing Tailwind classes to convert
55
+ * @param convertToJson - If true, returns JSON object, if false returns CSS string
56
+ * @returns CSS inline string or style JSON object
85
57
  */
86
58
  export const debouncedTws: typeof tws;
87
59
 
88
60
  /**
89
61
  * Debounced version of twsx function with performance monitoring
62
+ * @param obj - Object with SCSS-like style format
63
+ * @param options - Additional options
64
+ * @returns Generated CSS string
90
65
  */
91
66
  export const debouncedTwsx: typeof twsx;
92
67