chaincss 2.1.36 → 2.1.38

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.
@@ -3326,7 +3326,14 @@ function chaincssPlugin(options = {}) {
3326
3326
  }
3327
3327
  if (id === resolvedCssId) {
3328
3328
  const css = updateCSS();
3329
- return css || "/* ChainCSS: No styles */";
3329
+ if (css && css.trim()) {
3330
+ return `const style = document.createElement('style');
3331
+ style.setAttribute('data-chaincss', 'build');
3332
+ style.textContent = ${JSON.stringify(css)};
3333
+ document.head.appendChild(style);
3334
+ export default {};`;
3335
+ }
3336
+ return "export default {};";
3330
3337
  }
3331
3338
  return null;
3332
3339
  },
@@ -7,9 +7,13 @@
7
7
  export { compileRuntime as compile, runRuntime as run, styleInjector } from './injector.js';
8
8
  export { $, $t, chain, setManifest } from './Chain.js';
9
9
  export { useChainStyles, useDynamicChainStyles, useThemeChainStyles, ChainCSSGlobal, cx, withChainStyles, enableChainCSSDebug, disableChainCSSDebug, isDebugEnabled, createStyledComponent, useComputedStyles } from './react.js';
10
- export { useAtomicClasses, ChainCSSGlobal as ChainCSSGlobalVue, createStyledComponent as createStyledVueComponent, // This is fine - it renames
11
- createStyledComponents as createStyledVueComponents, useComputedStyles as useComputedStylesVue, // This renames useComputedStyles
12
- provideStyleContext, injectStyleContext } from './vue.js';
10
+ export declare const useAtomicClassesVue: (...args: any[]) => Promise<any>;
11
+ export declare const ChainCSSGlobalVue: (props: any) => null;
12
+ export declare const createStyledVueComponent: (...args: any[]) => (...a: any[]) => null;
13
+ export declare const createStyledVueComponents: (...args: any[]) => {};
14
+ export declare const useComputedStylesVue: (...args: any[]) => {};
15
+ export declare const provideStyleContext: (...args: any[]) => void;
16
+ export declare const injectStyleContext: (...args: any[]) => {};
13
17
  export declare const useAtomicClassesSvelte: (...args: any[]) => any;
14
18
  export declare const cxSvelte: (...args: any[]) => any;
15
19
  export declare const ChainCSSGlobalSvelte: (props: any) => any;