@stacksjs/ts-css 0.3.1 → 0.3.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.
@@ -1,8 +1,8 @@
1
- import type { TsCssConfig } from './types';
1
+ import type { CssConfig } from './types';
2
2
  /**
3
3
  * Build CSS from content patterns
4
4
  */
5
- export declare function build(config: TsCssConfig): Promise<BuildResult>;
5
+ export declare function build(config: CssConfig): Promise<BuildResult>;
6
6
  /**
7
7
  * Write CSS to output file
8
8
  */
@@ -14,7 +14,7 @@ export declare function writeTransformedFiles(transformedFiles: Map<string, stri
14
14
  /**
15
15
  * Build and write CSS to output file
16
16
  */
17
- export declare function buildAndWrite(config: TsCssConfig): Promise<BuildResult>;
17
+ export declare function buildAndWrite(config: CssConfig): Promise<BuildResult>;
18
18
  export declare interface BuildResult {
19
19
  css: string
20
20
  classes: Set<string>
@@ -1,5 +1,5 @@
1
- import type { TsCssConfig } from './types';
2
- export declare function getConfig(): Promise<TsCssConfig>;
3
- export declare const defaultConfig: TsCssConfig;
1
+ import type { CssConfig } from './types';
2
+ export declare function getConfig(): Promise<CssConfig>;
3
+ export declare const defaultConfig: CssConfig;
4
4
  // For backwards compatibility - synchronous access with default fallback
5
- export declare const config: TsCssConfig;
5
+ export declare const config: CssConfig;
@@ -1,11 +1,11 @@
1
- import type { TsCssConfig } from './types';
1
+ import type { CssConfig } from './types';
2
2
  // Exported for tests: ranking is pure and selector-driven, and asserting it
3
3
  // through generated CSS would need an @iconify-json collection installed —
4
4
  // without one an icon emits nothing, `indexOf` returns -1, and an ordering
5
5
  // assertion passes for the wrong reason.
6
6
  export declare function computeUtilityRank(selector: string): number;
7
7
  export declare class CSSGenerator {
8
- constructor(config: TsCssConfig);
8
+ constructor(config: CssConfig);
9
9
  generateBatch(classNames: string[]): void;
10
10
  generate(className: string): void;
11
11
  generateCompiledClass(className: string, utilities: string[]): void;