chaincss 2.1.36 → 2.1.37

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chaincss",
3
- "version": "2.1.36",
3
+ "version": "2.1.37",
4
4
  "description": "ChainCSS - The first CSS-in-JS library with true auto-detection mixed mode. Zero runtime by default, dynamic when you need it.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -26,16 +26,15 @@ export {
26
26
  useComputedStyles
27
27
  } from './react.js';
28
28
 
29
- // Vue composables
30
- export {
31
- useAtomicClasses,
32
- ChainCSSGlobal as ChainCSSGlobalVue,
33
- createStyledComponent as createStyledVueComponent, // This is fine - it renames
34
- createStyledComponents as createStyledVueComponents,
35
- useComputedStyles as useComputedStylesVue, // This renames useComputedStyles
36
- provideStyleContext,
37
- injectStyleContext
38
- } from './vue.js';
29
+ // Vue composables — lazy stubs (only load vue.js when called)
30
+ const _lazyVue = () => import('./vue.js');
31
+ export const useAtomicClassesVue = (...args: any[]) => _lazyVue().then((m: any) => m.useAtomicClasses(...args as any[]));
32
+ export const ChainCSSGlobalVue = (props: any) => { _lazyVue(); return null; };
33
+ export const createStyledVueComponent = (...args: any[]) => (...a: any[]) => { _lazyVue(); return null; };
34
+ export const createStyledVueComponents = (...args: any[]) => { _lazyVue(); return {}; };
35
+ export const useComputedStylesVue = (...args: any[]) => { _lazyVue(); return {}; };
36
+ export const provideStyleContext = (...args: any[]) => { _lazyVue(); };
37
+ export const injectStyleContext = (...args: any[]) => { _lazyVue(); return {}; };
39
38
 
40
39
  // Svelte — loaded lazily
41
40
  let _svelteExports: any = null;