@kbach/react 1.0.0-beta.5 → 1.0.0-beta.7
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/README.md +136 -7
- package/dist/chunk-P4CQSYIL.mjs +1340 -0
- package/dist/postcss-plugin.d.mts +36 -0
- package/dist/postcss-plugin.d.ts +36 -0
- package/dist/postcss-plugin.js +1119 -0
- package/dist/postcss-plugin.mjs +79 -0
- package/dist/vite-plugin.d.mts +52 -5
- package/dist/vite-plugin.d.ts +52 -5
- package/dist/vite-plugin.js +326 -309
- package/dist/vite-plugin.mjs +12 -1320
- package/package.json +12 -1
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Plugin } from 'postcss';
|
|
2
|
+
import { T as ThemeConfig, K as KbachConfig } from './config-BQ_b-qxF.mjs';
|
|
3
|
+
|
|
4
|
+
interface KbachPostcssPluginOptions {
|
|
5
|
+
/**
|
|
6
|
+
* Project root to scan from. Defaults to `process.cwd()` — correct for
|
|
7
|
+
* the common case (PostCSS/Next.js run from the project root), but pass
|
|
8
|
+
* this explicitly if your `postcss.config.js` lives somewhere else, or
|
|
9
|
+
* from a monorepo app whose cwd differs from where `src`/`app` actually
|
|
10
|
+
* live.
|
|
11
|
+
*/
|
|
12
|
+
root?: string;
|
|
13
|
+
/** Same as `KbachPluginOptions.theme` (vite-plugin/index.ts) — see its own doc comment. */
|
|
14
|
+
theme?: ThemeConfig;
|
|
15
|
+
/** Same as `KbachPluginOptions.config`. */
|
|
16
|
+
config?: KbachConfig;
|
|
17
|
+
/** Directories to scan for class strings, relative to `root`. Defaults to the same set the Vite plugin uses. */
|
|
18
|
+
include?: string[];
|
|
19
|
+
/** Same as `KbachPluginOptions.safelist`. */
|
|
20
|
+
safelist?: string[];
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* `postcss.config.js`:
|
|
24
|
+
* ```js
|
|
25
|
+
* module.exports = { plugins: { '@kbach/react/postcss': {} } };
|
|
26
|
+
* ```
|
|
27
|
+
* Processes whichever CSS file carries the `kbach:start`/`kbach:end`
|
|
28
|
+
* markers (conventionally `app/globals.css`/`src/kbach.css` — the same
|
|
29
|
+
* file you'd `@import`/reference like any other global stylesheet).
|
|
30
|
+
*/
|
|
31
|
+
declare function kbachPostcss(options?: KbachPostcssPluginOptions): Plugin;
|
|
32
|
+
declare namespace kbachPostcss {
|
|
33
|
+
var postcss: boolean;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export { type KbachPostcssPluginOptions, kbachPostcss as default };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Plugin } from 'postcss';
|
|
2
|
+
import { T as ThemeConfig, K as KbachConfig } from './config-BQ_b-qxF.js';
|
|
3
|
+
|
|
4
|
+
interface KbachPostcssPluginOptions {
|
|
5
|
+
/**
|
|
6
|
+
* Project root to scan from. Defaults to `process.cwd()` — correct for
|
|
7
|
+
* the common case (PostCSS/Next.js run from the project root), but pass
|
|
8
|
+
* this explicitly if your `postcss.config.js` lives somewhere else, or
|
|
9
|
+
* from a monorepo app whose cwd differs from where `src`/`app` actually
|
|
10
|
+
* live.
|
|
11
|
+
*/
|
|
12
|
+
root?: string;
|
|
13
|
+
/** Same as `KbachPluginOptions.theme` (vite-plugin/index.ts) — see its own doc comment. */
|
|
14
|
+
theme?: ThemeConfig;
|
|
15
|
+
/** Same as `KbachPluginOptions.config`. */
|
|
16
|
+
config?: KbachConfig;
|
|
17
|
+
/** Directories to scan for class strings, relative to `root`. Defaults to the same set the Vite plugin uses. */
|
|
18
|
+
include?: string[];
|
|
19
|
+
/** Same as `KbachPluginOptions.safelist`. */
|
|
20
|
+
safelist?: string[];
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* `postcss.config.js`:
|
|
24
|
+
* ```js
|
|
25
|
+
* module.exports = { plugins: { '@kbach/react/postcss': {} } };
|
|
26
|
+
* ```
|
|
27
|
+
* Processes whichever CSS file carries the `kbach:start`/`kbach:end`
|
|
28
|
+
* markers (conventionally `app/globals.css`/`src/kbach.css` — the same
|
|
29
|
+
* file you'd `@import`/reference like any other global stylesheet).
|
|
30
|
+
*/
|
|
31
|
+
declare function kbachPostcss(options?: KbachPostcssPluginOptions): Plugin;
|
|
32
|
+
declare namespace kbachPostcss {
|
|
33
|
+
var postcss: boolean;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export { type KbachPostcssPluginOptions, kbachPostcss as default };
|