@cwcss/crosswind 0.2.0 → 0.2.2

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/config.d.ts CHANGED
@@ -2,4 +2,4 @@ import type { CrosswindConfig } from './types';
2
2
  export declare function getConfig(): Promise<CrosswindConfig>;
3
3
  export declare const defaultConfig: CrosswindConfig;
4
4
  // For backwards compatibility - synchronous access with default fallback
5
- export declare const config: CrosswindConfig;
5
+ export declare const config: CrosswindConfig;
@@ -1,31 +1,11 @@
1
- import type { CSSRule, CrosswindConfig, ParsedClass } from './types';
2
- import type { UtilityRule } from './rules';
1
+ import type { CrosswindConfig } from './types';
3
2
  /**
4
3
  * Generates CSS rules from parsed utility classes
5
4
  */
6
5
  export declare class CSSGenerator {
7
- private rules: Map<string, CSSRule[]>;
8
- private classCache: Set<string>;
9
- private blocklistRegexCache: RegExp[];
10
- private blocklistExact: Set<string>;
11
- private selectorCache: Map<string, string>;
12
- private mediaQueryCache: Map<string, string | undefined>;
13
- private ruleCache: Map<string, UtilityRule[]>;
14
- private variantEnabled: Record<string, boolean>;
15
- private screenBreakpoints: Map<string, string>;
16
- private noMatchCache: Set<string>;
17
- private extendColors: Record<string, string | Record<string, string>> | null;
18
- private config: CrosswindConfig;
19
6
  constructor(config: CrosswindConfig);
20
- private buildRuleLookup(): void;
7
+ generateBatch(classNames: string[]): void;
21
8
  generate(className: string): void;
22
- private addRule(parsed: ParsedClass, properties: Record<string, string>, childSelector?: string, pseudoElement?: string): void;
23
- private buildSelector(parsed: ParsedClass): string;
24
- private getMediaQuery(parsed: ParsedClass): string | undefined;
25
- private escapeSelector(className: string): string;
26
- toCSS(includePreflight?: any, minify?: any): string;
27
- private rulesToCSS(rules: CSSRule[], minify: boolean): string;
28
- private groupRulesBySelector(rules: CSSRule[]): Map<string, Map<string, string>>;
29
- private generateCSSVariables(): string | null;
9
+ toCSS(includePreflight?: boolean, minify?: boolean): string;
30
10
  reset(): void;
31
- }
11
+ }
package/dist/index.d.ts CHANGED
@@ -7,4 +7,4 @@ export * from './preflight';
7
7
  export * from './preflight-forms';
8
8
  export * from './rules';
9
9
  export * from './scanner';
10
- export * from './types';
10
+ export * from './types';