@windi-ui/core 0.7.1 → 0.8.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
@@ -1,46 +1,13 @@
1
- import { B as BuilderBase, I as IComponent, C as ComponentBuilderContext, R as Rules, V as VariantsGenerator, S as SizesGenerator, a as ColorsGenerator, b as VarsProvider, T as ThemeProvider } from './shared/core.BBBw5V2R.cjs';
2
- export { A as ApplyVariant, f as ApplyVariantMainProp, h as ApplyVariantProp, g as ApplyVariantSubProp, i as CSS, c as ColorShade, E as ExColorShade, F as FontSize, d as Variant, e as VariantProps } from './shared/core.BBBw5V2R.cjs';
3
- import 'csstype';
4
-
5
- declare class ComponentsGenerator extends BuilderBase<IComponent, ComponentBuilderContext> {
6
- protected readonly items: Map<string, IComponent>;
7
- constructor(context: ComponentBuilderContext);
8
- css(): Generator<Rules, void, unknown>;
9
- }
10
-
11
- type BuilderFunc<TFunc extends (...args: any) => void> = (...args: Parameters<TFunc>) => Builder;
12
- interface Builder {
13
- colorsNames: () => string[];
14
- variantsNames: () => string[];
15
- sizesNames: () => string[];
16
- componentsNames: () => string[];
17
- addVariant: BuilderFunc<VariantsGenerator['add']>;
18
- addSize: BuilderFunc<SizesGenerator['add']>;
19
- addComponent: BuilderFunc<ComponentsGenerator['add']>;
20
- updateVariant: BuilderFunc<VariantsGenerator['update']>;
21
- updateSize: BuilderFunc<SizesGenerator['update']>;
22
- updateComponent: BuilderFunc<ComponentsGenerator['update']>;
23
- removeVariant: BuilderFunc<VariantsGenerator['remove']>;
24
- removeSize: BuilderFunc<SizesGenerator['remove']>;
25
- removeComponent: BuilderFunc<ComponentsGenerator['remove']>;
26
- }
27
-
28
- interface ResolvedConfig {
29
- prefix: string;
30
- build?: (builder: Builder) => void;
31
- }
32
- type Config = Partial<ResolvedConfig>;
33
-
34
- interface Generator$1 {
35
- readonly colors: ColorsGenerator;
36
- readonly variants: VariantsGenerator;
37
- readonly sizes: SizesGenerator;
38
- readonly components: ComponentsGenerator;
39
- }
40
- declare function create(config: Config): {
41
- vars: VarsProvider;
42
- generator(theme: ThemeProvider): Generator$1;
1
+ import { A as ApplyVariantProp, D as SizesGenerator, E as SizeProperty, F as VariantsGenerator, I as FontSize, L as ThemeProvider, M as Variant, N as VariantOverride, O as ApplyVariant, P as VariantProperties, R as css_d_exports, T as Size, _ as Preset, a as ExColorShade, b as Builder, c as ColorsConfig, d as OverrideMode, f as OverrideVars, g as defineConfig, h as VariantScope, i as ColorsGenerator, j as ApplyVariantSubProp, k as ApplyVariantMainProp, l as Config, m as ResolvedConfig, n as varsProvider, o as ColorOptions, p as PresetName, r as ColorShade, s as ColorValue, t as VarsProvider, u as DarkSelectorOption, v as PresetOptions, x as ComponentsGenerator, y as definePreset } from "./vars-D-T56h9H.cjs";
2
+ export interface Generator {
3
+ readonly colors: ColorsGenerator;
4
+ readonly variants: VariantsGenerator;
5
+ readonly sizes: SizesGenerator;
6
+ readonly components: ComponentsGenerator;
7
+ }
8
+ export declare function create(config: Config): {
9
+ vars: VarsProvider;
10
+ config: ResolvedConfig;
11
+ generator(theme: ThemeProvider): Generator;
43
12
  };
44
-
45
- export { ThemeProvider, create };
46
- export type { Config, Generator$1 as Generator };
13
+ export { type ApplyVariant, type ApplyVariantMainProp, type ApplyVariantProp, type ApplyVariantSubProp, type Builder, type css_d_exports as CSS, type ColorOptions, type ColorShade, type ColorValue, type ColorsConfig, type Config, type DarkSelectorOption, type ExColorShade, type FontSize, type OverrideMode, type OverrideVars, type Preset, type PresetName, type PresetOptions, type Size, type SizeProperty, type ThemeProvider, type Variant, type VariantOverride, type VariantProperties as VariantProps, type VariantScope, type VarsProvider, defineConfig, definePreset, varsProvider };
package/dist/index.d.mts CHANGED
@@ -1,46 +1,13 @@
1
- import { B as BuilderBase, I as IComponent, C as ComponentBuilderContext, R as Rules, V as VariantsGenerator, S as SizesGenerator, a as ColorsGenerator, b as VarsProvider, T as ThemeProvider } from './shared/core.BBBw5V2R.mjs';
2
- export { A as ApplyVariant, f as ApplyVariantMainProp, h as ApplyVariantProp, g as ApplyVariantSubProp, i as CSS, c as ColorShade, E as ExColorShade, F as FontSize, d as Variant, e as VariantProps } from './shared/core.BBBw5V2R.mjs';
3
- import 'csstype';
4
-
5
- declare class ComponentsGenerator extends BuilderBase<IComponent, ComponentBuilderContext> {
6
- protected readonly items: Map<string, IComponent>;
7
- constructor(context: ComponentBuilderContext);
8
- css(): Generator<Rules, void, unknown>;
9
- }
10
-
11
- type BuilderFunc<TFunc extends (...args: any) => void> = (...args: Parameters<TFunc>) => Builder;
12
- interface Builder {
13
- colorsNames: () => string[];
14
- variantsNames: () => string[];
15
- sizesNames: () => string[];
16
- componentsNames: () => string[];
17
- addVariant: BuilderFunc<VariantsGenerator['add']>;
18
- addSize: BuilderFunc<SizesGenerator['add']>;
19
- addComponent: BuilderFunc<ComponentsGenerator['add']>;
20
- updateVariant: BuilderFunc<VariantsGenerator['update']>;
21
- updateSize: BuilderFunc<SizesGenerator['update']>;
22
- updateComponent: BuilderFunc<ComponentsGenerator['update']>;
23
- removeVariant: BuilderFunc<VariantsGenerator['remove']>;
24
- removeSize: BuilderFunc<SizesGenerator['remove']>;
25
- removeComponent: BuilderFunc<ComponentsGenerator['remove']>;
26
- }
27
-
28
- interface ResolvedConfig {
29
- prefix: string;
30
- build?: (builder: Builder) => void;
31
- }
32
- type Config = Partial<ResolvedConfig>;
33
-
34
- interface Generator$1 {
35
- readonly colors: ColorsGenerator;
36
- readonly variants: VariantsGenerator;
37
- readonly sizes: SizesGenerator;
38
- readonly components: ComponentsGenerator;
39
- }
40
- declare function create(config: Config): {
41
- vars: VarsProvider;
42
- generator(theme: ThemeProvider): Generator$1;
1
+ import { A as ApplyVariantProp, C as Builder, D as SizesGenerator, E as SizeProperty, F as VariantsGenerator, I as FontSize, L as ThemeProvider, M as Variant, N as VariantOverride, O as ApplyVariant, P as VariantProperties, R as css_d_exports, S as definePreset, T as Size, _ as ResolvedConfig, a as varsProvider, b as Preset, c as ExColorShade, d as ColorsConfig, f as Config, g as PresetName, h as OverrideVars, i as VarsProvider, j as ApplyVariantSubProp, k as ApplyVariantMainProp, l as ColorOptions, m as OverrideMode, o as ColorShade, p as DarkSelectorOption, s as ColorsGenerator, u as ColorValue, v as VariantScope, w as ComponentsGenerator, x as PresetOptions, y as defineConfig } from "./types-7pMUZGLb.mjs";
2
+ export interface Generator {
3
+ readonly colors: ColorsGenerator;
4
+ readonly variants: VariantsGenerator;
5
+ readonly sizes: SizesGenerator;
6
+ readonly components: ComponentsGenerator;
7
+ }
8
+ export declare function create(config: Config): {
9
+ vars: VarsProvider;
10
+ config: ResolvedConfig;
11
+ generator(theme: ThemeProvider): Generator;
43
12
  };
44
-
45
- export { ThemeProvider, create };
46
- export type { Config, Generator$1 as Generator };
13
+ export { type ApplyVariant, type ApplyVariantMainProp, type ApplyVariantProp, type ApplyVariantSubProp, type Builder, type css_d_exports as CSS, type ColorOptions, type ColorShade, type ColorValue, type ColorsConfig, type Config, type DarkSelectorOption, type ExColorShade, type FontSize, type OverrideMode, type OverrideVars, type Preset, type PresetName, type PresetOptions, type Size, type SizeProperty, type ThemeProvider, type Variant, type VariantOverride, type VariantProperties as VariantProps, type VariantScope, type VarsProvider, defineConfig, definePreset, varsProvider };