@bamboocss/dev 1.57.6 → 1.58.1

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.
@@ -127,7 +127,7 @@ function isLocError(error) {
127
127
  //#endregion
128
128
  //#region package.json
129
129
  var name = "@bamboocss/dev";
130
- var version = "1.57.6";
130
+ var version = "1.58.1";
131
131
  //#endregion
132
132
  //#region src/cli-main.ts
133
133
  /**
@@ -125,7 +125,7 @@ function isLocError(error) {
125
125
  //#endregion
126
126
  //#region package.json
127
127
  var name = "@bamboocss/dev";
128
- var version = "1.57.6";
128
+ var version = "1.58.1";
129
129
  //#endregion
130
130
  //#region src/cli-main.ts
131
131
  /**
package/dist/cli-main.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  require("./chunk-CKQMccvm.cjs");
3
- const require_package = require("./package-DuiY_P2y.cjs");
3
+ const require_package = require("./package-BDSmdG41.cjs");
4
4
  let _bamboocss_logger = require("@bamboocss/logger");
5
5
  let _bamboocss_node = require("@bamboocss/node");
6
6
  let _bamboocss_shared = require("@bamboocss/shared");
@@ -91,7 +91,7 @@ async function main() {
91
91
  cli.command("init", "Initialize the bamboo config file").option("-i, --interactive", "Run in interactive mode", { default: false }).option("-f, --force", "Force overwrite existing config file").option("-c, --config <path>", "Path to bamboo config file").option("--cwd <cwd>", "Current working directory", { default: cwd }).option("--silent", "Suppress all messages except errors").option("--no-gitignore", "Don't update the .gitignore").option("--no-codegen", "Don't run the codegen logic").option("--out-extension <ext>", "The extension of the generated js files (default: 'mjs')").option("--outdir <dir>", "The output directory for the generated files").option("--strict-values [mode]", "Require every style value to be a token, so a raw css value is written `[14px]`").option("--logfile <file>", "Outputs logs to a file").action(async (initFlags = {}) => {
92
92
  let options = {};
93
93
  if (initFlags.interactive) {
94
- const { interactive } = await Promise.resolve().then(() => require("./interactive-DXdT17Hd.cjs"));
94
+ const { interactive } = await Promise.resolve().then(() => require("./interactive-Da4_fiyf.cjs"));
95
95
  options = await interactive({ cwd: (0, node_path.resolve)(initFlags.cwd ?? "") });
96
96
  }
97
97
  const flags = {
@@ -463,7 +463,7 @@ async function main() {
463
463
  process.exitCode = 1;
464
464
  });
465
465
  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) => {
466
- const { initMcpConfig } = await Promise.resolve().then(() => require("./mcp-init-6NjTQNyZ.cjs"));
466
+ const { initMcpConfig } = await Promise.resolve().then(() => require("./mcp-init-D4XOoR05.cjs"));
467
467
  const resolvedCwd = (0, node_path.resolve)(mcpInitFlags.cwd ?? cwd);
468
468
  let clients;
469
469
  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-CHpoBOEt.mjs";
1
+ import { t as version } from "./package-Cls6GqVK.mjs";
2
2
  import { logger } from "@bamboocss/logger";
3
3
  import { BambooContext, analyze, artifactsToRebuild, buildInfo, codegen, cssgen, debug, doctor, formatDoctorReport, generate, generatePackageExports, loadConfigAndCreateContext, setLogStream, setupConfig, setupGitIgnore, spec, startProfiling } from "@bamboocss/node";
4
4
  import { BambooError, closestMatch, compact } from "@bamboocss/shared";
@@ -89,7 +89,7 @@ async function main() {
89
89
  cli.command("init", "Initialize the bamboo config file").option("-i, --interactive", "Run in interactive mode", { default: false }).option("-f, --force", "Force overwrite existing config file").option("-c, --config <path>", "Path to bamboo config file").option("--cwd <cwd>", "Current working directory", { default: cwd }).option("--silent", "Suppress all messages except errors").option("--no-gitignore", "Don't update the .gitignore").option("--no-codegen", "Don't run the codegen logic").option("--out-extension <ext>", "The extension of the generated js files (default: 'mjs')").option("--outdir <dir>", "The output directory for the generated files").option("--strict-values [mode]", "Require every style value to be a token, so a raw css value is written `[14px]`").option("--logfile <file>", "Outputs logs to a file").action(async (initFlags = {}) => {
90
90
  let options = {};
91
91
  if (initFlags.interactive) {
92
- const { interactive } = await import("./interactive-Du8F8wAN.mjs");
92
+ const { interactive } = await import("./interactive-BgKHl_kc.mjs");
93
93
  options = await interactive({ cwd: resolve(initFlags.cwd ?? "") });
94
94
  }
95
95
  const flags = {
@@ -461,7 +461,7 @@ async function main() {
461
461
  process.exitCode = 1;
462
462
  });
463
463
  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) => {
464
- const { initMcpConfig } = await import("./mcp-init-5lHBiNOT.mjs");
464
+ const { initMcpConfig } = await import("./mcp-init-E7LKCS0j.mjs");
465
465
  const resolvedCwd = resolve(mcpInitFlags.cwd ?? cwd);
466
466
  let clients;
467
467
  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
@@ -18,6 +18,10 @@ function definePreset(preset) {
18
18
  function defineKeyframes(keyframes) {
19
19
  return keyframes;
20
20
  }
21
+ /** The conditions of a config, or of a preset: `conditions: defineConditions({ dark: '.dark &' })`. */
22
+ function defineConditions(definition) {
23
+ return definition;
24
+ }
21
25
  function defineGlobalStyles(definition) {
22
26
  return definition;
23
27
  }
@@ -51,6 +55,7 @@ function defineStyles(definition) {
51
55
  return definition;
52
56
  }
53
57
  //#endregion
58
+ exports.defineConditions = defineConditions;
54
59
  exports.defineConfig = defineConfig;
55
60
  exports.defineGlobalFontface = defineGlobalFontface;
56
61
  exports.defineGlobalStyles = defineGlobalStyles;
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
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";
1
+ import { BambooPlugin, CompositionStyles, Config, CssKeyframes, ExtendableConditions, 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 & {
@@ -9,6 +9,8 @@ declare function defineSlotRecipe<S extends string, T extends SlotRecipeVariantR
9
9
  declare function definePattern<T extends PatternConfig>(config: T): PatternConfig;
10
10
  declare function definePreset(preset: Preset): Preset;
11
11
  declare function defineKeyframes(keyframes: CssKeyframes): CssKeyframes;
12
+ /** The conditions of a config, or of a preset: `conditions: defineConditions({ dark: '.dark &' })`. */
13
+ declare function defineConditions(definition: ExtendableConditions): ExtendableConditions;
12
14
  declare function defineGlobalStyles(definition: GlobalStyleObject): GlobalStyleObject;
13
15
  declare function defineGlobalFontface(definition: GlobalFontface): GlobalFontface;
14
16
  declare function defineUtility(utility: PropertyConfig): PropertyConfig;
@@ -23,4 +25,4 @@ declare const defineSemanticTokens: ProxyValue<SemanticTokens>;
23
25
  declare function defineMixins(definition: CompositionStyles['mixins']): Mixins;
24
26
  declare function defineStyles(definition: SystemStyleObject): SystemStyleObject;
25
27
  //#endregion
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 };
28
+ export { type CompositionStyles, type Config, type CssKeyframes, type ExtendableConditions, 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, defineConditions, 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 { BambooPlugin, CompositionStyles, Config, CssKeyframes, GlobalFontface, GlobalStyleObject, HooksApiInterface, Mixins, PatternConfig, PatternProperties, Preset, PropertyConfig, RecipeConfig, RecipeVariantRecord, SemanticTokens, SlotRecipeConfig, SlotRecipeVariantRecord, SystemStyleObject, ThemeVariant, Tokens } from "@bamboocss/types";
1
+ import { BambooPlugin, CompositionStyles, Config, CssKeyframes, ExtendableConditions, 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 & {
@@ -9,6 +9,8 @@ declare function defineSlotRecipe<S extends string, T extends SlotRecipeVariantR
9
9
  declare function definePattern<T extends PatternConfig>(config: T): PatternConfig;
10
10
  declare function definePreset(preset: Preset): Preset;
11
11
  declare function defineKeyframes(keyframes: CssKeyframes): CssKeyframes;
12
+ /** The conditions of a config, or of a preset: `conditions: defineConditions({ dark: '.dark &' })`. */
13
+ declare function defineConditions(definition: ExtendableConditions): ExtendableConditions;
12
14
  declare function defineGlobalStyles(definition: GlobalStyleObject): GlobalStyleObject;
13
15
  declare function defineGlobalFontface(definition: GlobalFontface): GlobalFontface;
14
16
  declare function defineUtility(utility: PropertyConfig): PropertyConfig;
@@ -23,4 +25,4 @@ declare const defineSemanticTokens: ProxyValue<SemanticTokens>;
23
25
  declare function defineMixins(definition: CompositionStyles['mixins']): Mixins;
24
26
  declare function defineStyles(definition: SystemStyleObject): SystemStyleObject;
25
27
  //#endregion
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 };
28
+ export { type CompositionStyles, type Config, type CssKeyframes, type ExtendableConditions, 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, defineConditions, defineConfig, defineGlobalFontface, defineGlobalStyles, defineKeyframes, defineMixins, definePattern, definePlugin, definePreset, defineRecipe, defineSemanticTokens, defineSlotRecipe, defineStyles, defineThemeContract, defineThemeVariant, defineTokens, defineUtility };
package/dist/index.mjs CHANGED
@@ -17,6 +17,10 @@ function definePreset(preset) {
17
17
  function defineKeyframes(keyframes) {
18
18
  return keyframes;
19
19
  }
20
+ /** The conditions of a config, or of a preset: `conditions: defineConditions({ dark: '.dark &' })`. */
21
+ function defineConditions(definition) {
22
+ return definition;
23
+ }
20
24
  function defineGlobalStyles(definition) {
21
25
  return definition;
22
26
  }
@@ -50,4 +54,4 @@ function defineStyles(definition) {
50
54
  return definition;
51
55
  }
52
56
  //#endregion
53
- export { defineConfig, defineGlobalFontface, defineGlobalStyles, defineKeyframes, defineMixins, definePattern, definePlugin, definePreset, defineRecipe, defineSemanticTokens, defineSlotRecipe, defineStyles, defineThemeContract, defineThemeVariant, defineTokens, defineUtility };
57
+ export { defineConditions, defineConfig, defineGlobalFontface, defineGlobalStyles, defineKeyframes, defineMixins, definePattern, definePlugin, definePreset, defineRecipe, defineSemanticTokens, defineSlotRecipe, defineStyles, defineThemeContract, defineThemeVariant, defineTokens, defineUtility };
@@ -1,4 +1,4 @@
1
- import { t as version } from "./package-CHpoBOEt.mjs";
1
+ import { t as version } from "./package-Cls6GqVK.mjs";
2
2
  import * as p from "@clack/prompts";
3
3
  //#region src/interactive.ts
4
4
  const interactive = async (_options = {}) => {
@@ -1,5 +1,5 @@
1
1
  const require_chunk = require("./chunk-CKQMccvm.cjs");
2
- const require_package = require("./package-DuiY_P2y.cjs");
2
+ const require_package = require("./package-BDSmdG41.cjs");
3
3
  let _clack_prompts = require("@clack/prompts");
4
4
  _clack_prompts = require_chunk.__toESM(_clack_prompts);
5
5
  //#region src/interactive.ts
@@ -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.57.6";
27
+ var version = "1.58.1";
28
28
  //#endregion
29
29
  //#region src/interactive.ts
30
30
  const interactive = async (_options = {}) => {
@@ -1,6 +1,6 @@
1
1
  import * as p from "@clack/prompts";
2
2
  //#region package.json
3
- var version = "1.57.6";
3
+ var version = "1.58.1";
4
4
  //#endregion
5
5
  //#region src/interactive.ts
6
6
  const interactive = async (_options = {}) => {
@@ -1,5 +1,5 @@
1
1
  const require_chunk = require("./chunk-CKQMccvm.cjs");
2
- const require_package = require("./package-DuiY_P2y.cjs");
2
+ const require_package = require("./package-BDSmdG41.cjs");
3
3
  let _bamboocss_logger = require("@bamboocss/logger");
4
4
  let node_fs = require("node:fs");
5
5
  let node_path = require("node:path");
@@ -1,4 +1,4 @@
1
- import { t as version } from "./package-CHpoBOEt.mjs";
1
+ import { t as version } from "./package-Cls6GqVK.mjs";
2
2
  import { logger } from "@bamboocss/logger";
3
3
  import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
4
4
  import { dirname, resolve } from "node:path";
@@ -1,5 +1,5 @@
1
1
  //#region package.json
2
- var version = "1.57.6";
2
+ var version = "1.58.1";
3
3
  //#endregion
4
4
  Object.defineProperty(exports, "version", {
5
5
  enumerable: true,
@@ -1,4 +1,4 @@
1
1
  //#region package.json
2
- var version = "1.57.6";
2
+ var version = "1.58.1";
3
3
  //#endregion
4
4
  export { version as t };
package/dist/presets.cjs CHANGED
@@ -24,3 +24,4 @@ exports.default = presets_default;
24
24
  exports.defaultPresets = defaultPresets;
25
25
  exports.presetBamboo = _bamboocss_preset_bamboo.preset;
26
26
  exports.presetBase = _bamboocss_preset_base.preset;
27
+ exports.typographyPreset = _bamboocss_preset_bamboo.typographyPreset;
@@ -1,4 +1,4 @@
1
- import { preset as presetBamboo } from "@bamboocss/preset-bamboo";
1
+ import { ProseSize, TypographyPresetOptions, preset as presetBamboo, typographyPreset } from "@bamboocss/preset-bamboo";
2
2
  import { preset as presetBase } from "@bamboocss/preset-base";
3
3
 
4
4
  //#region src/presets.d.ts
@@ -74,6 +74,8 @@ declare const defaultPresets: ({
74
74
  required: string;
75
75
  valid: string;
76
76
  invalid: string;
77
+ userValid: string;
78
+ userInvalid: string;
77
79
  autofill: string;
78
80
  inRange: string;
79
81
  outOfRange: string;
@@ -92,6 +94,7 @@ declare const defaultPresets: ({
92
94
  fullscreen: string;
93
95
  loading: string;
94
96
  hidden: string;
97
+ inert: string;
95
98
  current: string;
96
99
  currentPage: string;
97
100
  currentStep: string;
@@ -124,6 +127,12 @@ declare const defaultPresets: ({
124
127
  starting: string;
125
128
  noscript: string;
126
129
  invertedColors: string;
130
+ pointerFine: string;
131
+ pointerCoarse: string;
132
+ pointerNone: string;
133
+ anyPointerFine: string;
134
+ anyPointerCoarse: string;
135
+ anyPointerNone: string;
127
136
  };
128
137
  utilities: import("@bamboocss/types").UtilityConfig;
129
138
  patterns: {
@@ -1763,4 +1772,4 @@ declare const defaultPresets: ({
1763
1772
  };
1764
1773
  })[];
1765
1774
  //#endregion
1766
- export { presetBamboo as default, presetBamboo, defaultPresets, presetBase };
1775
+ export { type ProseSize, type TypographyPresetOptions, presetBamboo as default, presetBamboo, defaultPresets, presetBase, typographyPreset };
@@ -1,4 +1,4 @@
1
- import { preset as presetBamboo } from "@bamboocss/preset-bamboo";
1
+ import { ProseSize, TypographyPresetOptions, preset as presetBamboo, typographyPreset } from "@bamboocss/preset-bamboo";
2
2
  import { preset as presetBase } from "@bamboocss/preset-base";
3
3
 
4
4
  //#region src/presets.d.ts
@@ -74,6 +74,8 @@ declare const defaultPresets: ({
74
74
  required: string;
75
75
  valid: string;
76
76
  invalid: string;
77
+ userValid: string;
78
+ userInvalid: string;
77
79
  autofill: string;
78
80
  inRange: string;
79
81
  outOfRange: string;
@@ -92,6 +94,7 @@ declare const defaultPresets: ({
92
94
  fullscreen: string;
93
95
  loading: string;
94
96
  hidden: string;
97
+ inert: string;
95
98
  current: string;
96
99
  currentPage: string;
97
100
  currentStep: string;
@@ -124,6 +127,12 @@ declare const defaultPresets: ({
124
127
  starting: string;
125
128
  noscript: string;
126
129
  invertedColors: string;
130
+ pointerFine: string;
131
+ pointerCoarse: string;
132
+ pointerNone: string;
133
+ anyPointerFine: string;
134
+ anyPointerCoarse: string;
135
+ anyPointerNone: string;
127
136
  };
128
137
  utilities: import("@bamboocss/types").UtilityConfig;
129
138
  patterns: {
@@ -1763,4 +1772,4 @@ declare const defaultPresets: ({
1763
1772
  };
1764
1773
  })[];
1765
1774
  //#endregion
1766
- export { presetBamboo as default, presetBamboo, defaultPresets, presetBase };
1775
+ export { type ProseSize, type TypographyPresetOptions, presetBamboo as default, presetBamboo, defaultPresets, presetBase, typographyPreset };
package/dist/presets.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { preset as presetBamboo } from "@bamboocss/preset-bamboo";
1
+ import { preset as presetBamboo, typographyPreset } from "@bamboocss/preset-bamboo";
2
2
  import { preset as presetBase } from "@bamboocss/preset-base";
3
3
  //#region src/presets.ts
4
4
  /**
@@ -16,4 +16,4 @@ import { preset as presetBase } from "@bamboocss/preset-base";
16
16
  const defaultPresets = [presetBase, presetBamboo];
17
17
  var presets_default = presetBamboo;
18
18
  //#endregion
19
- export { presets_default as default, defaultPresets, presetBamboo, presetBase };
19
+ export { presets_default as default, defaultPresets, presetBamboo, presetBase, typographyPreset };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bamboocss/dev",
3
- "version": "1.57.6",
3
+ "version": "1.58.1",
4
4
  "description": "Build-time, type-safe, zero-runtime CSS-in-JS",
5
5
  "homepage": "https://bamboocss.com",
6
6
  "license": "MIT",
@@ -52,13 +52,13 @@
52
52
  "dependencies": {
53
53
  "@clack/prompts": "0.11.0",
54
54
  "cac": "6.7.14",
55
- "@bamboocss/logger": "1.57.6",
56
- "@bamboocss/node": "1.57.6",
57
- "@bamboocss/preset-bamboo": "1.57.6",
58
- "@bamboocss/preset-base": "1.57.6",
59
- "@bamboocss/shared": "1.57.6",
60
- "@bamboocss/token-dictionary": "1.57.6",
61
- "@bamboocss/types": "1.57.6"
55
+ "@bamboocss/logger": "1.58.1",
56
+ "@bamboocss/node": "1.58.1",
57
+ "@bamboocss/preset-bamboo": "1.58.1",
58
+ "@bamboocss/preset-base": "1.58.1",
59
+ "@bamboocss/shared": "1.58.1",
60
+ "@bamboocss/token-dictionary": "1.58.1",
61
+ "@bamboocss/types": "1.58.1"
62
62
  },
63
63
  "devDependencies": {
64
64
  "@types/update-notifier": "6.0.8",