@bamboocss/dev 1.12.1 → 1.12.3

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.12.1";
7630
+ var version = "1.12.3";
7631
7631
  //#endregion
7632
7632
  //#region src/interactive.ts
7633
7633
  const interactive = async () => {
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1 @@
1
+ export { };
@@ -7631,7 +7631,7 @@ function isLocError(error) {
7631
7631
  //#endregion
7632
7632
  //#region package.json
7633
7633
  var name = "@bamboocss/dev";
7634
- var version = "1.12.1";
7634
+ var version = "1.12.3";
7635
7635
  //#endregion
7636
7636
  //#region src/interactive.ts
7637
7637
  const interactive = async () => {
package/dist/cli-main.cjs CHANGED
@@ -30,7 +30,7 @@ let path = require("path");
30
30
  let _clack_prompts = require("@clack/prompts");
31
31
  _clack_prompts = __toESM(_clack_prompts);
32
32
  //#region package.json
33
- var version = "1.12.1";
33
+ var version = "1.12.3";
34
34
  //#endregion
35
35
  //#region src/interactive.ts
36
36
  const interactive = async () => {
@@ -0,0 +1,4 @@
1
+ //#region src/cli-main.d.ts
2
+ declare function main(): Promise<void>;
3
+ //#endregion
4
+ export { main };
@@ -0,0 +1,4 @@
1
+ //#region src/cli-main.d.ts
2
+ declare function main(): Promise<void>;
3
+ //#endregion
4
+ export { main };
package/dist/cli-main.mjs CHANGED
@@ -10,7 +10,7 @@ import * as p from "@clack/prompts";
10
10
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
11
11
  //#endregion
12
12
  //#region package.json
13
- var version = "1.12.1";
13
+ var version = "1.12.3";
14
14
  //#endregion
15
15
  //#region src/interactive.ts
16
16
  const interactive = async () => {
@@ -0,0 +1,4 @@
1
+ //#region src/errors.d.ts
2
+ declare function handleError(error: unknown): void;
3
+ //#endregion
4
+ export { handleError };
@@ -0,0 +1,4 @@
1
+ //#region src/errors.d.ts
2
+ declare function handleError(error: unknown): void;
3
+ //#endregion
4
+ export { handleError };
@@ -0,0 +1,29 @@
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";
2
+
3
+ //#region src/index.d.ts
4
+ declare function defineConfig(config: Config): Config & {
5
+ name: string;
6
+ };
7
+ declare function defineRecipe<T extends RecipeVariantRecord>(config: RecipeConfig<T>): RecipeConfig;
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
+ declare function definePattern<T extends PatternConfig>(config: T): PatternConfig;
11
+ declare function definePreset(preset: Preset): Preset;
12
+ declare function defineKeyframes(keyframes: CssKeyframes): CssKeyframes;
13
+ declare function defineGlobalStyles(definition: GlobalStyleObject): GlobalStyleObject;
14
+ declare function defineGlobalFontface(definition: GlobalFontface): GlobalFontface;
15
+ declare function defineUtility(utility: PropertyConfig): PropertyConfig;
16
+ declare function definePlugin(plugin: BambooPlugin): BambooPlugin;
17
+ declare function defineThemeVariant<T extends ThemeVariant>(theme: T): T;
18
+ declare function defineThemeContract<C extends Partial<Omit<ThemeVariant, 'selector'>>>(_contract: C): <T extends C & ThemeVariant>(theme: T) => T;
19
+ type ProxyValue<T> = {
20
+ <Value>(definition: Value extends T ? Value : T): Value;
21
+ } & { [K in keyof Required<T>]: <Value>(definition: Value extends T[K] ? Value : T[K]) => Value };
22
+ declare const defineTokens: ProxyValue<Tokens>;
23
+ declare const defineSemanticTokens: ProxyValue<SemanticTokens>;
24
+ declare function defineTextStyles(definition: CompositionStyles['textStyles']): TextStyles;
25
+ declare function defineLayerStyles(definition: CompositionStyles['layerStyles']): LayerStyles;
26
+ declare function defineStyles(definition: SystemStyleObject): SystemStyleObject;
27
+ declare function defineAnimationStyles(definition: CompositionStyles['animationStyles']): AnimationStyles;
28
+ //#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 };
@@ -0,0 +1,29 @@
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";
2
+
3
+ //#region src/index.d.ts
4
+ declare function defineConfig(config: Config): Config & {
5
+ name: string;
6
+ };
7
+ declare function defineRecipe<T extends RecipeVariantRecord>(config: RecipeConfig<T>): RecipeConfig;
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
+ declare function definePattern<T extends PatternConfig>(config: T): PatternConfig;
11
+ declare function definePreset(preset: Preset): Preset;
12
+ declare function defineKeyframes(keyframes: CssKeyframes): CssKeyframes;
13
+ declare function defineGlobalStyles(definition: GlobalStyleObject): GlobalStyleObject;
14
+ declare function defineGlobalFontface(definition: GlobalFontface): GlobalFontface;
15
+ declare function defineUtility(utility: PropertyConfig): PropertyConfig;
16
+ declare function definePlugin(plugin: BambooPlugin): BambooPlugin;
17
+ declare function defineThemeVariant<T extends ThemeVariant>(theme: T): T;
18
+ declare function defineThemeContract<C extends Partial<Omit<ThemeVariant, 'selector'>>>(_contract: C): <T extends C & ThemeVariant>(theme: T) => T;
19
+ type ProxyValue<T> = {
20
+ <Value>(definition: Value extends T ? Value : T): Value;
21
+ } & { [K in keyof Required<T>]: <Value>(definition: Value extends T[K] ? Value : T[K]) => Value };
22
+ declare const defineTokens: ProxyValue<Tokens>;
23
+ declare const defineSemanticTokens: ProxyValue<SemanticTokens>;
24
+ declare function defineTextStyles(definition: CompositionStyles['textStyles']): TextStyles;
25
+ declare function defineLayerStyles(definition: CompositionStyles['layerStyles']): LayerStyles;
26
+ declare function defineStyles(definition: SystemStyleObject): SystemStyleObject;
27
+ declare function defineAnimationStyles(definition: CompositionStyles['animationStyles']): AnimationStyles;
28
+ //#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 };
@@ -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.12.1";
27
+ var version = "1.12.3";
28
28
  //#endregion
29
29
  //#region src/interactive.ts
30
30
  const interactive = async () => {
@@ -0,0 +1,11 @@
1
+ //#region src/interactive.d.ts
2
+ declare const interactive: () => Promise<InitFlags>;
3
+ interface InitFlags {
4
+ postcss: boolean;
5
+ outExtension: string;
6
+ jsxFramework: string;
7
+ syntax: string;
8
+ gitignore: boolean;
9
+ }
10
+ //#endregion
11
+ export { InitFlags, interactive };
@@ -0,0 +1,11 @@
1
+ //#region src/interactive.d.ts
2
+ declare const interactive: () => Promise<InitFlags>;
3
+ interface InitFlags {
4
+ postcss: boolean;
5
+ outExtension: string;
6
+ jsxFramework: string;
7
+ syntax: string;
8
+ gitignore: boolean;
9
+ }
10
+ //#endregion
11
+ export { InitFlags, interactive };
@@ -1,6 +1,6 @@
1
1
  import * as p from "@clack/prompts";
2
2
  //#region package.json
3
- var version = "1.12.1";
3
+ var version = "1.12.3";
4
4
  //#endregion
5
5
  //#region src/interactive.ts
6
6
  const interactive = async () => {
@@ -0,0 +1,2 @@
1
+ import presetTheme from "@bamboocss/preset-bamboo";
2
+ export = presetTheme;
@@ -0,0 +1,2 @@
1
+ import presetTheme from "@bamboocss/preset-bamboo";
2
+ export { presetTheme as default };
@@ -0,0 +1,107 @@
1
+ import { Config } from "@bamboocss/types";
2
+
3
+ //#region src/types.d.ts
4
+ interface InitCommandFlags extends Pick<Config, 'jsxFramework' | 'syntax' | 'cwd' | 'poll' | 'watch' | 'gitignore' | 'outExtension' | 'outdir'> {
5
+ force?: boolean;
6
+ postcss?: boolean;
7
+ silent?: boolean;
8
+ interactive?: boolean;
9
+ config?: string;
10
+ logfile?: string;
11
+ codegen?: boolean;
12
+ }
13
+ interface CssGenCommandFlags {
14
+ silent?: boolean;
15
+ clean?: boolean;
16
+ outfile?: string;
17
+ minimal?: boolean;
18
+ watch?: boolean;
19
+ poll?: boolean;
20
+ cwd?: string;
21
+ config?: string;
22
+ minify?: boolean;
23
+ lightningcss?: boolean;
24
+ polyfill?: boolean;
25
+ cpuProf?: boolean;
26
+ logfile?: string;
27
+ splitting?: boolean;
28
+ }
29
+ interface StudioCommandFlags extends Pick<Config, 'cwd'> {
30
+ build?: boolean;
31
+ preview?: boolean;
32
+ config?: string;
33
+ outdir?: string;
34
+ port?: string;
35
+ host?: boolean;
36
+ base?: string;
37
+ }
38
+ interface AnalyzeCommandFlags {
39
+ silent?: boolean;
40
+ outfile?: string;
41
+ cwd?: string;
42
+ config?: string;
43
+ scope?: 'token' | 'recipe';
44
+ }
45
+ interface DebugCommandFlags {
46
+ silent?: boolean;
47
+ dry?: boolean;
48
+ outdir?: string;
49
+ cwd?: string;
50
+ config?: string;
51
+ onlyConfig?: boolean;
52
+ cpuProf?: boolean;
53
+ logfile?: string;
54
+ }
55
+ interface ShipCommandFlags {
56
+ silent?: boolean;
57
+ minify?: boolean;
58
+ outfile?: string;
59
+ cwd?: string;
60
+ config?: string;
61
+ watch?: boolean;
62
+ poll?: boolean;
63
+ }
64
+ interface CodegenCommandFlags extends Pick<Config, 'cwd' | 'poll' | 'watch'> {
65
+ clean?: boolean;
66
+ silent?: boolean;
67
+ config?: string;
68
+ cpuProf?: boolean;
69
+ logfile?: string;
70
+ }
71
+ interface MainCommandFlags extends Pick<Config, 'cwd' | 'poll' | 'watch'> {
72
+ outdir?: string;
73
+ minify?: boolean;
74
+ config?: string;
75
+ cwd: string;
76
+ preflight?: boolean;
77
+ silent?: boolean;
78
+ exclude?: string[];
79
+ hash?: boolean;
80
+ emitTokensOnly?: boolean;
81
+ lightningcss?: boolean;
82
+ polyfill?: boolean;
83
+ cpuProf?: boolean;
84
+ logfile?: string;
85
+ }
86
+ interface EmitPackageCommandFlags {
87
+ outdir: string;
88
+ silent?: boolean;
89
+ cwd: string;
90
+ base?: string;
91
+ }
92
+ interface McpCommandFlags {
93
+ cwd?: string;
94
+ config?: string;
95
+ }
96
+ interface McpInitCommandFlags {
97
+ cwd?: string;
98
+ client?: string[];
99
+ }
100
+ interface SpecCommandFlags {
101
+ silent?: boolean;
102
+ outdir?: string;
103
+ cwd?: string;
104
+ config?: string;
105
+ }
106
+ //#endregion
107
+ export { AnalyzeCommandFlags, CodegenCommandFlags, CssGenCommandFlags, DebugCommandFlags, EmitPackageCommandFlags, InitCommandFlags, MainCommandFlags, McpCommandFlags, McpInitCommandFlags, ShipCommandFlags, SpecCommandFlags, StudioCommandFlags };
@@ -0,0 +1,107 @@
1
+ import { Config } from "@bamboocss/types";
2
+
3
+ //#region src/types.d.ts
4
+ interface InitCommandFlags extends Pick<Config, 'jsxFramework' | 'syntax' | 'cwd' | 'poll' | 'watch' | 'gitignore' | 'outExtension' | 'outdir'> {
5
+ force?: boolean;
6
+ postcss?: boolean;
7
+ silent?: boolean;
8
+ interactive?: boolean;
9
+ config?: string;
10
+ logfile?: string;
11
+ codegen?: boolean;
12
+ }
13
+ interface CssGenCommandFlags {
14
+ silent?: boolean;
15
+ clean?: boolean;
16
+ outfile?: string;
17
+ minimal?: boolean;
18
+ watch?: boolean;
19
+ poll?: boolean;
20
+ cwd?: string;
21
+ config?: string;
22
+ minify?: boolean;
23
+ lightningcss?: boolean;
24
+ polyfill?: boolean;
25
+ cpuProf?: boolean;
26
+ logfile?: string;
27
+ splitting?: boolean;
28
+ }
29
+ interface StudioCommandFlags extends Pick<Config, 'cwd'> {
30
+ build?: boolean;
31
+ preview?: boolean;
32
+ config?: string;
33
+ outdir?: string;
34
+ port?: string;
35
+ host?: boolean;
36
+ base?: string;
37
+ }
38
+ interface AnalyzeCommandFlags {
39
+ silent?: boolean;
40
+ outfile?: string;
41
+ cwd?: string;
42
+ config?: string;
43
+ scope?: 'token' | 'recipe';
44
+ }
45
+ interface DebugCommandFlags {
46
+ silent?: boolean;
47
+ dry?: boolean;
48
+ outdir?: string;
49
+ cwd?: string;
50
+ config?: string;
51
+ onlyConfig?: boolean;
52
+ cpuProf?: boolean;
53
+ logfile?: string;
54
+ }
55
+ interface ShipCommandFlags {
56
+ silent?: boolean;
57
+ minify?: boolean;
58
+ outfile?: string;
59
+ cwd?: string;
60
+ config?: string;
61
+ watch?: boolean;
62
+ poll?: boolean;
63
+ }
64
+ interface CodegenCommandFlags extends Pick<Config, 'cwd' | 'poll' | 'watch'> {
65
+ clean?: boolean;
66
+ silent?: boolean;
67
+ config?: string;
68
+ cpuProf?: boolean;
69
+ logfile?: string;
70
+ }
71
+ interface MainCommandFlags extends Pick<Config, 'cwd' | 'poll' | 'watch'> {
72
+ outdir?: string;
73
+ minify?: boolean;
74
+ config?: string;
75
+ cwd: string;
76
+ preflight?: boolean;
77
+ silent?: boolean;
78
+ exclude?: string[];
79
+ hash?: boolean;
80
+ emitTokensOnly?: boolean;
81
+ lightningcss?: boolean;
82
+ polyfill?: boolean;
83
+ cpuProf?: boolean;
84
+ logfile?: string;
85
+ }
86
+ interface EmitPackageCommandFlags {
87
+ outdir: string;
88
+ silent?: boolean;
89
+ cwd: string;
90
+ base?: string;
91
+ }
92
+ interface McpCommandFlags {
93
+ cwd?: string;
94
+ config?: string;
95
+ }
96
+ interface McpInitCommandFlags {
97
+ cwd?: string;
98
+ client?: string[];
99
+ }
100
+ interface SpecCommandFlags {
101
+ silent?: boolean;
102
+ outdir?: string;
103
+ cwd?: string;
104
+ config?: string;
105
+ }
106
+ //#endregion
107
+ export { AnalyzeCommandFlags, CodegenCommandFlags, CssGenCommandFlags, DebugCommandFlags, EmitPackageCommandFlags, InitCommandFlags, MainCommandFlags, McpCommandFlags, McpInitCommandFlags, ShipCommandFlags, SpecCommandFlags, StudioCommandFlags };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bamboocss/dev",
3
- "version": "1.12.1",
3
+ "version": "1.12.3",
4
4
  "description": "The user facing package for bamboo css",
5
5
  "homepage": "https://bamboo-css.com",
6
6
  "license": "MIT",
@@ -54,16 +54,16 @@
54
54
  "dependencies": {
55
55
  "@clack/prompts": "0.11.0",
56
56
  "cac": "6.7.14",
57
- "@bamboocss/config": "1.12.1",
58
- "@bamboocss/logger": "1.12.1",
59
- "@bamboocss/node": "1.12.1",
60
- "@bamboocss/postcss": "1.12.1",
61
- "@bamboocss/mcp": "1.12.1",
62
- "@bamboocss/preset-bamboo": "1.12.1",
63
- "@bamboocss/preset-base": "1.12.1",
64
- "@bamboocss/shared": "1.12.1",
65
- "@bamboocss/token-dictionary": "1.12.1",
66
- "@bamboocss/types": "1.12.1"
57
+ "@bamboocss/config": "1.12.3",
58
+ "@bamboocss/mcp": "1.12.3",
59
+ "@bamboocss/postcss": "1.12.3",
60
+ "@bamboocss/logger": "1.12.3",
61
+ "@bamboocss/node": "1.12.3",
62
+ "@bamboocss/token-dictionary": "1.12.3",
63
+ "@bamboocss/preset-bamboo": "1.12.3",
64
+ "@bamboocss/preset-base": "1.12.3",
65
+ "@bamboocss/types": "1.12.3",
66
+ "@bamboocss/shared": "1.12.3"
67
67
  },
68
68
  "devDependencies": {
69
69
  "@types/update-notifier": "6.0.8",