@bamboocss/dev 1.31.0 → 1.32.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.
@@ -7627,7 +7627,7 @@ function isLocError(error) {
7627
7627
  //#endregion
7628
7628
  //#region package.json
7629
7629
  var name = "@bamboocss/dev";
7630
- var version = "1.31.0";
7630
+ var version = "1.32.0";
7631
7631
  //#endregion
7632
7632
  //#region src/interactive.ts
7633
7633
  const interactive = async () => {
@@ -7766,8 +7766,8 @@ async function main() {
7766
7766
  else stream.end();
7767
7767
  stopProfiling();
7768
7768
  });
7769
- cli.command("cssgen [globOrType]", "Generate the css from files, or generate the css from the specified type which can be: preflight, tokens, static, global, keyframes").option("--silent", "Don't print any logs").option("-m, --minify", "Minify generated code").option("--clean", "Clean the output before generating").option("-c, --config <path>", "Path to bamboo config file").option("-w, --watch", "Watch files and rebuild").option("--minimal", "Do not include CSS generation for theme tokens, preflight, keyframes, static and global css").option("--polyfill", "Polyfill CSS @layers at-rules for older browsers.").option("-p, --poll", "Use polling instead of filesystem events when watching").option("-o, --outfile [file]", "Output file for extracted css, default to './styled-system/styles.css'").option("--splitting", "Emit CSS as separate files per layer (reset, global, tokens, utilities) and per recipe").option("--cwd <cwd>", "Current working directory", { default: cwd }).option("--cpu-prof", "Generates a `.cpuprofile` to help debug performance issues").option("--logfile <file>", "Outputs logs to a file").action(async (maybeGlob, flags = {}) => {
7770
- const { silent, config: configPath, outfile, watch, poll, minimal, splitting, ...rest } = flags;
7769
+ cli.command("cssgen [globOrType]", "Generate the css from files, or generate the css from the specified type which can be: preflight, tokens, static, global, keyframes").option("--silent", "Don't print any logs").option("-m, --minify", "Minify generated code").option("--clean", "Clean the output before generating").option("-c, --config <path>", "Path to bamboo config file").option("-w, --watch", "Watch files and rebuild").option("--polyfill", "Polyfill CSS @layers at-rules for older browsers.").option("-p, --poll", "Use polling instead of filesystem events when watching").option("-o, --outfile [file]", "Output file for extracted css, default to './styled-system/styles.css'").option("--splitting", "Emit CSS as separate files per layer (reset, global, tokens, utilities) and per recipe").option("--cwd <cwd>", "Current working directory", { default: cwd }).option("--cpu-prof", "Generates a `.cpuprofile` to help debug performance issues").option("--logfile <file>", "Outputs logs to a file").action(async (maybeGlob, flags = {}) => {
7770
+ const { silent, config: configPath, outfile, watch, poll, splitting, ...rest } = flags;
7771
7771
  const cwd = (0, path.resolve)(flags.cwd ?? "");
7772
7772
  const stream = (0, _bamboocss_node.setLogStream)({
7773
7773
  cwd,
@@ -7796,7 +7796,6 @@ async function main() {
7796
7796
  cwd,
7797
7797
  outfile,
7798
7798
  type: cssArtifact,
7799
- minimal,
7800
7799
  splitting
7801
7800
  };
7802
7801
  await (0, _bamboocss_node.cssgen)(ctx, options);
@@ -7630,7 +7630,7 @@ function isLocError(error) {
7630
7630
  //#endregion
7631
7631
  //#region package.json
7632
7632
  var name = "@bamboocss/dev";
7633
- var version = "1.31.0";
7633
+ var version = "1.32.0";
7634
7634
  //#endregion
7635
7635
  //#region src/interactive.ts
7636
7636
  const interactive = async () => {
@@ -7769,8 +7769,8 @@ async function main() {
7769
7769
  else stream.end();
7770
7770
  stopProfiling();
7771
7771
  });
7772
- cli.command("cssgen [globOrType]", "Generate the css from files, or generate the css from the specified type which can be: preflight, tokens, static, global, keyframes").option("--silent", "Don't print any logs").option("-m, --minify", "Minify generated code").option("--clean", "Clean the output before generating").option("-c, --config <path>", "Path to bamboo config file").option("-w, --watch", "Watch files and rebuild").option("--minimal", "Do not include CSS generation for theme tokens, preflight, keyframes, static and global css").option("--polyfill", "Polyfill CSS @layers at-rules for older browsers.").option("-p, --poll", "Use polling instead of filesystem events when watching").option("-o, --outfile [file]", "Output file for extracted css, default to './styled-system/styles.css'").option("--splitting", "Emit CSS as separate files per layer (reset, global, tokens, utilities) and per recipe").option("--cwd <cwd>", "Current working directory", { default: cwd }).option("--cpu-prof", "Generates a `.cpuprofile` to help debug performance issues").option("--logfile <file>", "Outputs logs to a file").action(async (maybeGlob, flags = {}) => {
7773
- const { silent, config: configPath, outfile, watch, poll, minimal, splitting, ...rest } = flags;
7772
+ cli.command("cssgen [globOrType]", "Generate the css from files, or generate the css from the specified type which can be: preflight, tokens, static, global, keyframes").option("--silent", "Don't print any logs").option("-m, --minify", "Minify generated code").option("--clean", "Clean the output before generating").option("-c, --config <path>", "Path to bamboo config file").option("-w, --watch", "Watch files and rebuild").option("--polyfill", "Polyfill CSS @layers at-rules for older browsers.").option("-p, --poll", "Use polling instead of filesystem events when watching").option("-o, --outfile [file]", "Output file for extracted css, default to './styled-system/styles.css'").option("--splitting", "Emit CSS as separate files per layer (reset, global, tokens, utilities) and per recipe").option("--cwd <cwd>", "Current working directory", { default: cwd }).option("--cpu-prof", "Generates a `.cpuprofile` to help debug performance issues").option("--logfile <file>", "Outputs logs to a file").action(async (maybeGlob, flags = {}) => {
7773
+ const { silent, config: configPath, outfile, watch, poll, splitting, ...rest } = flags;
7774
7774
  const cwd = resolve(flags.cwd ?? "");
7775
7775
  const stream = setLogStream({
7776
7776
  cwd,
@@ -7799,7 +7799,6 @@ async function main() {
7799
7799
  cwd,
7800
7800
  outfile,
7801
7801
  type: cssArtifact,
7802
- minimal,
7803
7802
  splitting
7804
7803
  };
7805
7804
  await cssgen(ctx, options);
package/dist/cli-main.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_package = require("./package-BSTVW0IS.cjs");
2
+ const require_package = require("./package-DXgfGokJ.cjs");
3
3
  let _bamboocss_logger = require("@bamboocss/logger");
4
4
  let _bamboocss_node = require("@bamboocss/node");
5
5
  let _bamboocss_shared = require("@bamboocss/shared");
@@ -144,8 +144,8 @@ async function main() {
144
144
  else stream.end();
145
145
  stopProfiling();
146
146
  });
147
- cli.command("cssgen [globOrType]", "Generate the css from files, or generate the css from the specified type which can be: preflight, tokens, static, global, keyframes").option("--silent", "Don't print any logs").option("-m, --minify", "Minify generated code").option("--clean", "Clean the output before generating").option("-c, --config <path>", "Path to bamboo config file").option("-w, --watch", "Watch files and rebuild").option("--minimal", "Do not include CSS generation for theme tokens, preflight, keyframes, static and global css").option("--polyfill", "Polyfill CSS @layers at-rules for older browsers.").option("-p, --poll", "Use polling instead of filesystem events when watching").option("-o, --outfile [file]", "Output file for extracted css, default to './styled-system/styles.css'").option("--splitting", "Emit CSS as separate files per layer (reset, global, tokens, utilities) and per recipe").option("--cwd <cwd>", "Current working directory", { default: cwd }).option("--cpu-prof", "Generates a `.cpuprofile` to help debug performance issues").option("--logfile <file>", "Outputs logs to a file").action(async (maybeGlob, flags = {}) => {
148
- const { silent, config: configPath, outfile, watch, poll, minimal, splitting, ...rest } = flags;
147
+ cli.command("cssgen [globOrType]", "Generate the css from files, or generate the css from the specified type which can be: preflight, tokens, static, global, keyframes").option("--silent", "Don't print any logs").option("-m, --minify", "Minify generated code").option("--clean", "Clean the output before generating").option("-c, --config <path>", "Path to bamboo config file").option("-w, --watch", "Watch files and rebuild").option("--polyfill", "Polyfill CSS @layers at-rules for older browsers.").option("-p, --poll", "Use polling instead of filesystem events when watching").option("-o, --outfile [file]", "Output file for extracted css, default to './styled-system/styles.css'").option("--splitting", "Emit CSS as separate files per layer (reset, global, tokens, utilities) and per recipe").option("--cwd <cwd>", "Current working directory", { default: cwd }).option("--cpu-prof", "Generates a `.cpuprofile` to help debug performance issues").option("--logfile <file>", "Outputs logs to a file").action(async (maybeGlob, flags = {}) => {
148
+ const { silent, config: configPath, outfile, watch, poll, splitting, ...rest } = flags;
149
149
  const cwd = (0, path.resolve)(flags.cwd ?? "");
150
150
  const stream = (0, _bamboocss_node.setLogStream)({
151
151
  cwd,
@@ -174,7 +174,6 @@ async function main() {
174
174
  cwd,
175
175
  outfile,
176
176
  type: cssArtifact,
177
- minimal,
178
177
  splitting
179
178
  };
180
179
  await (0, _bamboocss_node.cssgen)(ctx, options);
@@ -401,7 +400,7 @@ async function main() {
401
400
  process.exitCode = 1;
402
401
  });
403
402
  cli.command("init-mcp", "Initialize MCP configuration for AI clients").option("--cwd <cwd>", "Current working directory", { default: cwd }).option("--client <clients>", "AI clients to configure (claude, cursor, vscode, windsurf, codex)").action(async (mcpInitFlags) => {
404
- const { initMcpConfig } = await Promise.resolve().then(() => require("./mcp-init-B9JiIVNX.cjs"));
403
+ const { initMcpConfig } = await Promise.resolve().then(() => require("./mcp-init-C0oaGoDl.cjs"));
405
404
  const resolvedCwd = (0, path.resolve)(mcpInitFlags.cwd ?? cwd);
406
405
  let clients;
407
406
  if (mcpInitFlags.client) clients = (Array.isArray(mcpInitFlags.client) ? mcpInitFlags.client : [mcpInitFlags.client]).flatMap((c) => c.split(",")).map((c) => c.trim());
package/dist/cli-main.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { t as version } from "./package-BpQK2nL7.mjs";
1
+ import { t as version } from "./package-hGuUFPQk.mjs";
2
2
  import { logger } from "@bamboocss/logger";
3
3
  import { BambooContext, analyze, buildInfo, codegen, cssgen, debug, generate, generatePackageExports, loadConfigAndCreateContext, setLogStream, setupConfig, setupGitIgnore, setupPostcss, spec, startProfiling } from "@bamboocss/node";
4
4
  import { compact } from "@bamboocss/shared";
@@ -142,8 +142,8 @@ async function main() {
142
142
  else stream.end();
143
143
  stopProfiling();
144
144
  });
145
- cli.command("cssgen [globOrType]", "Generate the css from files, or generate the css from the specified type which can be: preflight, tokens, static, global, keyframes").option("--silent", "Don't print any logs").option("-m, --minify", "Minify generated code").option("--clean", "Clean the output before generating").option("-c, --config <path>", "Path to bamboo config file").option("-w, --watch", "Watch files and rebuild").option("--minimal", "Do not include CSS generation for theme tokens, preflight, keyframes, static and global css").option("--polyfill", "Polyfill CSS @layers at-rules for older browsers.").option("-p, --poll", "Use polling instead of filesystem events when watching").option("-o, --outfile [file]", "Output file for extracted css, default to './styled-system/styles.css'").option("--splitting", "Emit CSS as separate files per layer (reset, global, tokens, utilities) and per recipe").option("--cwd <cwd>", "Current working directory", { default: cwd }).option("--cpu-prof", "Generates a `.cpuprofile` to help debug performance issues").option("--logfile <file>", "Outputs logs to a file").action(async (maybeGlob, flags = {}) => {
146
- const { silent, config: configPath, outfile, watch, poll, minimal, splitting, ...rest } = flags;
145
+ cli.command("cssgen [globOrType]", "Generate the css from files, or generate the css from the specified type which can be: preflight, tokens, static, global, keyframes").option("--silent", "Don't print any logs").option("-m, --minify", "Minify generated code").option("--clean", "Clean the output before generating").option("-c, --config <path>", "Path to bamboo config file").option("-w, --watch", "Watch files and rebuild").option("--polyfill", "Polyfill CSS @layers at-rules for older browsers.").option("-p, --poll", "Use polling instead of filesystem events when watching").option("-o, --outfile [file]", "Output file for extracted css, default to './styled-system/styles.css'").option("--splitting", "Emit CSS as separate files per layer (reset, global, tokens, utilities) and per recipe").option("--cwd <cwd>", "Current working directory", { default: cwd }).option("--cpu-prof", "Generates a `.cpuprofile` to help debug performance issues").option("--logfile <file>", "Outputs logs to a file").action(async (maybeGlob, flags = {}) => {
146
+ const { silent, config: configPath, outfile, watch, poll, splitting, ...rest } = flags;
147
147
  const cwd = resolve(flags.cwd ?? "");
148
148
  const stream = setLogStream({
149
149
  cwd,
@@ -172,7 +172,6 @@ async function main() {
172
172
  cwd,
173
173
  outfile,
174
174
  type: cssArtifact,
175
- minimal,
176
175
  splitting
177
176
  };
178
177
  await cssgen(ctx, options);
@@ -399,7 +398,7 @@ async function main() {
399
398
  process.exitCode = 1;
400
399
  });
401
400
  cli.command("init-mcp", "Initialize MCP configuration for AI clients").option("--cwd <cwd>", "Current working directory", { default: cwd }).option("--client <clients>", "AI clients to configure (claude, cursor, vscode, windsurf, codex)").action(async (mcpInitFlags) => {
402
- const { initMcpConfig } = await import("./mcp-init-pYR-Xb5g.mjs");
401
+ const { initMcpConfig } = await import("./mcp-init-CiYAgeNg.mjs");
403
402
  const resolvedCwd = resolve(mcpInitFlags.cwd ?? cwd);
404
403
  let clients;
405
404
  if (mcpInitFlags.client) clients = (Array.isArray(mcpInitFlags.client) ? mcpInitFlags.client : [mcpInitFlags.client]).flatMap((c) => c.split(",")).map((c) => c.trim());
package/dist/index.cjs CHANGED
@@ -1,5 +1,4 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- let _bamboocss_shared = require("@bamboocss/shared");
3
2
  //#region src/index.ts
4
3
  function defineConfig(config) {
5
4
  return Object.assign(config, { name: "__bamboo.config__" });
@@ -10,15 +9,6 @@ function defineRecipe(config) {
10
9
  function defineSlotRecipe(config) {
11
10
  return config;
12
11
  }
13
- function defineParts(parts) {
14
- return function(config) {
15
- return Object.fromEntries(Object.entries(config).map(([key, value]) => {
16
- const part = parts[key];
17
- if (part == null) throw new _bamboocss_shared.BambooError("NOT_FOUND", `Part "${key}" does not exist in the anatomy. Available parts: ${Object.keys(parts).join(", ")}`);
18
- return [part.selector, value];
19
- }));
20
- };
21
- }
22
12
  function definePattern(config) {
23
13
  return config;
24
14
  }
@@ -54,26 +44,18 @@ function createProxy() {
54
44
  }
55
45
  const defineTokens = /* @__PURE__ */ createProxy();
56
46
  const defineSemanticTokens = /* @__PURE__ */ createProxy();
57
- function defineTextStyles(definition) {
58
- return definition;
59
- }
60
- function defineLayerStyles(definition) {
47
+ function defineMixins(definition) {
61
48
  return definition;
62
49
  }
63
50
  function defineStyles(definition) {
64
51
  return definition;
65
52
  }
66
- function defineAnimationStyles(definition) {
67
- return definition;
68
- }
69
53
  //#endregion
70
- exports.defineAnimationStyles = defineAnimationStyles;
71
54
  exports.defineConfig = defineConfig;
72
55
  exports.defineGlobalFontface = defineGlobalFontface;
73
56
  exports.defineGlobalStyles = defineGlobalStyles;
74
57
  exports.defineKeyframes = defineKeyframes;
75
- exports.defineLayerStyles = defineLayerStyles;
76
- exports.defineParts = defineParts;
58
+ exports.defineMixins = defineMixins;
77
59
  exports.definePattern = definePattern;
78
60
  exports.definePlugin = definePlugin;
79
61
  exports.definePreset = definePreset;
@@ -81,7 +63,6 @@ exports.defineRecipe = defineRecipe;
81
63
  exports.defineSemanticTokens = defineSemanticTokens;
82
64
  exports.defineSlotRecipe = defineSlotRecipe;
83
65
  exports.defineStyles = defineStyles;
84
- exports.defineTextStyles = defineTextStyles;
85
66
  exports.defineThemeContract = defineThemeContract;
86
67
  exports.defineThemeVariant = defineThemeVariant;
87
68
  exports.defineTokens = defineTokens;
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { AnimationStyles, BambooPlugin, CompositionStyles, Config, CssKeyframes, GlobalFontface, GlobalStyleObject, HooksApiInterface, LayerStyles, Parts, PatternConfig, PatternProperties, Preset, PropertyConfig, RecipeConfig, RecipeVariantRecord, SemanticTokens, SlotRecipeConfig, SlotRecipeVariantRecord, SystemStyleObject, TextStyles, ThemeVariant, Tokens } from "@bamboocss/types";
1
+ import { BambooPlugin, CompositionStyles, Config, CssKeyframes, GlobalFontface, GlobalStyleObject, HooksApiInterface, Mixins, PatternConfig, PatternProperties, Preset, PropertyConfig, RecipeConfig, RecipeVariantRecord, SemanticTokens, SlotRecipeConfig, SlotRecipeVariantRecord, SystemStyleObject, ThemeVariant, Tokens } from "@bamboocss/types";
2
2
 
3
3
  //#region src/index.d.ts
4
4
  declare function defineConfig(config: Config): Config & {
@@ -6,7 +6,6 @@ declare function defineConfig(config: Config): Config & {
6
6
  };
7
7
  declare function defineRecipe<T extends RecipeVariantRecord>(config: RecipeConfig<T>): RecipeConfig;
8
8
  declare function defineSlotRecipe<S extends string, T extends SlotRecipeVariantRecord<S>>(config: SlotRecipeConfig<S, T>): SlotRecipeConfig;
9
- declare function defineParts<T extends Parts>(parts: T): (config: Partial<Record<keyof T, SystemStyleObject>>) => Partial<Record<keyof T, SystemStyleObject>>;
10
9
  declare function definePattern<T extends PatternConfig>(config: T): PatternConfig;
11
10
  declare function definePreset(preset: Preset): Preset;
12
11
  declare function defineKeyframes(keyframes: CssKeyframes): CssKeyframes;
@@ -21,9 +20,7 @@ type ProxyValue<T> = {
21
20
  } & { [K in keyof Required<T>]: <Value>(definition: Value extends T[K] ? Value : T[K]) => Value };
22
21
  declare const defineTokens: ProxyValue<Tokens>;
23
22
  declare const defineSemanticTokens: ProxyValue<SemanticTokens>;
24
- declare function defineTextStyles(definition: CompositionStyles['textStyles']): TextStyles;
25
- declare function defineLayerStyles(definition: CompositionStyles['layerStyles']): LayerStyles;
23
+ declare function defineMixins(definition: CompositionStyles['mixins']): Mixins;
26
24
  declare function defineStyles(definition: SystemStyleObject): SystemStyleObject;
27
- declare function defineAnimationStyles(definition: CompositionStyles['animationStyles']): AnimationStyles;
28
25
  //#endregion
29
- export { type AnimationStyles, type CompositionStyles, type Config, type CssKeyframes, type GlobalStyleObject, type HooksApiInterface, type LayerStyles, type PatternConfig, type PatternProperties, type Preset, type PropertyConfig, type RecipeConfig, type RecipeVariantRecord, type SemanticTokens, type SlotRecipeConfig, type SlotRecipeVariantRecord, type SystemStyleObject, type TextStyles, type Tokens, defineAnimationStyles, defineConfig, defineGlobalFontface, defineGlobalStyles, defineKeyframes, defineLayerStyles, defineParts, definePattern, definePlugin, definePreset, defineRecipe, defineSemanticTokens, defineSlotRecipe, defineStyles, defineTextStyles, defineThemeContract, defineThemeVariant, defineTokens, defineUtility };
26
+ export { type CompositionStyles, type Config, type CssKeyframes, type GlobalStyleObject, type HooksApiInterface, type Mixins, type PatternConfig, type PatternProperties, type Preset, type PropertyConfig, type RecipeConfig, type RecipeVariantRecord, type SemanticTokens, type SlotRecipeConfig, type SlotRecipeVariantRecord, type SystemStyleObject, type Tokens, defineConfig, defineGlobalFontface, defineGlobalStyles, defineKeyframes, defineMixins, definePattern, definePlugin, definePreset, defineRecipe, defineSemanticTokens, defineSlotRecipe, defineStyles, defineThemeContract, defineThemeVariant, defineTokens, defineUtility };
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { AnimationStyles, BambooPlugin, CompositionStyles, Config, CssKeyframes, GlobalFontface, GlobalStyleObject, HooksApiInterface, LayerStyles, Parts, PatternConfig, PatternProperties, Preset, PropertyConfig, RecipeConfig, RecipeVariantRecord, SemanticTokens, SlotRecipeConfig, SlotRecipeVariantRecord, SystemStyleObject, TextStyles, ThemeVariant, Tokens } from "@bamboocss/types";
1
+ import { BambooPlugin, CompositionStyles, Config, CssKeyframes, GlobalFontface, GlobalStyleObject, HooksApiInterface, Mixins, PatternConfig, PatternProperties, Preset, PropertyConfig, RecipeConfig, RecipeVariantRecord, SemanticTokens, SlotRecipeConfig, SlotRecipeVariantRecord, SystemStyleObject, ThemeVariant, Tokens } from "@bamboocss/types";
2
2
 
3
3
  //#region src/index.d.ts
4
4
  declare function defineConfig(config: Config): Config & {
@@ -6,7 +6,6 @@ declare function defineConfig(config: Config): Config & {
6
6
  };
7
7
  declare function defineRecipe<T extends RecipeVariantRecord>(config: RecipeConfig<T>): RecipeConfig;
8
8
  declare function defineSlotRecipe<S extends string, T extends SlotRecipeVariantRecord<S>>(config: SlotRecipeConfig<S, T>): SlotRecipeConfig;
9
- declare function defineParts<T extends Parts>(parts: T): (config: Partial<Record<keyof T, SystemStyleObject>>) => Partial<Record<keyof T, SystemStyleObject>>;
10
9
  declare function definePattern<T extends PatternConfig>(config: T): PatternConfig;
11
10
  declare function definePreset(preset: Preset): Preset;
12
11
  declare function defineKeyframes(keyframes: CssKeyframes): CssKeyframes;
@@ -21,9 +20,7 @@ type ProxyValue<T> = {
21
20
  } & { [K in keyof Required<T>]: <Value>(definition: Value extends T[K] ? Value : T[K]) => Value };
22
21
  declare const defineTokens: ProxyValue<Tokens>;
23
22
  declare const defineSemanticTokens: ProxyValue<SemanticTokens>;
24
- declare function defineTextStyles(definition: CompositionStyles['textStyles']): TextStyles;
25
- declare function defineLayerStyles(definition: CompositionStyles['layerStyles']): LayerStyles;
23
+ declare function defineMixins(definition: CompositionStyles['mixins']): Mixins;
26
24
  declare function defineStyles(definition: SystemStyleObject): SystemStyleObject;
27
- declare function defineAnimationStyles(definition: CompositionStyles['animationStyles']): AnimationStyles;
28
25
  //#endregion
29
- export { type AnimationStyles, type CompositionStyles, type Config, type CssKeyframes, type GlobalStyleObject, type HooksApiInterface, type LayerStyles, type PatternConfig, type PatternProperties, type Preset, type PropertyConfig, type RecipeConfig, type RecipeVariantRecord, type SemanticTokens, type SlotRecipeConfig, type SlotRecipeVariantRecord, type SystemStyleObject, type TextStyles, type Tokens, defineAnimationStyles, defineConfig, defineGlobalFontface, defineGlobalStyles, defineKeyframes, defineLayerStyles, defineParts, definePattern, definePlugin, definePreset, defineRecipe, defineSemanticTokens, defineSlotRecipe, defineStyles, defineTextStyles, defineThemeContract, defineThemeVariant, defineTokens, defineUtility };
26
+ export { type CompositionStyles, type Config, type CssKeyframes, type GlobalStyleObject, type HooksApiInterface, type Mixins, type PatternConfig, type PatternProperties, type Preset, type PropertyConfig, type RecipeConfig, type RecipeVariantRecord, type SemanticTokens, type SlotRecipeConfig, type SlotRecipeVariantRecord, type SystemStyleObject, type Tokens, defineConfig, defineGlobalFontface, defineGlobalStyles, defineKeyframes, defineMixins, definePattern, definePlugin, definePreset, defineRecipe, defineSemanticTokens, defineSlotRecipe, defineStyles, defineThemeContract, defineThemeVariant, defineTokens, defineUtility };
package/dist/index.mjs CHANGED
@@ -1,4 +1,3 @@
1
- import { BambooError } from "@bamboocss/shared";
2
1
  //#region src/index.ts
3
2
  function defineConfig(config) {
4
3
  return Object.assign(config, { name: "__bamboo.config__" });
@@ -9,15 +8,6 @@ function defineRecipe(config) {
9
8
  function defineSlotRecipe(config) {
10
9
  return config;
11
10
  }
12
- function defineParts(parts) {
13
- return function(config) {
14
- return Object.fromEntries(Object.entries(config).map(([key, value]) => {
15
- const part = parts[key];
16
- if (part == null) throw new BambooError("NOT_FOUND", `Part "${key}" does not exist in the anatomy. Available parts: ${Object.keys(parts).join(", ")}`);
17
- return [part.selector, value];
18
- }));
19
- };
20
- }
21
11
  function definePattern(config) {
22
12
  return config;
23
13
  }
@@ -53,17 +43,11 @@ function createProxy() {
53
43
  }
54
44
  const defineTokens = /* @__PURE__ */ createProxy();
55
45
  const defineSemanticTokens = /* @__PURE__ */ createProxy();
56
- function defineTextStyles(definition) {
57
- return definition;
58
- }
59
- function defineLayerStyles(definition) {
46
+ function defineMixins(definition) {
60
47
  return definition;
61
48
  }
62
49
  function defineStyles(definition) {
63
50
  return definition;
64
51
  }
65
- function defineAnimationStyles(definition) {
66
- return definition;
67
- }
68
52
  //#endregion
69
- export { defineAnimationStyles, defineConfig, defineGlobalFontface, defineGlobalStyles, defineKeyframes, defineLayerStyles, defineParts, definePattern, definePlugin, definePreset, defineRecipe, defineSemanticTokens, defineSlotRecipe, defineStyles, defineTextStyles, defineThemeContract, defineThemeVariant, defineTokens, defineUtility };
53
+ export { defineConfig, defineGlobalFontface, defineGlobalStyles, defineKeyframes, defineMixins, definePattern, definePlugin, definePreset, defineRecipe, defineSemanticTokens, defineSlotRecipe, defineStyles, defineThemeContract, defineThemeVariant, defineTokens, defineUtility };
@@ -24,7 +24,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
24
24
  let _clack_prompts = require("@clack/prompts");
25
25
  _clack_prompts = __toESM(_clack_prompts);
26
26
  //#region package.json
27
- var version = "1.31.0";
27
+ var version = "1.32.0";
28
28
  //#endregion
29
29
  //#region src/interactive.ts
30
30
  const interactive = async () => {
@@ -1,6 +1,6 @@
1
1
  import * as p from "@clack/prompts";
2
2
  //#region package.json
3
- var version = "1.31.0";
3
+ var version = "1.32.0";
4
4
  //#endregion
5
5
  //#region src/interactive.ts
6
6
  const interactive = async () => {
@@ -1,4 +1,4 @@
1
- const require_package = require("./package-BSTVW0IS.cjs");
1
+ const require_package = require("./package-DXgfGokJ.cjs");
2
2
  let _bamboocss_logger = require("@bamboocss/logger");
3
3
  let path = require("path");
4
4
  let _clack_prompts = require("@clack/prompts");
@@ -1,4 +1,4 @@
1
- import { t as version } from "./package-BpQK2nL7.mjs";
1
+ import { t as version } from "./package-hGuUFPQk.mjs";
2
2
  import { logger } from "@bamboocss/logger";
3
3
  import { dirname, resolve } from "path";
4
4
  import * as p from "@clack/prompts";
@@ -21,7 +21,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
21
21
  }) : target, mod));
22
22
  //#endregion
23
23
  //#region package.json
24
- var version = "1.31.0";
24
+ var version = "1.32.0";
25
25
  //#endregion
26
26
  Object.defineProperty(exports, "__toESM", {
27
27
  enumerable: true,
@@ -1,4 +1,4 @@
1
1
  //#region package.json
2
- var version = "1.31.0";
2
+ var version = "1.32.0";
3
3
  //#endregion
4
4
  export { version as t };
@@ -173,93 +173,6 @@ declare const defaultPresets: ({
173
173
  flexShrink: any;
174
174
  };
175
175
  };
176
- stack: {
177
- properties: {
178
- align: {
179
- type: "property";
180
- value: "alignItems";
181
- };
182
- justify: {
183
- type: "property";
184
- value: "justifyContent";
185
- };
186
- direction: {
187
- type: "property";
188
- value: "flexDirection";
189
- };
190
- gap: {
191
- type: "property";
192
- value: "gap";
193
- };
194
- };
195
- defaultValues: {
196
- direction: string;
197
- gap: string;
198
- };
199
- transform(props: {
200
- [x: string]: any;
201
- [x: number]: any;
202
- [x: string & Record<never, never>]: any;
203
- }): {
204
- display: "flex";
205
- flexDirection: any;
206
- alignItems: any;
207
- justifyContent: any;
208
- gap: any;
209
- };
210
- };
211
- vstack: {
212
- properties: {
213
- justify: {
214
- type: "property";
215
- value: "justifyContent";
216
- };
217
- gap: {
218
- type: "property";
219
- value: "gap";
220
- };
221
- };
222
- defaultValues: {
223
- gap: string;
224
- };
225
- transform(props: {
226
- [x: string]: any;
227
- [x: number]: any;
228
- [x: string & Record<never, never>]: any;
229
- }): {
230
- display: "flex";
231
- alignItems: "center";
232
- justifyContent: any;
233
- gap: any;
234
- flexDirection: "column";
235
- };
236
- };
237
- hstack: {
238
- properties: {
239
- justify: {
240
- type: "property";
241
- value: "justifyContent";
242
- };
243
- gap: {
244
- type: "property";
245
- value: "gap";
246
- };
247
- };
248
- defaultValues: {
249
- gap: string;
250
- };
251
- transform(props: {
252
- [x: string]: any;
253
- [x: number]: any;
254
- [x: string & Record<never, never>]: any;
255
- }): {
256
- display: "flex";
257
- alignItems: "center";
258
- justifyContent: any;
259
- gap: any;
260
- flexDirection: "row";
261
- };
262
- };
263
176
  spacer: {
264
177
  properties: {
265
178
  size: {
@@ -282,28 +195,11 @@ declare const defaultPresets: ({
282
195
  flex: any;
283
196
  };
284
197
  };
285
- square: {
198
+ center: {
286
199
  properties: {
287
- size: {
288
- type: "property";
289
- value: "width";
200
+ inline: {
201
+ type: "boolean";
290
202
  };
291
- };
292
- transform(props: {
293
- [x: string]: any;
294
- [x: number]: any;
295
- [x: string & Record<never, never>]: any;
296
- }): {
297
- display: "flex";
298
- alignItems: "center";
299
- justifyContent: "center";
300
- flex: "0 0 auto";
301
- width: any;
302
- height: any;
303
- };
304
- };
305
- circle: {
306
- properties: {
307
203
  size: {
308
204
  type: "property";
309
205
  value: "width";
@@ -314,29 +210,12 @@ declare const defaultPresets: ({
314
210
  [x: number]: any;
315
211
  [x: string & Record<never, never>]: any;
316
212
  }): {
317
- display: "flex";
213
+ display: "flex" | "inline-flex";
318
214
  alignItems: "center";
319
215
  justifyContent: "center";
320
- flex: "0 0 auto";
216
+ flex: "0 0 auto" | undefined;
321
217
  width: any;
322
218
  height: any;
323
- borderRadius: "9999px";
324
- };
325
- };
326
- center: {
327
- properties: {
328
- inline: {
329
- type: "boolean";
330
- };
331
- };
332
- transform(props: {
333
- [x: string]: any;
334
- [x: number]: any;
335
- [x: string & Record<never, never>]: any;
336
- }): {
337
- display: "flex" | "inline-flex";
338
- alignItems: "center";
339
- justifyContent: "center";
340
219
  };
341
220
  };
342
221
  linkOverlay: {
@@ -468,43 +347,6 @@ declare const defaultPresets: ({
468
347
  gridRowEnd: any;
469
348
  };
470
349
  };
471
- wrap: {
472
- properties: {
473
- gap: {
474
- type: "property";
475
- value: "gap";
476
- };
477
- rowGap: {
478
- type: "property";
479
- value: "gap";
480
- };
481
- columnGap: {
482
- type: "property";
483
- value: "gap";
484
- };
485
- align: {
486
- type: "property";
487
- value: "alignItems";
488
- };
489
- justify: {
490
- type: "property";
491
- value: "justifyContent";
492
- };
493
- };
494
- transform(props: {
495
- [x: string]: any;
496
- [x: number]: any;
497
- [x: string & Record<never, never>]: any;
498
- }): {
499
- display: "flex";
500
- flexWrap: "wrap";
501
- alignItems: any;
502
- justifyContent: any;
503
- gap: any;
504
- columnGap: any;
505
- rowGap: any;
506
- };
507
- };
508
350
  container: {
509
351
  transform(props: {
510
352
  [x: string]: any;
@@ -638,30 +480,6 @@ declare const defaultPresets: ({
638
480
  marginBlock: "calc(var(--bleed-y, 0) * -1)";
639
481
  };
640
482
  };
641
- cq: {
642
- properties: {
643
- name: {
644
- type: "token";
645
- value: "containerNames";
646
- property: "containerName";
647
- };
648
- type: {
649
- type: "property";
650
- value: "containerType";
651
- };
652
- };
653
- defaultValues: {
654
- type: string;
655
- };
656
- transform(props: {
657
- [x: string]: any;
658
- [x: number]: any;
659
- [x: string & Record<never, never>]: any;
660
- }): {
661
- containerType: any;
662
- containerName: any;
663
- };
664
- };
665
483
  };
666
484
  } | {
667
485
  name: string;
@@ -1926,7 +1744,7 @@ declare const defaultPresets: ({
1926
1744
  };
1927
1745
  };
1928
1746
  };
1929
- textStyles: import("@bamboocss/types").TextStyles;
1747
+ mixins: import("@bamboocss/types").Mixins;
1930
1748
  containerSizes: {
1931
1749
  xs: string;
1932
1750
  sm: string;
@@ -173,93 +173,6 @@ declare const defaultPresets: ({
173
173
  flexShrink: any;
174
174
  };
175
175
  };
176
- stack: {
177
- properties: {
178
- align: {
179
- type: "property";
180
- value: "alignItems";
181
- };
182
- justify: {
183
- type: "property";
184
- value: "justifyContent";
185
- };
186
- direction: {
187
- type: "property";
188
- value: "flexDirection";
189
- };
190
- gap: {
191
- type: "property";
192
- value: "gap";
193
- };
194
- };
195
- defaultValues: {
196
- direction: string;
197
- gap: string;
198
- };
199
- transform(props: {
200
- [x: string]: any;
201
- [x: number]: any;
202
- [x: string & Record<never, never>]: any;
203
- }): {
204
- display: "flex";
205
- flexDirection: any;
206
- alignItems: any;
207
- justifyContent: any;
208
- gap: any;
209
- };
210
- };
211
- vstack: {
212
- properties: {
213
- justify: {
214
- type: "property";
215
- value: "justifyContent";
216
- };
217
- gap: {
218
- type: "property";
219
- value: "gap";
220
- };
221
- };
222
- defaultValues: {
223
- gap: string;
224
- };
225
- transform(props: {
226
- [x: string]: any;
227
- [x: number]: any;
228
- [x: string & Record<never, never>]: any;
229
- }): {
230
- display: "flex";
231
- alignItems: "center";
232
- justifyContent: any;
233
- gap: any;
234
- flexDirection: "column";
235
- };
236
- };
237
- hstack: {
238
- properties: {
239
- justify: {
240
- type: "property";
241
- value: "justifyContent";
242
- };
243
- gap: {
244
- type: "property";
245
- value: "gap";
246
- };
247
- };
248
- defaultValues: {
249
- gap: string;
250
- };
251
- transform(props: {
252
- [x: string]: any;
253
- [x: number]: any;
254
- [x: string & Record<never, never>]: any;
255
- }): {
256
- display: "flex";
257
- alignItems: "center";
258
- justifyContent: any;
259
- gap: any;
260
- flexDirection: "row";
261
- };
262
- };
263
176
  spacer: {
264
177
  properties: {
265
178
  size: {
@@ -282,28 +195,11 @@ declare const defaultPresets: ({
282
195
  flex: any;
283
196
  };
284
197
  };
285
- square: {
198
+ center: {
286
199
  properties: {
287
- size: {
288
- type: "property";
289
- value: "width";
200
+ inline: {
201
+ type: "boolean";
290
202
  };
291
- };
292
- transform(props: {
293
- [x: string]: any;
294
- [x: number]: any;
295
- [x: string & Record<never, never>]: any;
296
- }): {
297
- display: "flex";
298
- alignItems: "center";
299
- justifyContent: "center";
300
- flex: "0 0 auto";
301
- width: any;
302
- height: any;
303
- };
304
- };
305
- circle: {
306
- properties: {
307
203
  size: {
308
204
  type: "property";
309
205
  value: "width";
@@ -314,29 +210,12 @@ declare const defaultPresets: ({
314
210
  [x: number]: any;
315
211
  [x: string & Record<never, never>]: any;
316
212
  }): {
317
- display: "flex";
213
+ display: "flex" | "inline-flex";
318
214
  alignItems: "center";
319
215
  justifyContent: "center";
320
- flex: "0 0 auto";
216
+ flex: "0 0 auto" | undefined;
321
217
  width: any;
322
218
  height: any;
323
- borderRadius: "9999px";
324
- };
325
- };
326
- center: {
327
- properties: {
328
- inline: {
329
- type: "boolean";
330
- };
331
- };
332
- transform(props: {
333
- [x: string]: any;
334
- [x: number]: any;
335
- [x: string & Record<never, never>]: any;
336
- }): {
337
- display: "flex" | "inline-flex";
338
- alignItems: "center";
339
- justifyContent: "center";
340
219
  };
341
220
  };
342
221
  linkOverlay: {
@@ -468,43 +347,6 @@ declare const defaultPresets: ({
468
347
  gridRowEnd: any;
469
348
  };
470
349
  };
471
- wrap: {
472
- properties: {
473
- gap: {
474
- type: "property";
475
- value: "gap";
476
- };
477
- rowGap: {
478
- type: "property";
479
- value: "gap";
480
- };
481
- columnGap: {
482
- type: "property";
483
- value: "gap";
484
- };
485
- align: {
486
- type: "property";
487
- value: "alignItems";
488
- };
489
- justify: {
490
- type: "property";
491
- value: "justifyContent";
492
- };
493
- };
494
- transform(props: {
495
- [x: string]: any;
496
- [x: number]: any;
497
- [x: string & Record<never, never>]: any;
498
- }): {
499
- display: "flex";
500
- flexWrap: "wrap";
501
- alignItems: any;
502
- justifyContent: any;
503
- gap: any;
504
- columnGap: any;
505
- rowGap: any;
506
- };
507
- };
508
350
  container: {
509
351
  transform(props: {
510
352
  [x: string]: any;
@@ -638,30 +480,6 @@ declare const defaultPresets: ({
638
480
  marginBlock: "calc(var(--bleed-y, 0) * -1)";
639
481
  };
640
482
  };
641
- cq: {
642
- properties: {
643
- name: {
644
- type: "token";
645
- value: "containerNames";
646
- property: "containerName";
647
- };
648
- type: {
649
- type: "property";
650
- value: "containerType";
651
- };
652
- };
653
- defaultValues: {
654
- type: string;
655
- };
656
- transform(props: {
657
- [x: string]: any;
658
- [x: number]: any;
659
- [x: string & Record<never, never>]: any;
660
- }): {
661
- containerType: any;
662
- containerName: any;
663
- };
664
- };
665
483
  };
666
484
  } | {
667
485
  name: string;
@@ -1926,7 +1744,7 @@ declare const defaultPresets: ({
1926
1744
  };
1927
1745
  };
1928
1746
  };
1929
- textStyles: import("@bamboocss/types").TextStyles;
1747
+ mixins: import("@bamboocss/types").Mixins;
1930
1748
  containerSizes: {
1931
1749
  xs: string;
1932
1750
  sm: string;
package/dist/types.d.cts CHANGED
@@ -14,7 +14,6 @@ interface CssGenCommandFlags {
14
14
  silent?: boolean;
15
15
  clean?: boolean;
16
16
  outfile?: string;
17
- minimal?: boolean;
18
17
  watch?: boolean;
19
18
  poll?: boolean;
20
19
  cwd?: string;
package/dist/types.d.mts CHANGED
@@ -14,7 +14,6 @@ interface CssGenCommandFlags {
14
14
  silent?: boolean;
15
15
  clean?: boolean;
16
16
  outfile?: string;
17
- minimal?: boolean;
18
17
  watch?: boolean;
19
18
  poll?: boolean;
20
19
  cwd?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bamboocss/dev",
3
- "version": "1.31.0",
3
+ "version": "1.32.0",
4
4
  "description": "Build-time, type-safe, zero-runtime CSS-in-JS",
5
5
  "homepage": "https://bamboocss.com",
6
6
  "license": "MIT",
@@ -54,14 +54,14 @@
54
54
  "dependencies": {
55
55
  "@clack/prompts": "0.11.0",
56
56
  "cac": "6.7.14",
57
- "@bamboocss/logger": "1.31.0",
58
- "@bamboocss/node": "1.31.0",
59
- "@bamboocss/postcss": "1.31.0",
60
- "@bamboocss/preset-bamboo": "1.31.0",
61
- "@bamboocss/preset-base": "1.31.0",
62
- "@bamboocss/shared": "1.31.0",
63
- "@bamboocss/token-dictionary": "1.31.0",
64
- "@bamboocss/types": "1.31.0"
57
+ "@bamboocss/logger": "1.32.0",
58
+ "@bamboocss/node": "1.32.0",
59
+ "@bamboocss/postcss": "1.32.0",
60
+ "@bamboocss/preset-bamboo": "1.32.0",
61
+ "@bamboocss/preset-base": "1.32.0",
62
+ "@bamboocss/shared": "1.32.0",
63
+ "@bamboocss/token-dictionary": "1.32.0",
64
+ "@bamboocss/types": "1.32.0"
65
65
  },
66
66
  "devDependencies": {
67
67
  "@types/update-notifier": "6.0.8",