@bamboocss/generator 1.46.3 → 1.48.0

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/index.d.cts CHANGED
@@ -3,7 +3,7 @@ import { ArtifactId, CssArtifactType, LoadConfigResult, SpecFile, SpecType, Spec
3
3
 
4
4
  //#region src/generator.d.ts
5
5
  interface SplitCssArtifact {
6
- type: 'layer' | 'recipe' | 'theme';
6
+ type: 'layer' | 'theme';
7
7
  name: string;
8
8
  file: string;
9
9
  code: string;
@@ -13,12 +13,8 @@ interface SplitCssArtifact {
13
13
  interface SplitCssResult {
14
14
  /** Layer CSS files (reset, global, tokens, utilities) */
15
15
  layers: SplitCssArtifact[];
16
- /** Recipe CSS files */
17
- recipes: SplitCssArtifact[];
18
16
  /** Theme CSS files (not auto-imported) */
19
17
  themes: SplitCssArtifact[];
20
- /** Content for recipes.css */
21
- recipesIndex: string;
22
18
  /** Content for main styles.css */
23
19
  index: string;
24
20
  }
@@ -27,7 +23,11 @@ declare class Generator extends Context {
27
23
  getArtifacts: (ids?: ArtifactId[] | undefined) => import("@bamboocss/types").Artifact[];
28
24
  appendCssOfType: (type: CssArtifactType, sheet: Stylesheet) => void;
29
25
  appendLayerParams: (sheet: Stylesheet) => void;
30
- appendBaselineCss: (sheet: Stylesheet) => void;
26
+ appendBaselineCss: (sheet: Stylesheet, {
27
+ atomizeRecipes
28
+ }?: {
29
+ atomizeRecipes?: boolean;
30
+ }) => void;
31
31
  appendParserCss: (sheet: Stylesheet) => void;
32
32
  /**
33
33
  * Drop token css variables nothing can reach. Call this only once the sheet holds the
@@ -196,14 +196,6 @@ declare class Generator extends Context {
196
196
  * Get CSS for a specific layer from the stylesheet
197
197
  */
198
198
  getLayerCss: (sheet: Stylesheet, layer: "reset" | "base" | "tokens" | "recipes" | "utilities") => string;
199
- /**
200
- * Get CSS for a specific recipe
201
- */
202
- getRecipeCss: (recipeName: string) => string;
203
- /**
204
- * Get all recipe names from the decoder
205
- */
206
- getRecipeNames: () => string[];
207
199
  /**
208
200
  * Get all split CSS artifacts for the stylesheet
209
201
  * Used when --splitting flag is enabled
package/dist/index.d.mts CHANGED
@@ -3,7 +3,7 @@ import { ArtifactId, CssArtifactType, LoadConfigResult, SpecFile, SpecType, Spec
3
3
 
4
4
  //#region src/generator.d.ts
5
5
  interface SplitCssArtifact {
6
- type: 'layer' | 'recipe' | 'theme';
6
+ type: 'layer' | 'theme';
7
7
  name: string;
8
8
  file: string;
9
9
  code: string;
@@ -13,12 +13,8 @@ interface SplitCssArtifact {
13
13
  interface SplitCssResult {
14
14
  /** Layer CSS files (reset, global, tokens, utilities) */
15
15
  layers: SplitCssArtifact[];
16
- /** Recipe CSS files */
17
- recipes: SplitCssArtifact[];
18
16
  /** Theme CSS files (not auto-imported) */
19
17
  themes: SplitCssArtifact[];
20
- /** Content for recipes.css */
21
- recipesIndex: string;
22
18
  /** Content for main styles.css */
23
19
  index: string;
24
20
  }
@@ -27,7 +23,11 @@ declare class Generator extends Context {
27
23
  getArtifacts: (ids?: ArtifactId[] | undefined) => import("@bamboocss/types").Artifact[];
28
24
  appendCssOfType: (type: CssArtifactType, sheet: Stylesheet) => void;
29
25
  appendLayerParams: (sheet: Stylesheet) => void;
30
- appendBaselineCss: (sheet: Stylesheet) => void;
26
+ appendBaselineCss: (sheet: Stylesheet, {
27
+ atomizeRecipes
28
+ }?: {
29
+ atomizeRecipes?: boolean;
30
+ }) => void;
31
31
  appendParserCss: (sheet: Stylesheet) => void;
32
32
  /**
33
33
  * Drop token css variables nothing can reach. Call this only once the sheet holds the
@@ -196,14 +196,6 @@ declare class Generator extends Context {
196
196
  * Get CSS for a specific layer from the stylesheet
197
197
  */
198
198
  getLayerCss: (sheet: Stylesheet, layer: "reset" | "base" | "tokens" | "recipes" | "utilities") => string;
199
- /**
200
- * Get CSS for a specific recipe
201
- */
202
- getRecipeCss: (recipeName: string) => string;
203
- /**
204
- * Get all recipe names from the decoder
205
- */
206
- getRecipeNames: () => string[];
207
199
  /**
208
200
  * Get all split CSS artifacts for the stylesheet
209
201
  * Used when --splitting flag is enabled