@animus-ui/system 0.1.0-next.1 → 0.1.0-next.16

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 (39) hide show
  1. package/dist/Animus.d.ts +37 -27
  2. package/dist/Animus.d.ts.map +1 -1
  3. package/dist/AnimusExtended.d.ts +33 -24
  4. package/dist/AnimusExtended.d.ts.map +1 -1
  5. package/dist/SystemBuilder.d.ts +7 -23
  6. package/dist/SystemBuilder.d.ts.map +1 -1
  7. package/dist/groups/index.d.ts +50 -26
  8. package/dist/groups/index.d.ts.map +1 -1
  9. package/dist/groups/index.js +50 -26
  10. package/dist/index.d.ts +6 -3
  11. package/dist/index.d.ts.map +1 -1
  12. package/dist/index.js +710 -50
  13. package/dist/runtime/index.d.ts +47 -0
  14. package/dist/runtime/index.d.ts.map +1 -0
  15. package/dist/theme/createTheme.d.ts +62 -0
  16. package/dist/theme/createTheme.d.ts.map +1 -0
  17. package/dist/theme/flattenScale.d.ts +21 -0
  18. package/dist/theme/flattenScale.d.ts.map +1 -0
  19. package/dist/theme/index.d.ts +7 -0
  20. package/dist/theme/index.d.ts.map +1 -0
  21. package/dist/theme/serializeTokens.d.ts +22 -0
  22. package/dist/theme/serializeTokens.d.ts.map +1 -0
  23. package/dist/theme/types.d.ts +42 -0
  24. package/dist/theme/types.d.ts.map +1 -0
  25. package/dist/theme/utils.d.ts +12 -0
  26. package/dist/theme/utils.d.ts.map +1 -0
  27. package/dist/transforms/createTransform.d.ts +3 -1
  28. package/dist/transforms/createTransform.d.ts.map +1 -1
  29. package/dist/types/component.d.ts +20 -15
  30. package/dist/types/component.d.ts.map +1 -1
  31. package/dist/types/config.d.ts +11 -5
  32. package/dist/types/config.d.ts.map +1 -1
  33. package/dist/types/properties.d.ts +5 -6
  34. package/dist/types/properties.d.ts.map +1 -1
  35. package/dist/types/shared.d.ts +0 -1
  36. package/dist/types/shared.d.ts.map +1 -1
  37. package/dist/types/theme.d.ts +21 -0
  38. package/dist/types/theme.d.ts.map +1 -1
  39. package/package.json +2 -5
package/dist/Animus.d.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  import { AnimusExtended } from './AnimusExtended';
2
2
  import type { AnimusComponent, AnimusWrappedComponent } from './types/component';
3
- import { AbstractParser, CSSPropMap, CSSProps, Prop, SystemProps, ThemedCSSPropMap, ThemedCSSProps, VariantConfig } from './types/config';
3
+ import { AbstractParser, CompoundEntry, CSSPropMap, CSSProps, Prop, SystemProps, ThemedCSSPropMap, ThemedCSSProps, VariantConfig } from './types/config';
4
4
  import { AbstractProps, ThemeProps } from './types/props';
5
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>> {
6
+ import { Theme } from './types/theme';
7
+ export declare class AnimusWithAll<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
8
  propRegistry: PropRegistry;
9
9
  groupRegistry: GroupRegistry;
10
10
  baseStyles: BaseStyles;
@@ -12,14 +12,15 @@ export declare class AnimusWithAll<T extends BaseTheme, PropRegistry extends Rec
12
12
  variants: Variants;
13
13
  activeGroups: ActiveGroups;
14
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>;
15
+ compounds: CompoundEntry[];
16
+ constructor(props: PropRegistry, groups: GroupRegistry, base: BaseStyles, variants: Variants, states: States, activeGroups: ActiveGroups, custom: CustomProps, compounds?: CompoundEntry[]);
17
+ extend(): AnimusExtended<PropRegistry, GroupRegistry, BaseStyles, Variants, States, ActiveGroups, CustomProps>;
18
+ asElement<El extends keyof JSX.IntrinsicElements>(component: El): AnimusComponent<El, PropRegistry, GroupRegistry, BaseStyles, Variants, States, ActiveGroups, CustomProps>;
18
19
  asComponent<C extends (props: {
19
20
  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>;
21
+ }) => any>(AsComponent: C): AnimusWrappedComponent<PropRegistry, GroupRegistry, BaseStyles, Variants, States, ActiveGroups, CustomProps>;
22
+ 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; }, Theme>) => CSSObject) & {
23
+ extend: () => AnimusExtended<PropRegistry, GroupRegistry, BaseStyles, Variants, States, ActiveGroups, CustomProps>;
23
24
  };
24
25
  _buildComponentConfig(): {
25
26
  variants: Record<string, {
@@ -30,46 +31,55 @@ export declare class AnimusWithAll<T extends BaseTheme, PropRegistry extends Rec
30
31
  systemPropNames: string[];
31
32
  };
32
33
  }
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>;
34
+ declare class AnimusWithSystem<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<PropRegistry, GroupRegistry, BaseStyles, Variants, States, ActiveGroups, {}> {
35
+ constructor(props: PropRegistry, groups: GroupRegistry, base: BaseStyles, variants: Variants, states: States, activeGroups: ActiveGroups, compounds?: CompoundEntry[]);
36
+ props<NewCustomProps extends Record<string, Prop>>(config: NewCustomProps): AnimusWithAll<PropRegistry, GroupRegistry, BaseStyles, Variants, States, ActiveGroups, NewCustomProps>;
36
37
  }
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>>;
38
+ declare class AnimusWithStates<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<PropRegistry, GroupRegistry, BaseStyles, Variants, States, {}> {
39
+ constructor(props: PropRegistry, groups: GroupRegistry, base: BaseStyles, variants: Variants, states: States, compounds?: CompoundEntry[]);
40
+ groups<PickedGroups extends keyof GroupRegistry>(config: Record<PickedGroups, true>): AnimusWithSystem<PropRegistry, GroupRegistry, BaseStyles, Variants, States, Record<PickedGroups, true>>;
40
41
  }
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>>;
42
+ declare class AnimusWithCompounds<PropRegistry extends Record<string, Prop>, GroupRegistry extends Record<string, (keyof PropRegistry)[]>, BaseStyles extends CSSProps<AbstractProps, SystemProps<AbstractParser>>, Variants extends Record<string, VariantConfig>> extends AnimusWithStates<PropRegistry, GroupRegistry, BaseStyles, Variants, {}> {
43
+ constructor(props: PropRegistry, groups: GroupRegistry, base: BaseStyles, variants: Variants, compounds?: CompoundEntry[]);
44
+ compound<Props extends AbstractProps>(condition: {
45
+ [K in keyof Variants]?: keyof Variants[K]['variants'] | ReadonlyArray<keyof Variants[K]['variants']>;
46
+ }, styles: ThemedCSSProps<Props, PropRegistry>): AnimusWithCompounds<PropRegistry, GroupRegistry, BaseStyles, Variants>;
47
+ states<Props extends AbstractProps>(config: ThemedCSSPropMap<Props, PropRegistry>): AnimusWithStates<PropRegistry, GroupRegistry, BaseStyles, Variants, ThemedCSSPropMap<Props, PropRegistry>>;
48
+ }
49
+ declare class AnimusWithVariants<PropRegistry extends Record<string, Prop>, GroupRegistry extends Record<string, (keyof PropRegistry)[]>, BaseStyles extends CSSProps<AbstractProps, SystemProps<AbstractParser>>, Variants extends Record<string, VariantConfig>> extends AnimusWithCompounds<PropRegistry, GroupRegistry, BaseStyles, Variants> {
50
+ constructor(props: PropRegistry, groups: GroupRegistry, base: BaseStyles, variants: Variants, compounds?: CompoundEntry[]);
51
+ compound<Props extends AbstractProps>(condition: {
52
+ [K in keyof Variants]?: keyof Variants[K]['variants'] | ReadonlyArray<keyof Variants[K]['variants']>;
53
+ }, styles: ThemedCSSProps<Props, PropRegistry>): AnimusWithCompounds<PropRegistry, GroupRegistry, BaseStyles, Variants>;
44
54
  variant<Keys extends keyof Props, Base extends AbstractProps, Props extends Record<Keys, AbstractProps>, PropKey extends Readonly<string> = 'variant'>(options: {
45
55
  prop?: PropKey;
46
- defaultVariant?: keyof Props;
56
+ defaultVariant?: Extract<keyof Props, string>;
47
57
  base?: ThemedCSSProps<Base, PropRegistry>;
48
58
  variants: ThemedCSSPropMap<Props, PropRegistry>;
49
- }): AnimusWithVariants<T, PropRegistry, GroupRegistry, BaseStyles, Variants & Record<PropKey, {
59
+ }): AnimusWithVariants<PropRegistry, GroupRegistry, BaseStyles, Variants & Record<PropKey, {
50
60
  prop?: PropKey;
51
- defaultVariant?: keyof Props;
61
+ defaultVariant?: Extract<keyof Props, string>;
52
62
  base?: ThemedCSSProps<Base, PropRegistry>;
53
63
  variants: ThemedCSSPropMap<Props, PropRegistry>;
54
64
  }>>;
55
65
  }
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, {}> {
66
+ declare class AnimusWithBase<PropRegistry extends Record<string, Prop>, GroupRegistry extends Record<string, (keyof PropRegistry)[]>, BaseStyles extends CSSProps<AbstractProps, SystemProps<AbstractParser>>> extends AnimusWithVariants<PropRegistry, GroupRegistry, BaseStyles, {}> {
57
67
  constructor(props: PropRegistry, groups: GroupRegistry, base: BaseStyles);
58
68
  variant<Keys extends keyof Props, Base extends AbstractProps, Props extends Record<Keys, AbstractProps>, PropKey extends Readonly<string> = 'variant'>(options: {
59
69
  prop?: PropKey;
60
- defaultVariant?: keyof Props;
70
+ defaultVariant?: Extract<keyof Props, string>;
61
71
  base?: ThemedCSSProps<Base, PropRegistry>;
62
72
  variants: ThemedCSSPropMap<Props, PropRegistry>;
63
- }): AnimusWithVariants<T, PropRegistry, GroupRegistry, BaseStyles, Record<PropKey, {
73
+ }): AnimusWithVariants<PropRegistry, GroupRegistry, BaseStyles, Record<PropKey, {
64
74
  prop?: PropKey;
65
- defaultVariant?: keyof Props;
75
+ defaultVariant?: Extract<keyof Props, string>;
66
76
  base?: ThemedCSSProps<Base, PropRegistry>;
67
77
  variants: ThemedCSSPropMap<Props, PropRegistry>;
68
78
  }>>;
69
79
  }
70
- export declare class Animus<T extends BaseTheme, PropRegistry extends Record<string, Prop>, GroupRegistry extends Record<string, (keyof PropRegistry)[]>> extends AnimusWithBase<T, PropRegistry, GroupRegistry, {}> {
80
+ export declare class Animus<PropRegistry extends Record<string, Prop>, GroupRegistry extends Record<string, (keyof PropRegistry)[]>> extends AnimusWithBase<PropRegistry, GroupRegistry, {}> {
71
81
  constructor(props: PropRegistry, groups: GroupRegistry);
72
- styles<Props extends AbstractProps>(config: ThemedCSSProps<Props, PropRegistry>): AnimusWithBase<T, PropRegistry, GroupRegistry, ThemedCSSProps<Props, PropRegistry>>;
82
+ styles<Props extends AbstractProps>(config: ThemedCSSProps<Props, PropRegistry>): AnimusWithBase<PropRegistry, GroupRegistry, ThemedCSSProps<Props, PropRegistry>>;
73
83
  }
74
84
  export {};
75
85
  //# sourceMappingURL=Animus.d.ts.map
@@ -1 +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,YAAY,CAAC,EAAE,CAAC,EAC5D,UAAU,SAAS,QAAQ,CAAC,aAAa,EAAE,WAAW,CAAC,cAAc,CAAC,CAAC,EACvE,QAAQ,SAAS,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,EAC9C,MAAM,SAAS,UAAU,CAAC,aAAa,EAAE,WAAW,CAAC,cAAc,CAAC,CAAC,EACrE,YAAY,SAAS,MAAM,C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AM,EAAE,aAAa,EAAE,IAAI,EAAE,UAAU;IAIxE,OAAO,CACL,IAAI,SAAS,MAAM,KAAK,EACxB,IAAI,SAAS,aAAa,EAC1B,KAAK,SAAS,MAAM,CAAC,IAAI,EAAE,aAAa,CAAC,EACzC,OAAO,SAAS,QAAQ,CAAC,MAAM,CAAC,GAAG,SAAS,EAC5C,OAAO,EAAE;QACT,IAAI,CAAC,EAAE,OAAO,CAAC;QACf,cAAc,CAAC,EAAE,OAAO,CAAC,MAAM,KAAK,EAAE,MAAM,CAAC,CAAC;QAC9C,IAAI,CAAC,EAAE,cAAc,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC;QAC1C,QAAQ,EAAE,gBAAgB,CAAC,KAAK,EAAE,YAAY,CAAC,CAAC;KACjD;eAJQ,OAAO;yBACG,OAAO,CAAC,MAAM,KAAK,EAAE,MAAM,CAAC;eACtC,cAAc,CAAC,IAAI,EAAE,YAAY,CAAC;kBAC/B,gBAAgB,CAAC,KAAK,EAAE,YAAY,CAAC;;CAkBlD;AAED,qBAAa,MAAM,CACjB,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,YAAY,EAAE,aAAa,EAAE,EAAE,CAAC;gBAC3C,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,aAAa;IAGtD,MAAM,CAAC,KAAK,SAAS,aAAa,EAChC,MAAM,EAAE,cAAc,CAAC,KAAK,EAAE,YAAY,CAAC;CAQ9C"}
@@ -1,9 +1,9 @@
1
1
  import type { AnimusComponent, AnimusWrappedComponent } from './types/component';
2
- import { AbstractParser, CSSPropMap, CSSProps, Prop, SystemProps, ThemedCSSPropMap, ThemedCSSProps, VariantConfig } from './types/config';
2
+ import { AbstractParser, CompoundEntry, CSSPropMap, CSSProps, Prop, SystemProps, ThemedCSSPropMap, ThemedCSSProps, VariantConfig } from './types/config';
3
3
  import { AbstractProps, ThemeProps } from './types/props';
4
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>> {
5
+ import { Theme } from './types/theme';
6
+ export declare class AnimusExtendedWithAll<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
7
  propRegistry: PropRegistry;
8
8
  groupRegistry: GroupRegistry;
9
9
  baseStyles: BaseStyles;
@@ -11,14 +11,15 @@ export declare class AnimusExtendedWithAll<T extends BaseTheme, PropRegistry ext
11
11
  variants: Variants;
12
12
  activeGroups: ActiveGroups;
13
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>;
14
+ compounds: CompoundEntry[];
15
+ constructor(props: PropRegistry, groups: GroupRegistry, base: BaseStyles, variants: Variants, states: States, activeGroups: ActiveGroups, custom: CustomProps, compounds?: CompoundEntry[]);
16
+ extend(): AnimusExtended<PropRegistry, GroupRegistry, BaseStyles, Variants, States, ActiveGroups, CustomProps>;
17
+ asElement<El extends keyof JSX.IntrinsicElements>(component: El): AnimusComponent<El, PropRegistry, GroupRegistry, BaseStyles, Variants, States, ActiveGroups, CustomProps>;
17
18
  asComponent<C extends (props: {
18
19
  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>;
20
+ }) => any>(AsComponent: C): AnimusWrappedComponent<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; }, Theme>) => CSSObject) & {
22
+ extend: () => AnimusExtended<PropRegistry, GroupRegistry, BaseStyles, Variants, States, ActiveGroups, CustomProps>;
22
23
  };
23
24
  _buildComponentConfig(): {
24
25
  variants: Record<string, {
@@ -29,41 +30,49 @@ export declare class AnimusExtendedWithAll<T extends BaseTheme, PropRegistry ext
29
30
  systemPropNames: string[];
30
31
  };
31
32
  }
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>;
33
+ declare class AnimusExtendedWithSystem<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<PropRegistry, GroupRegistry, BaseStyles, Variants, States, ActiveGroups, CustomProps> {
34
+ props<NewCustomProps extends Record<string, Prop>>(config: NewCustomProps): AnimusExtendedWithAll<PropRegistry, GroupRegistry, BaseStyles, Variants, States, ActiveGroups, NewCustomProps>;
34
35
  }
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>;
36
+ declare class AnimusExtendedWithStates<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<PropRegistry, GroupRegistry, BaseStyles, Variants, States, ActiveGroups, CustomProps> {
37
+ groups<PickedGroups extends keyof GroupRegistry>(config: Record<PickedGroups, true>): AnimusExtendedWithSystem<PropRegistry, GroupRegistry, BaseStyles, Variants, States, Record<PickedGroups, true> & ActiveGroups, CustomProps>;
37
38
  }
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
+ declare class AnimusExtendedWithCompounds<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<PropRegistry, GroupRegistry, BaseStyles, Variants, States, ActiveGroups, CustomProps> {
40
+ compound<Props extends AbstractProps>(condition: {
41
+ [K in keyof Variants]?: keyof Variants[K]['variants'] | ReadonlyArray<keyof Variants[K]['variants']>;
42
+ }, styles: ThemedCSSProps<Props, PropRegistry>): AnimusExtendedWithCompounds<PropRegistry, GroupRegistry, BaseStyles, Variants, States, ActiveGroups, CustomProps>;
43
+ states<Props extends AbstractProps>(config: ThemedCSSPropMap<Props, PropRegistry>): AnimusExtendedWithStates<PropRegistry, GroupRegistry, BaseStyles, Variants, ThemedCSSPropMap<Props, PropRegistry> & States, ActiveGroups, CustomProps>;
44
+ }
45
+ declare class AnimusExtendedWithVariants<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 AnimusExtendedWithCompounds<PropRegistry, GroupRegistry, BaseStyles, Variants, States, ActiveGroups, CustomProps> {
46
+ compound<Props extends AbstractProps>(condition: {
47
+ [K in keyof Variants]?: keyof Variants[K]['variants'] | ReadonlyArray<keyof Variants[K]['variants']>;
48
+ }, styles: ThemedCSSProps<Props, PropRegistry>): AnimusExtendedWithCompounds<PropRegistry, GroupRegistry, BaseStyles, Variants, States, ActiveGroups, CustomProps>;
39
49
  variant<Keys extends keyof Props, Base extends AbstractProps, Props extends Record<Keys, AbstractProps>, PropKey extends Readonly<string> = 'variant'>(options: {
40
50
  prop?: PropKey;
41
- defaultVariant?: keyof Props;
51
+ defaultVariant?: Extract<keyof Props, string>;
42
52
  base?: ThemedCSSProps<Base, PropRegistry>;
43
53
  variants: ThemedCSSPropMap<Props, PropRegistry>;
44
- }): AnimusExtendedWithVariants<T, PropRegistry, GroupRegistry, BaseStyles, Variants & Record<PropKey, {
54
+ }): AnimusExtendedWithVariants<PropRegistry, GroupRegistry, BaseStyles, Variants & Record<PropKey, {
45
55
  prop?: PropKey;
46
- defaultVariant?: keyof Props;
56
+ defaultVariant?: Extract<keyof Props, string>;
47
57
  base?: ThemedCSSProps<Base, PropRegistry>;
48
58
  variants: ThemedCSSPropMap<Props, PropRegistry>;
49
59
  }>, 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
60
  }
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> {
61
+ declare class AnimusExtendedWithBase<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<PropRegistry, GroupRegistry, BaseStyles, Variants, States, ActiveGroups, CustomProps> {
53
62
  variant<Keys extends keyof Props, Base extends AbstractProps, Props extends Record<Keys, AbstractProps>, PropKey extends Readonly<string> = 'variant'>(options: {
54
63
  prop?: PropKey;
55
- defaultVariant?: keyof Props;
64
+ defaultVariant?: Extract<keyof Props, string>;
56
65
  base?: ThemedCSSProps<Base, PropRegistry>;
57
66
  variants: ThemedCSSPropMap<Props, PropRegistry>;
58
- }): AnimusExtendedWithVariants<T, PropRegistry, GroupRegistry, BaseStyles, Variants & Record<PropKey, {
67
+ }): AnimusExtendedWithVariants<PropRegistry, GroupRegistry, BaseStyles, Variants & Record<PropKey, {
59
68
  prop?: PropKey;
60
- defaultVariant?: keyof Props;
69
+ defaultVariant?: Extract<keyof Props, string>;
61
70
  base?: ThemedCSSProps<Base, PropRegistry>;
62
71
  variants: ThemedCSSPropMap<Props, PropRegistry>;
63
72
  }>, States, ActiveGroups, CustomProps>;
64
73
  }
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>;
74
+ export declare class AnimusExtended<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<PropRegistry, GroupRegistry, BaseStyles, Variants, States, ActiveGroups, CustomProps> {
75
+ styles<Props extends AbstractProps>(config: ThemedCSSProps<Props, PropRegistry>): AnimusExtendedWithBase<PropRegistry, GroupRegistry, ThemedCSSProps<Props, PropRegistry> & BaseStyles, Variants, States, ActiveGroups, CustomProps>;
67
76
  }
68
77
  export {};
69
78
  //# sourceMappingURL=AnimusExtended.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AnimusExtended.d.ts","sourceRoot":"","sources":["../src/AnimusExtended.ts"],"names":[],"mappings":"AAEA,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;A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,EACvE,QAAQ,SAAS,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,EAC9C,MAAM,SAAS,UAAU,CAAC,aAAa,EAAE,WAAW,CAAC,cAAc,CAAC,CAAC,EACrE,YAAY,SAAS,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,EACzC,WAAW,SAAS,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CACxC,SAAQ,sBAAsB,CAC9B,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"}
@@ -1,46 +1,30 @@
1
- import { createTheme } from '@animus-ui/theming';
2
1
  import { Animus } from './Animus';
3
2
  import { PropertyBuilder } from './PropertyBuilder';
4
3
  import { NamedTransform } from './transforms/createTransform';
5
4
  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
5
  export type GlobalStyleMap = Record<string, Record<string, any>>;
18
6
  export interface GlobalStylesConfig {
19
7
  reset?: GlobalStyleMap;
20
8
  global?: GlobalStyleMap;
21
9
  }
22
- export declare class SystemBuilder<T extends BaseTheme = BaseTheme, PropReg extends Record<string, Prop> = {}, GroupReg extends Record<string, (keyof PropReg)[]> = {}> {
10
+ export declare class SystemBuilder<PropReg extends Record<string, Prop> = {}, GroupReg extends Record<string, (keyof PropReg)[]> = {}> {
23
11
  #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>;
12
+ constructor(propRegistry?: PropReg, groupRegistry?: GroupReg, globalStyles?: GlobalStylesConfig);
26
13
  withProperties<NextPropReg extends Record<string, Prop>, NextGroupReg extends Record<string, (keyof NextPropReg)[]>>(cb: (p: PropertyBuilder) => {
27
14
  propRegistry: NextPropReg;
28
15
  groupRegistry: NextGroupReg;
29
- }): SystemBuilder<T, NextPropReg, NextGroupReg>;
30
- withGlobalStyles(styles: GlobalStylesConfig): SystemBuilder<T, PropReg, GroupReg>;
31
- build(): SystemInstance<T, PropReg, GroupReg>;
16
+ }): SystemBuilder<NextPropReg, NextGroupReg>;
17
+ withGlobalStyles(styles: GlobalStylesConfig): SystemBuilder<PropReg, GroupReg>;
18
+ build(): SystemInstance<PropReg, GroupReg>;
32
19
  }
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;
20
+ export type SystemInstance<PropReg extends Record<string, Prop>, GroupReg extends Record<string, (keyof PropReg)[]>> = Animus<PropReg, GroupReg> & {
35
21
  serialize(): SerializedConfig;
36
22
  };
37
23
  export interface SerializedConfig {
38
- tokens: any;
39
24
  propConfig: string;
40
25
  groupRegistry: string;
41
26
  transforms: Record<string, NamedTransform>;
42
27
  globalStyles?: GlobalStylesConfig;
43
28
  }
44
- export declare function createSystem(): SystemBuilder<BaseTheme, {}, {}>;
45
- export {};
29
+ export declare function createSystem(): SystemBuilder<{}, {}>;
46
30
  //# sourceMappingURL=SystemBuilder.d.ts.map
@@ -1 +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,UAA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AgB;IAC/B,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;IAC3C,YAAY,CAAC,EAAE,kBAAkB,CAAC;CACnC;AAiDD,wBAAgB,YAAY,0BAE3B"}
@@ -15,29 +15,29 @@ export declare const color: {
15
15
  readonly property: "borderColor";
16
16
  readonly scale: "colors";
17
17
  };
18
- readonly borderColorX: {
18
+ readonly borderXColor: {
19
19
  readonly property: "borderColor";
20
20
  readonly properties: readonly ["borderLeftColor", "borderRightColor"];
21
21
  readonly scale: "colors";
22
22
  };
23
- readonly borderColorY: {
23
+ readonly borderYColor: {
24
24
  readonly property: "borderColor";
25
25
  readonly properties: readonly ["borderTopColor", "borderBottomColor"];
26
26
  readonly scale: "colors";
27
27
  };
28
- readonly borderColorLeft: {
28
+ readonly borderLeftColor: {
29
29
  readonly property: "borderLeftColor";
30
30
  readonly scale: "colors";
31
31
  };
32
- readonly borderColorRight: {
32
+ readonly borderRightColor: {
33
33
  readonly property: "borderRightColor";
34
34
  readonly scale: "colors";
35
35
  };
36
- readonly borderColorTop: {
36
+ readonly borderTopColor: {
37
37
  readonly property: "borderTopColor";
38
38
  readonly scale: "colors";
39
39
  };
40
- readonly borderColorBottom: {
40
+ readonly borderBottomColor: {
41
41
  readonly property: "borderBottomColor";
42
42
  readonly scale: "colors";
43
43
  };
@@ -92,29 +92,29 @@ export declare const border: {
92
92
  readonly property: "borderWidth";
93
93
  readonly scale: "borderWidths";
94
94
  };
95
- readonly borderWidthX: {
95
+ readonly borderXWidth: {
96
96
  readonly property: "borderWidth";
97
97
  readonly properties: readonly ["borderLeftWidth", "borderRightWidth"];
98
98
  readonly scale: "borderWidths";
99
99
  };
100
- readonly borderWidthY: {
100
+ readonly borderYWidth: {
101
101
  readonly property: "borderWidth";
102
102
  readonly properties: readonly ["borderTopWidth", "borderBottomWidth"];
103
103
  readonly scale: "borderWidths";
104
104
  };
105
- readonly borderWidthLeft: {
105
+ readonly borderLeftWidth: {
106
106
  readonly property: "borderLeftWidth";
107
107
  readonly scale: "borderWidths";
108
108
  };
109
- readonly borderWidthRight: {
109
+ readonly borderRightWidth: {
110
110
  readonly property: "borderRightWidth";
111
111
  readonly scale: "borderWidths";
112
112
  };
113
- readonly borderWidthTop: {
113
+ readonly borderTopWidth: {
114
114
  readonly property: "borderTopWidth";
115
115
  readonly scale: "borderWidths";
116
116
  };
117
- readonly borderWidthBottom: {
117
+ readonly borderBottomWidth: {
118
118
  readonly property: "borderBottomWidth";
119
119
  readonly scale: "borderWidths";
120
120
  };
@@ -123,46 +123,46 @@ export declare const border: {
123
123
  readonly scale: "radii";
124
124
  readonly transform: import("../transforms").NamedTransform;
125
125
  };
126
- readonly borderRadiusLeft: {
126
+ readonly borderLeftRadius: {
127
127
  readonly property: "borderRadius";
128
128
  readonly properties: readonly ["borderTopLeftRadius", "borderBottomLeftRadius"];
129
129
  readonly scale: "radii";
130
130
  readonly transform: import("../transforms").NamedTransform;
131
131
  };
132
- readonly borderRadiusTop: {
132
+ readonly borderTopRadius: {
133
133
  readonly property: "borderRadius";
134
134
  readonly properties: readonly ["borderTopLeftRadius", "borderTopRightRadius"];
135
135
  readonly scale: "radii";
136
136
  readonly transform: import("../transforms").NamedTransform;
137
137
  };
138
- readonly borderRadiusBottom: {
138
+ readonly borderBottomRadius: {
139
139
  readonly property: "borderRadius";
140
140
  readonly properties: readonly ["borderBottomLeftRadius", "borderBottomRightRadius"];
141
141
  readonly scale: "radii";
142
142
  readonly transform: import("../transforms").NamedTransform;
143
143
  };
144
- readonly borderRadiusRight: {
144
+ readonly borderRightRadius: {
145
145
  readonly property: "borderRadius";
146
146
  readonly properties: readonly ["borderTopRightRadius", "borderBottomRightRadius"];
147
147
  readonly scale: "radii";
148
148
  readonly transform: import("../transforms").NamedTransform;
149
149
  };
150
- readonly borderRadiusTopLeft: {
150
+ readonly borderTopLeftRadius: {
151
151
  readonly property: "borderTopLeftRadius";
152
152
  readonly scale: "radii";
153
153
  readonly transform: import("../transforms").NamedTransform;
154
154
  };
155
- readonly borderRadiusTopRight: {
155
+ readonly borderTopRightRadius: {
156
156
  readonly property: "borderTopRightRadius";
157
157
  readonly scale: "radii";
158
158
  readonly transform: import("../transforms").NamedTransform;
159
159
  };
160
- readonly borderRadiusBottomRight: {
160
+ readonly borderBottomRightRadius: {
161
161
  readonly property: "borderBottomRightRadius";
162
162
  readonly scale: "radii";
163
163
  readonly transform: import("../transforms").NamedTransform;
164
164
  };
165
- readonly borderRadiusBottomLeft: {
165
+ readonly borderBottomLeftRadius: {
166
166
  readonly property: "borderBottomLeftRadius";
167
167
  readonly scale: "radii";
168
168
  readonly transform: import("../transforms").NamedTransform;
@@ -170,24 +170,24 @@ export declare const border: {
170
170
  readonly borderStyle: {
171
171
  readonly property: "borderStyle";
172
172
  };
173
- readonly borderStyleX: {
173
+ readonly borderXStyle: {
174
174
  readonly property: "borderStyle";
175
175
  readonly properties: readonly ["borderLeftStyle", "borderRightStyle"];
176
176
  };
177
- readonly borderStyleY: {
177
+ readonly borderYStyle: {
178
178
  readonly property: "borderStyle";
179
179
  readonly properties: readonly ["borderTopStyle", "borderBottomStyle"];
180
180
  };
181
- readonly borderStyleLeft: {
181
+ readonly borderLeftStyle: {
182
182
  readonly property: "borderLeftStyle";
183
183
  };
184
- readonly borderStyleRight: {
184
+ readonly borderRightStyle: {
185
185
  readonly property: "borderRightStyle";
186
186
  };
187
- readonly borderStyleTop: {
187
+ readonly borderTopStyle: {
188
188
  readonly property: "borderTopStyle";
189
189
  };
190
- readonly borderStyleBottom: {
190
+ readonly borderBottomStyle: {
191
191
  readonly property: "borderBottomStyle";
192
192
  };
193
193
  };
@@ -481,26 +481,50 @@ export declare const layout: {
481
481
  readonly property: "width";
482
482
  readonly transform: import("../transforms").NamedTransform;
483
483
  };
484
+ readonly w: {
485
+ readonly property: "width";
486
+ readonly transform: import("../transforms").NamedTransform;
487
+ };
484
488
  readonly minWidth: {
485
489
  readonly property: "minWidth";
486
490
  readonly transform: import("../transforms").NamedTransform;
487
491
  };
492
+ readonly minW: {
493
+ readonly property: "minWidth";
494
+ readonly transform: import("../transforms").NamedTransform;
495
+ };
488
496
  readonly maxWidth: {
489
497
  readonly property: "maxWidth";
490
498
  readonly transform: import("../transforms").NamedTransform;
491
499
  };
500
+ readonly maxW: {
501
+ readonly property: "maxWidth";
502
+ readonly transform: import("../transforms").NamedTransform;
503
+ };
492
504
  readonly height: {
493
505
  readonly property: "height";
494
506
  readonly transform: import("../transforms").NamedTransform;
495
507
  };
508
+ readonly h: {
509
+ readonly property: "height";
510
+ readonly transform: import("../transforms").NamedTransform;
511
+ };
496
512
  readonly minHeight: {
497
513
  readonly property: "minHeight";
498
514
  readonly transform: import("../transforms").NamedTransform;
499
515
  };
516
+ readonly minH: {
517
+ readonly property: "minHeight";
518
+ readonly transform: import("../transforms").NamedTransform;
519
+ };
500
520
  readonly maxHeight: {
501
521
  readonly property: "maxHeight";
502
522
  readonly transform: import("../transforms").NamedTransform;
503
523
  };
524
+ readonly maxH: {
525
+ readonly property: "maxHeight";
526
+ readonly transform: import("../transforms").NamedTransform;
527
+ };
504
528
  readonly verticalAlign: {
505
529
  readonly property: "verticalAlign";
506
530
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/groups/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqBR,CAAC;AAEX,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmHT,CAAC;AA8BX,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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