@animus-ui/system 0.1.0-next.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.
Files changed (46) hide show
  1. package/dist/Animus.d.ts +75 -0
  2. package/dist/Animus.d.ts.map +1 -0
  3. package/dist/AnimusExtended.d.ts +69 -0
  4. package/dist/AnimusExtended.d.ts.map +1 -0
  5. package/dist/PropertyBuilder.d.ts +11 -0
  6. package/dist/PropertyBuilder.d.ts.map +1 -0
  7. package/dist/SystemBuilder.d.ts +46 -0
  8. package/dist/SystemBuilder.d.ts.map +1 -0
  9. package/dist/groups/index.d.ts +630 -0
  10. package/dist/groups/index.d.ts.map +1 -0
  11. package/dist/groups/index.js +474 -0
  12. package/dist/index.d.ts +17 -0
  13. package/dist/index.d.ts.map +1 -0
  14. package/dist/index.js +295 -0
  15. package/dist/scales/createScale.d.ts +7 -0
  16. package/dist/scales/createScale.d.ts.map +1 -0
  17. package/dist/size-Dge_rsuz.js +70 -0
  18. package/dist/transforms/border.d.ts +2 -0
  19. package/dist/transforms/border.d.ts.map +1 -0
  20. package/dist/transforms/createTransform.d.ts +6 -0
  21. package/dist/transforms/createTransform.d.ts.map +1 -0
  22. package/dist/transforms/grid.d.ts +5 -0
  23. package/dist/transforms/grid.d.ts.map +1 -0
  24. package/dist/transforms/index.d.ts +6 -0
  25. package/dist/transforms/index.d.ts.map +1 -0
  26. package/dist/transforms/size.d.ts +3 -0
  27. package/dist/transforms/size.d.ts.map +1 -0
  28. package/dist/transforms/utils.d.ts +3 -0
  29. package/dist/transforms/utils.d.ts.map +1 -0
  30. package/dist/types/component.d.ts +55 -0
  31. package/dist/types/component.d.ts.map +1 -0
  32. package/dist/types/config.d.ts +78 -0
  33. package/dist/types/config.d.ts.map +1 -0
  34. package/dist/types/properties.d.ts +19 -0
  35. package/dist/types/properties.d.ts.map +1 -0
  36. package/dist/types/props.d.ts +35 -0
  37. package/dist/types/props.d.ts.map +1 -0
  38. package/dist/types/scales.d.ts +3 -0
  39. package/dist/types/scales.d.ts.map +1 -0
  40. package/dist/types/shared.d.ts +5 -0
  41. package/dist/types/shared.d.ts.map +1 -0
  42. package/dist/types/theme.d.ts +32 -0
  43. package/dist/types/theme.d.ts.map +1 -0
  44. package/dist/types/utils.d.ts +5 -0
  45. package/dist/types/utils.d.ts.map +1 -0
  46. package/package.json +46 -0
@@ -0,0 +1,75 @@
1
+ import { AnimusExtended } from './AnimusExtended';
2
+ import type { AnimusComponent, AnimusWrappedComponent } from './types/component';
3
+ import { AbstractParser, CSSPropMap, CSSProps, Prop, SystemProps, ThemedCSSPropMap, ThemedCSSProps, VariantConfig } from './types/config';
4
+ import { AbstractProps, ThemeProps } from './types/props';
5
+ import { CSSObject } from './types/shared';
6
+ import { BaseTheme } from './types/theme';
7
+ export declare class AnimusWithAll<T extends BaseTheme, PropRegistry extends Record<string, Prop>, GroupRegistry extends Record<string, (keyof PropRegistry)[]>, BaseStyles extends CSSProps<AbstractProps, SystemProps<AbstractParser>>, Variants extends Record<string, VariantConfig>, States extends CSSPropMap<AbstractProps, SystemProps<AbstractParser>>, ActiveGroups extends Record<string, true>, CustomProps extends Record<string, Prop>> {
8
+ propRegistry: PropRegistry;
9
+ groupRegistry: GroupRegistry;
10
+ baseStyles: BaseStyles;
11
+ statesConfig: States;
12
+ variants: Variants;
13
+ activeGroups: ActiveGroups;
14
+ custom: CustomProps;
15
+ constructor(props: PropRegistry, groups: GroupRegistry, base: BaseStyles, variants: Variants, states: States, activeGroups: ActiveGroups, custom: CustomProps);
16
+ extend(): AnimusExtended<T, PropRegistry, GroupRegistry, BaseStyles, Variants, States, ActiveGroups, CustomProps>;
17
+ asElement<El extends keyof JSX.IntrinsicElements>(component: El): AnimusComponent<El, T, PropRegistry, GroupRegistry, BaseStyles, Variants, States, ActiveGroups, CustomProps>;
18
+ asComponent<C extends (props: {
19
+ className?: string;
20
+ }) => any>(AsComponent: C): AnimusWrappedComponent<T, PropRegistry, GroupRegistry, BaseStyles, Variants, States, ActiveGroups, CustomProps>;
21
+ build(): ((props: ThemeProps<{ [K in Extract<keyof PropRegistry, GroupRegistry[Extract<keyof ActiveGroups, keyof GroupRegistry>][number]>]?: any; } & { [K_1 in keyof Variants]?: keyof Variants[K_1]["variants"] | undefined; } & { [K_2 in keyof States]?: boolean | undefined; }, T>) => CSSObject) & {
22
+ extend: () => AnimusExtended<T, PropRegistry, GroupRegistry, BaseStyles, Variants, States, ActiveGroups, CustomProps>;
23
+ };
24
+ _buildComponentConfig(): {
25
+ variants: Record<string, {
26
+ options: string[];
27
+ default?: string;
28
+ }> | undefined;
29
+ states: string[] | undefined;
30
+ systemPropNames: string[];
31
+ };
32
+ }
33
+ declare class AnimusWithSystem<T extends BaseTheme, PropRegistry extends Record<string, Prop>, GroupRegistry extends Record<string, (keyof PropRegistry)[]>, BaseStyles extends CSSProps<AbstractProps, SystemProps<AbstractParser>>, Variants extends Record<string, VariantConfig>, States extends CSSPropMap<AbstractProps, SystemProps<AbstractParser>>, ActiveGroups extends Record<string, true>> extends AnimusWithAll<T, PropRegistry, GroupRegistry, BaseStyles, Variants, States, ActiveGroups, {}> {
34
+ constructor(props: PropRegistry, groups: GroupRegistry, base: BaseStyles, variants: Variants, states: States, activeGroups: ActiveGroups);
35
+ props<NewCustomProps extends Record<string, Prop>>(config: NewCustomProps): AnimusWithAll<T, PropRegistry, GroupRegistry, BaseStyles, Variants, States, ActiveGroups, NewCustomProps>;
36
+ }
37
+ declare class AnimusWithStates<T extends BaseTheme, PropRegistry extends Record<string, Prop>, GroupRegistry extends Record<string, (keyof PropRegistry)[]>, BaseStyles extends CSSProps<AbstractProps, SystemProps<AbstractParser>>, Variants extends Record<string, VariantConfig>, States extends CSSPropMap<AbstractProps, SystemProps<AbstractParser>>> extends AnimusWithSystem<T, PropRegistry, GroupRegistry, BaseStyles, Variants, States, {}> {
38
+ constructor(props: PropRegistry, groups: GroupRegistry, base: BaseStyles, variants: Variants, states: States);
39
+ groups<PickedGroups extends keyof GroupRegistry>(config: Record<PickedGroups, true>): AnimusWithSystem<T, PropRegistry, GroupRegistry, BaseStyles, Variants, States, Record<PickedGroups, true>>;
40
+ }
41
+ declare class AnimusWithVariants<T extends BaseTheme, PropRegistry extends Record<string, Prop>, GroupRegistry extends Record<string, (keyof PropRegistry)[]>, BaseStyles extends CSSProps<AbstractProps, SystemProps<AbstractParser>>, Variants extends Record<string, VariantConfig>> extends AnimusWithStates<T, PropRegistry, GroupRegistry, BaseStyles, Variants, {}> {
42
+ constructor(props: PropRegistry, groups: GroupRegistry, base: BaseStyles, variants: Variants);
43
+ states<Props extends AbstractProps>(config: ThemedCSSPropMap<Props, PropRegistry>): AnimusWithStates<T, PropRegistry, GroupRegistry, BaseStyles, Variants, ThemedCSSPropMap<Props, PropRegistry>>;
44
+ variant<Keys extends keyof Props, Base extends AbstractProps, Props extends Record<Keys, AbstractProps>, PropKey extends Readonly<string> = 'variant'>(options: {
45
+ prop?: PropKey;
46
+ defaultVariant?: keyof Props;
47
+ base?: ThemedCSSProps<Base, PropRegistry>;
48
+ variants: ThemedCSSPropMap<Props, PropRegistry>;
49
+ }): AnimusWithVariants<T, PropRegistry, GroupRegistry, BaseStyles, Variants & Record<PropKey, {
50
+ prop?: PropKey;
51
+ defaultVariant?: keyof Props;
52
+ base?: ThemedCSSProps<Base, PropRegistry>;
53
+ variants: ThemedCSSPropMap<Props, PropRegistry>;
54
+ }>>;
55
+ }
56
+ declare class AnimusWithBase<T extends BaseTheme, PropRegistry extends Record<string, Prop>, GroupRegistry extends Record<string, (keyof PropRegistry)[]>, BaseStyles extends CSSProps<AbstractProps, SystemProps<AbstractParser>>> extends AnimusWithVariants<T, PropRegistry, GroupRegistry, BaseStyles, {}> {
57
+ constructor(props: PropRegistry, groups: GroupRegistry, base: BaseStyles);
58
+ variant<Keys extends keyof Props, Base extends AbstractProps, Props extends Record<Keys, AbstractProps>, PropKey extends Readonly<string> = 'variant'>(options: {
59
+ prop?: PropKey;
60
+ defaultVariant?: keyof Props;
61
+ base?: ThemedCSSProps<Base, PropRegistry>;
62
+ variants: ThemedCSSPropMap<Props, PropRegistry>;
63
+ }): AnimusWithVariants<T, PropRegistry, GroupRegistry, BaseStyles, Record<PropKey, {
64
+ prop?: PropKey;
65
+ defaultVariant?: keyof Props;
66
+ base?: ThemedCSSProps<Base, PropRegistry>;
67
+ variants: ThemedCSSPropMap<Props, PropRegistry>;
68
+ }>>;
69
+ }
70
+ export declare class Animus<T extends BaseTheme, PropRegistry extends Record<string, Prop>, GroupRegistry extends Record<string, (keyof PropRegistry)[]>> extends AnimusWithBase<T, PropRegistry, GroupRegistry, {}> {
71
+ constructor(props: PropRegistry, groups: GroupRegistry);
72
+ styles<Props extends AbstractProps>(config: ThemedCSSProps<Props, PropRegistry>): AnimusWithBase<T, PropRegistry, GroupRegistry, ThemedCSSProps<Props, PropRegistry>>;
73
+ }
74
+ export {};
75
+ //# sourceMappingURL=Animus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Animus.d.ts","sourceRoot":"","sources":["../src/Animus.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,EACV,eAAe,EACf,sBAAsB,EACvB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,cAAc,EACd,UAAU,EACV,QAAQ,EACR,IAAI,EACJ,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,aAAa,EACd,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AA2B1C,qBAAa,aAAa,CACxB,CAAC,SAAS,SAAS,EACnB,YAAY,SAAS,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,EACzC,aAAa,SAAS,MAAM,CAAC,MAAM,EAAE,CAAC,MAAM,Y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ACnB,YAAY,SAAS,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,EACzC,aAAa,SAAS,MAAM,CAAC,MAAM,EAAE,CAAC,MAAM,YAAY,CAAC,EAAE,CAAC,CAC5D,SAAQ,cAAc,CAAC,CAAC,EAAE,YAAY,EAAE,aAAa,EAAE,EAAE,CAAC;gBAC9C,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,aAAa;IAGtD,MAAM,CAAC,KAAK,SAAS,aAAa,EAChC,MAAM,EAAE,cAAc,CAAC,KAAK,EAAE,YAAY,CAAC;CAQ9C"}
@@ -0,0 +1,69 @@
1
+ import type { AnimusComponent, AnimusWrappedComponent } from './types/component';
2
+ import { AbstractParser, CSSPropMap, CSSProps, Prop, SystemProps, ThemedCSSPropMap, ThemedCSSProps, VariantConfig } from './types/config';
3
+ import { AbstractProps, ThemeProps } from './types/props';
4
+ import { CSSObject } from './types/shared';
5
+ import { BaseTheme } from './types/theme';
6
+ export declare class AnimusExtendedWithAll<T extends BaseTheme, PropRegistry extends Record<string, Prop>, GroupRegistry extends Record<string, (keyof PropRegistry)[]>, BaseStyles extends CSSProps<AbstractProps, SystemProps<AbstractParser>>, Variants extends Record<string, VariantConfig>, States extends CSSPropMap<AbstractProps, SystemProps<AbstractParser>>, ActiveGroups extends Record<string, true>, CustomProps extends Record<string, Prop>> {
7
+ propRegistry: PropRegistry;
8
+ groupRegistry: GroupRegistry;
9
+ baseStyles: BaseStyles;
10
+ statesConfig: States;
11
+ variants: Variants;
12
+ activeGroups: ActiveGroups;
13
+ custom: CustomProps;
14
+ constructor(props: PropRegistry, groups: GroupRegistry, base: BaseStyles, variants: Variants, states: States, activeGroups: ActiveGroups, custom: CustomProps);
15
+ extend(): AnimusExtended<T, PropRegistry, GroupRegistry, BaseStyles, Variants, States, ActiveGroups, CustomProps>;
16
+ asElement<El extends keyof JSX.IntrinsicElements>(component: El): AnimusComponent<El, T, PropRegistry, GroupRegistry, BaseStyles, Variants, States, ActiveGroups, CustomProps>;
17
+ asComponent<C extends (props: {
18
+ className?: string;
19
+ }) => any>(AsComponent: C): AnimusWrappedComponent<T, PropRegistry, GroupRegistry, BaseStyles, Variants, States, ActiveGroups, CustomProps>;
20
+ build(): ((props: ThemeProps<{ [K in Extract<keyof PropRegistry, GroupRegistry[Extract<keyof ActiveGroups, keyof GroupRegistry>][number]>]?: any; } & { [K_1 in keyof Variants]?: keyof Variants[K_1]["variants"] | undefined; } & { [K_2 in keyof States]?: boolean | undefined; }, T>) => CSSObject) & {
21
+ extend: () => AnimusExtended<T, PropRegistry, GroupRegistry, BaseStyles, Variants, States, ActiveGroups, CustomProps>;
22
+ };
23
+ _buildComponentConfig(): {
24
+ variants: Record<string, {
25
+ options: string[];
26
+ default?: string;
27
+ }> | undefined;
28
+ states: string[] | undefined;
29
+ systemPropNames: string[];
30
+ };
31
+ }
32
+ declare class AnimusExtendedWithSystem<T extends BaseTheme, PropRegistry extends Record<string, Prop>, GroupRegistry extends Record<string, (keyof PropRegistry)[]>, BaseStyles extends CSSProps<AbstractProps, SystemProps<AbstractParser>>, Variants extends Record<string, VariantConfig>, States extends CSSPropMap<AbstractProps, SystemProps<AbstractParser>>, ActiveGroups extends Record<string, true>, CustomProps extends Record<string, Prop>> extends AnimusExtendedWithAll<T, PropRegistry, GroupRegistry, BaseStyles, Variants, States, ActiveGroups, CustomProps> {
33
+ props<NewCustomProps extends Record<string, Prop>>(config: NewCustomProps): AnimusExtendedWithAll<T, PropRegistry, GroupRegistry, BaseStyles, Variants, States, ActiveGroups, NewCustomProps>;
34
+ }
35
+ declare class AnimusExtendedWithStates<T extends BaseTheme, PropRegistry extends Record<string, Prop>, GroupRegistry extends Record<string, (keyof PropRegistry)[]>, BaseStyles extends CSSProps<AbstractProps, SystemProps<AbstractParser>>, Variants extends Record<string, VariantConfig>, States extends CSSPropMap<AbstractProps, SystemProps<AbstractParser>>, ActiveGroups extends Record<string, true>, CustomProps extends Record<string, Prop>> extends AnimusExtendedWithSystem<T, PropRegistry, GroupRegistry, BaseStyles, Variants, States, ActiveGroups, CustomProps> {
36
+ groups<PickedGroups extends keyof GroupRegistry>(config: Record<PickedGroups, true>): AnimusExtendedWithSystem<T, PropRegistry, GroupRegistry, BaseStyles, Variants, States, Record<PickedGroups, true> & ActiveGroups, CustomProps>;
37
+ }
38
+ declare class AnimusExtendedWithVariants<T extends BaseTheme, PropRegistry extends Record<string, Prop>, GroupRegistry extends Record<string, (keyof PropRegistry)[]>, BaseStyles extends CSSProps<AbstractProps, SystemProps<AbstractParser>>, Variants extends Record<string, VariantConfig>, States extends CSSPropMap<AbstractProps, SystemProps<AbstractParser>>, ActiveGroups extends Record<string, true>, CustomProps extends Record<string, Prop>> extends AnimusExtendedWithStates<T, PropRegistry, GroupRegistry, BaseStyles, Variants, States, ActiveGroups, CustomProps> {
39
+ variant<Keys extends keyof Props, Base extends AbstractProps, Props extends Record<Keys, AbstractProps>, PropKey extends Readonly<string> = 'variant'>(options: {
40
+ prop?: PropKey;
41
+ defaultVariant?: keyof Props;
42
+ base?: ThemedCSSProps<Base, PropRegistry>;
43
+ variants: ThemedCSSPropMap<Props, PropRegistry>;
44
+ }): AnimusExtendedWithVariants<T, PropRegistry, GroupRegistry, BaseStyles, Variants & Record<PropKey, {
45
+ prop?: PropKey;
46
+ defaultVariant?: keyof Props;
47
+ base?: ThemedCSSProps<Base, PropRegistry>;
48
+ variants: ThemedCSSPropMap<Props, PropRegistry>;
49
+ }>, States, ActiveGroups, CustomProps>;
50
+ states<Props extends AbstractProps>(config: ThemedCSSPropMap<Props, PropRegistry>): AnimusExtendedWithStates<T, PropRegistry, GroupRegistry, BaseStyles, Variants, ThemedCSSPropMap<Props, PropRegistry> & States, ActiveGroups, CustomProps>;
51
+ }
52
+ declare class AnimusExtendedWithBase<T extends BaseTheme, PropRegistry extends Record<string, Prop>, GroupRegistry extends Record<string, (keyof PropRegistry)[]>, BaseStyles extends CSSProps<AbstractProps, SystemProps<AbstractParser>>, Variants extends Record<string, VariantConfig>, States extends CSSPropMap<AbstractProps, SystemProps<AbstractParser>>, ActiveGroups extends Record<string, true>, CustomProps extends Record<string, Prop>> extends AnimusExtendedWithVariants<T, PropRegistry, GroupRegistry, BaseStyles, Variants, States, ActiveGroups, CustomProps> {
53
+ variant<Keys extends keyof Props, Base extends AbstractProps, Props extends Record<Keys, AbstractProps>, PropKey extends Readonly<string> = 'variant'>(options: {
54
+ prop?: PropKey;
55
+ defaultVariant?: keyof Props;
56
+ base?: ThemedCSSProps<Base, PropRegistry>;
57
+ variants: ThemedCSSPropMap<Props, PropRegistry>;
58
+ }): AnimusExtendedWithVariants<T, PropRegistry, GroupRegistry, BaseStyles, Variants & Record<PropKey, {
59
+ prop?: PropKey;
60
+ defaultVariant?: keyof Props;
61
+ base?: ThemedCSSProps<Base, PropRegistry>;
62
+ variants: ThemedCSSPropMap<Props, PropRegistry>;
63
+ }>, States, ActiveGroups, CustomProps>;
64
+ }
65
+ export declare class AnimusExtended<T extends BaseTheme, PropRegistry extends Record<string, Prop>, GroupRegistry extends Record<string, (keyof PropRegistry)[]>, BaseStyles extends CSSProps<AbstractProps, SystemProps<AbstractParser>>, Variants extends Record<string, VariantConfig>, States extends CSSPropMap<AbstractProps, SystemProps<AbstractParser>>, ActiveGroups extends Record<string, true>, CustomProps extends Record<string, Prop>> extends AnimusExtendedWithBase<T, PropRegistry, GroupRegistry, BaseStyles, Variants, States, ActiveGroups, CustomProps> {
66
+ styles<Props extends AbstractProps>(config: ThemedCSSProps<Props, PropRegistry>): AnimusExtendedWithBase<T, PropRegistry, GroupRegistry, ThemedCSSProps<Props, PropRegistry> & BaseStyles, Variants, States, ActiveGroups, CustomProps>;
67
+ }
68
+ export {};
69
+ //# sourceMappingURL=AnimusExtended.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AnimusExtended.d.ts","sourceRoot":"","sources":["../src/AnimusExtended.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,eAAe,EACf,sBAAsB,EACvB,MAAM,mBAA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SAAS,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,EACzC,WAAW,SAAS,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CACxC,SAAQ,sBAAsB,CAC9B,CAAC,EACD,YAAY,EACZ,aAAa,EACb,UAAU,EACV,QAAQ,EACR,MAAM,EACN,YAAY,EACZ,WAAW,CACZ;IACC,MAAM,CAAC,KAAK,SAAS,aAAa,EAChC,MAAM,EAAE,cAAc,CAAC,KAAK,EAAE,YAAY,CAAC;CAqB9C"}
@@ -0,0 +1,11 @@
1
+ import { Prop } from './types/config';
2
+ export declare class PropertyBuilder<PropReg extends Record<string, Prop> = {}, GroupReg extends Record<string, (keyof PropReg)[]> = {}> {
3
+ #private;
4
+ constructor(props?: PropReg, groups?: GroupReg);
5
+ addGroup<Name extends string, Conf extends Record<string, Prop>, PropNames extends keyof Conf>(name: Name, config: Conf): PropertyBuilder<PropReg & Conf, GroupReg & Record<Name, PropNames[]>>;
6
+ build(): {
7
+ propRegistry: { [K in keyof PropReg]: PropReg[K]; };
8
+ groupRegistry: { [K in keyof GroupReg]: GroupReg[K]; };
9
+ };
10
+ }
11
+ //# sourceMappingURL=PropertyBuilder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PropertyBuilder.d.ts","sourceRoot":"","sources":["../src/PropertyBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAEtC,qBAAa,eAAe,CAC1B,OAAO,SAAS,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,GAAG,EAAE,EACzC,QAAQ,SAAS,MAAM,CAAC,MAAM,EAAE,CAAC,MAAM,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE;;gBAK3C,KAAK,CAAC,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE,QAAQ;IAK9C,QAAQ,CACN,IAAI,SAAS,MAAM,EACnB,IAAI,SAAS,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,EACjC,SAAS,SAAS,MAAM,IAAI,EAC5B,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI;IAW1B,KAAK;sBAE4B,GAAG,CAAC,IAAI,MAAM,OAAO,GAAG,OAAO,CAAC,CAAC,CAAC,GAAE;uBAClC,GAAG,CAAC,IAAI,MAAM,QAAQ,GAAG,QAAQ,CAAC,CAAC,CAAC,GAAE;;CAG1E"}
@@ -0,0 +1,46 @@
1
+ import { createTheme } from '@animus-ui/theming';
2
+ import { Animus } from './Animus';
3
+ import { PropertyBuilder } from './PropertyBuilder';
4
+ import { NamedTransform } from './transforms/createTransform';
5
+ import { Prop } from './types/config';
6
+ import { BaseTheme } from './types/theme';
7
+ /**
8
+ * Force TypeScript to eagerly evaluate a type, flattening nested
9
+ * generic computations (like MergeTheme chains) into a shallow object.
10
+ * Without this, the ThemeBuilder's recursive type accumulation
11
+ * exceeds TypeScript's instantiation depth limit.
12
+ */
13
+ type Simplify<T> = {
14
+ [K in keyof T]: T[K];
15
+ } & {};
16
+ type ThemeBuilderInput = ReturnType<typeof createTheme<any>>;
17
+ export type GlobalStyleMap = Record<string, Record<string, any>>;
18
+ export interface GlobalStylesConfig {
19
+ reset?: GlobalStyleMap;
20
+ global?: GlobalStyleMap;
21
+ }
22
+ export declare class SystemBuilder<T extends BaseTheme = BaseTheme, PropReg extends Record<string, Prop> = {}, GroupReg extends Record<string, (keyof PropReg)[]> = {}> {
23
+ #private;
24
+ constructor(tokens?: T, propRegistry?: PropReg, groupRegistry?: GroupReg, globalStyles?: GlobalStylesConfig);
25
+ withTokens<NextT extends BaseTheme>(cb: (t: ThemeBuilderInput) => NextT): SystemBuilder<Simplify<NextT>, PropReg, GroupReg>;
26
+ withProperties<NextPropReg extends Record<string, Prop>, NextGroupReg extends Record<string, (keyof NextPropReg)[]>>(cb: (p: PropertyBuilder) => {
27
+ propRegistry: NextPropReg;
28
+ groupRegistry: NextGroupReg;
29
+ }): SystemBuilder<T, NextPropReg, NextGroupReg>;
30
+ withGlobalStyles(styles: GlobalStylesConfig): SystemBuilder<T, PropReg, GroupReg>;
31
+ build(): SystemInstance<T, PropReg, GroupReg>;
32
+ }
33
+ export type SystemInstance<T extends BaseTheme, PropReg extends Record<string, Prop>, GroupReg extends Record<string, (keyof PropReg)[]>> = Animus<T, PropReg, GroupReg> & {
34
+ tokens: T;
35
+ serialize(): SerializedConfig;
36
+ };
37
+ export interface SerializedConfig {
38
+ tokens: any;
39
+ propConfig: string;
40
+ groupRegistry: string;
41
+ transforms: Record<string, NamedTransform>;
42
+ globalStyles?: GlobalStylesConfig;
43
+ }
44
+ export declare function createSystem(): SystemBuilder<BaseTheme, {}, {}>;
45
+ export {};
46
+ //# sourceMappingURL=SystemBuilder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SystemBuilder.d.ts","sourceRoot":"","sources":["../src/SystemBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C;;;;;GAKG;AACH,KAAK,QAAQ,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAE,GAAG,EAAE,CAAC;AASjD,KAAK,iBAAiB,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC;AAE7D,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC;AAEjE,MAAM,WAAW,kBAAkB;IACjC,KAAK,CAAC,EAAE,cAAc,CAA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