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.
- package/dist/browser.js +2550 -2454
- package/dist/index.js +2616 -2518
- package/dist/plugins/vite.js +8 -1
- package/dist/runtime/index.d.ts +7 -3
- package/dist/runtime/index.js +2985 -2827
- package/package.json +1 -1
- package/src/plugins/vite.ts +9 -1
- package/src/runtime/index.ts +9 -10
package/dist/plugins/vite.js
CHANGED
|
@@ -3326,7 +3326,14 @@ function chaincssPlugin(options = {}) {
|
|
|
3326
3326
|
}
|
|
3327
3327
|
if (id === resolvedCssId) {
|
|
3328
3328
|
const css = updateCSS();
|
|
3329
|
-
|
|
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
|
},
|
package/dist/runtime/index.d.ts
CHANGED
|
@@ -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
|
|
11
|
-
|
|
12
|
-
|
|
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;
|