@animus-ui/vite-plugin 0.1.0-next.v7 → 0.1.1-beta.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,13 +0,0 @@
1
- /**
2
- * Standalone script executed via `bun run` to resolve global styles.
3
- *
4
- * Usage: bun run resolve-global-styles.ts <system-path> <theme-json> <output-file>
5
- *
6
- * Imports the system module, extracts globalStyles from .serialize(),
7
- * resolves prop shorthand (bg → background-color, etc.) using the full
8
- * prop config + theme + transforms, and writes the resolved CSS to output.
9
- *
10
- * @keyframes blocks are serialized as raw CSS (no prop resolution needed).
11
- */
12
- export {};
13
- //# sourceMappingURL=resolve-global-styles.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"resolve-global-styles.d.ts","sourceRoot":"","sources":["../src/resolve-global-styles.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG"}
@@ -1,14 +0,0 @@
1
- /**
2
- * Standalone script executed via `bun run` to apply transform placeholders.
3
- *
4
- * Usage: bun run resolve-transforms.ts <input-file> <output-file> [config-path]
5
- *
6
- * Reads CSS from input file containing __TRANSFORM__name__rawValue__ placeholders,
7
- * loads transform functions from @animus-ui/core (and optionally a custom config),
8
- * applies them, and writes the resolved CSS to the output file.
9
- *
10
- * When config-path is provided, transforms from that module are loaded IN ADDITION
11
- * to core transforms. Custom transforms take precedence on name collisions.
12
- */
13
- export {};
14
- //# sourceMappingURL=resolve-transforms.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"resolve-transforms.d.ts","sourceRoot":"","sources":["../src/resolve-transforms.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG"}
@@ -1,32 +0,0 @@
1
- /**
2
- * Evaluate a theme object that has already been loaded/imported.
3
- *
4
- * This is the pure logic: takes a theme object, flattens scales, builds variable CSS.
5
- * Use this when you have already loaded the module yourself.
6
- */
7
- export declare function evaluateThemeObject(theme: Record<string, any>): {
8
- scalesJson: string;
9
- variableMapJson: string;
10
- variableCss: string;
11
- };
12
- /**
13
- * Evaluate a theme module and flatten all scales to a JSON map.
14
- * Format: { "scale_name.key": "css_value" }
15
- *
16
- * Uses Vite's ssrLoadModule to evaluate the theme at build start,
17
- * so all computed scales (shadows, gradients that depend on colors)
18
- * are resolved to their final values.
19
- */
20
- export declare function evaluateTheme(ssrLoadModule: (url: string) => Promise<Record<string, any>>, themePath: string): Promise<{
21
- scalesJson: string;
22
- variableMapJson: string;
23
- variableCss: string;
24
- }>;
25
- /**
26
- * Resolve global style objects to a CSS string.
27
- *
28
- * Each key in `globalStyles` is a CSS selector, each value is a style object
29
- * using the same prop shorthand as component `.styles()` blocks.
30
- */
31
- export declare function resolveGlobalStyles(globalStyles: Record<string, Record<string, any>>, propConfigJson: string, flat: Record<string, string>, transforms: Record<string, (v: any) => any>): string;
32
- //# sourceMappingURL=theme-evaluator.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"theme-evaluator.d.ts","sourceRoot":"","sources":["../src/theme-evaluator.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG;IAC/D,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;CACrB,CAuCA;AAED;;;;;;;GAOG;AACH,wBAAsB,aAAa,CACjC,aAAa,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,EAC5D,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC;IACT,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC,CAWD;AA6KD;;;;;GAKG;AACH,wBAAgB,mBAAmB,CACjC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,EACjD,cAAc,EAAE,MAAM,EACtB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC5B,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,EAAE,GAAG,KAAK,GAAG,CAAC,GAC1C,MAAM,CAiCR"}