@animus-ui/core 0.1.1-beta.13 → 0.1.1-beta.17

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/CHANGELOG.md CHANGED
@@ -3,6 +3,38 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.1.1-beta.17](https://github.com/codecaaron/animus/compare/@animus-ui/core@0.1.1-beta.16...@animus-ui/core@0.1.1-beta.17) (2022-02-02)
7
+
8
+ **Note:** Version bump only for package @animus-ui/core
9
+
10
+
11
+
12
+
13
+
14
+ ## [0.1.1-beta.16](https://github.com/codecaaron/animus/compare/@animus-ui/core@0.1.1-beta.15...@animus-ui/core@0.1.1-beta.16) (2022-02-02)
15
+
16
+ **Note:** Version bump only for package @animus-ui/core
17
+
18
+
19
+
20
+
21
+
22
+ ## [0.1.1-beta.15](https://github.com/codecaaron/animus/compare/@animus-ui/core@0.1.1-beta.14...@animus-ui/core@0.1.1-beta.15) (2022-01-26)
23
+
24
+ **Note:** Version bump only for package @animus-ui/core
25
+
26
+
27
+
28
+
29
+
30
+ ## [0.1.1-beta.14](https://github.com/codecaaron/animus/compare/@animus-ui/core@0.1.1-beta.13...@animus-ui/core@0.1.1-beta.14) (2022-01-24)
31
+
32
+ **Note:** Version bump only for package @animus-ui/core
33
+
34
+
35
+
36
+
37
+
6
38
  ## [0.1.1-beta.13](https://github.com/codecaaron/animus/compare/@animus-ui/core@0.1.1-beta.12...@animus-ui/core@0.1.1-beta.13) (2022-01-24)
7
39
 
8
40
  **Note:** Version bump only for package @animus-ui/core
package/dist/Animus.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
+ import { CSSPropMap, CSSProps, Parser, Prop, SystemProps, VariantConfig } from './types/config';
2
3
  import { AbstractProps, ThemeProps } from './types/props';
3
4
  import { CSSObject } from './types/shared';
4
- import { Parser, Prop, SystemProps, VariantConfig, CSSPropMap, CSSProps } from './types/config';
5
5
  import { Arg } from './types/utils';
6
6
  export declare class AnimusWithAll<PropRegistry extends Record<string, Prop>, GroupRegistry extends Record<string, (keyof PropRegistry)[]>, BaseParser extends Parser<PropRegistry>, BaseStyles extends CSSProps<AbstractProps, SystemProps<BaseParser>>, Variants extends Record<string, VariantConfig>, States extends CSSPropMap<AbstractProps, SystemProps<BaseParser>>, ActiveGroups extends Record<string, true>, CustomProps extends Record<string, Prop>> {
7
7
  propRegistry: PropRegistry;
@@ -16,8 +16,10 @@ export declare class AnimusWithAll<PropRegistry extends Record<string, Prop>, Gr
16
16
  asComponent<T extends keyof JSX.IntrinsicElements>(component: T): import("@emotion/styled").StyledComponent<{
17
17
  theme?: import("@emotion/react").Theme | undefined;
18
18
  as?: import("react").ElementType<any> | undefined;
19
- } & { [K_4 in keyof ThemeProps<{ [K in keyof Arg<BaseParser> as K extends GroupRegistry[Extract<keyof ActiveGroups, keyof GroupRegistry>][number] ? K : never]?: Arg<BaseParser>[K] | undefined; } & { [K_1 in keyof Variants]?: keyof Variants[K_1]["variants"] | undefined; } & { [K_2 in keyof States]?: boolean | undefined; } & { [K_3 in keyof import("./types/config").ParserProps<CustomProps>]: import("./types/config").ParserProps<CustomProps>[K_3]; }>]: ThemeProps<{ [K in keyof Arg<BaseParser> as K extends GroupRegistry[Extract<keyof ActiveGroups, keyof GroupRegistry>][number] ? K : never]?: Arg<BaseParser>[K] | undefined; } & { [K_1 in keyof Variants]?: keyof Variants[K_1]["variants"] | undefined; } & { [K_2 in keyof States]?: boolean | undefined; } & { [K_3 in keyof import("./types/config").ParserProps<CustomProps>]: import("./types/config").ParserProps<CustomProps>[K_3]; }>[K_4]; }, JSX.IntrinsicElements[T], {}>;
20
- build(): (props: { [K in keyof ThemeProps<{ [K_1 in keyof Arg<BaseParser> as K_1 extends GroupRegistry[Extract<keyof ActiveGroups, keyof GroupRegistry>][number] ? K_1 : never]?: Arg<BaseParser>[K_1] | undefined; } & { [K_2 in keyof Variants]?: keyof Variants[K_2]["variants"] | undefined; } & { [K_3 in keyof States]?: boolean | undefined; } & { [K_4 in keyof import("./types/config").ParserProps<CustomProps>]: import("./types/config").ParserProps<CustomProps>[K_4]; }>]: ThemeProps<{ [K_1 in keyof Arg<BaseParser> as K_1 extends GroupRegistry[Extract<keyof ActiveGroups, keyof GroupRegistry>][number] ? K_1 : never]?: Arg<BaseParser>[K_1] | undefined; } & { [K_2 in keyof Variants]?: keyof Variants[K_2]["variants"] | undefined; } & { [K_3 in keyof States]?: boolean | undefined; } & { [K_4 in keyof import("./types/config").ParserProps<CustomProps>]: import("./types/config").ParserProps<CustomProps>[K_4]; }>[K]; }) => CSSObject;
19
+ } & Omit<{ [K in keyof Arg<BaseParser> as K extends GroupRegistry[Extract<keyof ActiveGroups, keyof GroupRegistry>][number] ? K : never]?: Arg<BaseParser>[K] | undefined; }, "theme" | keyof CustomProps | keyof Variants | keyof States> & { [K_1 in keyof Variants]?: keyof Variants[K_1]["variants"] | undefined; } & { [K_2 in keyof States]?: boolean | undefined; } & { [K_3 in keyof import("./types/config").ParserProps<CustomProps>]: import("./types/config").ParserProps<CustomProps>[K_3]; } & {
20
+ theme?: import("@emotion/react").Theme | undefined;
21
+ }, JSX.IntrinsicElements[T], {}>;
22
+ build(): (props: ThemeProps<Omit<{ [K in keyof Arg<BaseParser> as K extends GroupRegistry[Extract<keyof ActiveGroups, keyof GroupRegistry>][number] ? K : never]?: Arg<BaseParser>[K] | undefined; }, "theme" | keyof CustomProps | keyof Variants | keyof States> & { [K_1 in keyof Variants]?: keyof Variants[K_1]["variants"] | undefined; } & { [K_2 in keyof States]?: boolean | undefined; } & { [K_3 in keyof import("./types/config").ParserProps<CustomProps>]: import("./types/config").ParserProps<CustomProps>[K_3]; }>) => CSSObject;
21
23
  }
22
24
  declare class AnimusWithSystem<PropRegistry extends Record<string, Prop>, GroupRegistry extends Record<string, (keyof PropRegistry)[]>, BaseParser extends Parser<PropRegistry>, BaseStyles extends CSSProps<AbstractProps, SystemProps<BaseParser>>, Variants extends Record<string, VariantConfig>, States extends CSSPropMap<AbstractProps, SystemProps<BaseParser>>, ActiveGroups extends Record<string, true>> extends AnimusWithAll<PropRegistry, GroupRegistry, BaseParser, BaseStyles, Variants, States, ActiveGroups, {}> {
23
25
  constructor(props: PropRegistry, groups: GroupRegistry, parser: BaseParser, base: BaseStyles, variants: Variants, states: States, activeGroups: ActiveGroups);
@@ -1,5 +1,5 @@
1
- import { Prop } from './types/config';
2
1
  import { Animus } from './Animus';
2
+ import { Prop } from './types/config';
3
3
  export declare class AnimusConfig<C extends Record<string, Prop> = {}, G extends Record<string, (keyof C)[]> = {}> {
4
4
  #private;
5
5
  constructor(config?: C, groups?: G);
@@ -8,15 +8,12 @@ export declare const compatTheme: {
8
8
  };
9
9
  readonly spacing: readonly [0, 4, 8, 12, 16, 24, 32, 40, 48, 64, 96];
10
10
  readonly fontSize: readonly [64, 44, 34, 26, 22, 20, 18, 16, 14];
11
- readonly lineHeight: {
12
- readonly body: 1.5;
13
- readonly heading: 1;
14
- };
11
+ readonly lineHeight: readonly [1, 1.625, 2];
15
12
  readonly fontWeight: readonly [400, 600, 700];
16
13
  readonly fontFamily: {
17
- readonly body: "Verdana, sans-serif";
18
- readonly heading: "Verdana, Lato, sans-serif";
19
- readonly monospace: "monospace";
14
+ readonly body: "-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,\"Helvetica Neue\",sans-serif";
15
+ readonly heading: "-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,\"Helvetica Neue\",sans-serif";
16
+ readonly monospace: "Menlo,monospace";
20
17
  };
21
18
  readonly radii: readonly [2, 4, 6, 8];
22
19
  readonly borders: readonly [1, 2, 3];
package/dist/index.d.ts CHANGED
@@ -8,7 +8,9 @@ export * from './createAnimus';
8
8
  export * from './transforms';
9
9
  export * from './legacy/core';
10
10
  export * from './compatTheme';
11
+ /** Export extendable config */
11
12
  export { config } from './config';
13
+ /** Export full builder */
12
14
  export declare const animus: import("./Animus").Animus<{
13
15
  readonly gap: {
14
16
  readonly property: "gap";
@@ -216,6 +218,7 @@ export declare const animus: import("./Animus").Animus<{
216
218
  };
217
219
  readonly borderColor: {
218
220
  readonly property: "borderColor";
221
+ /** Export full builder */
219
222
  readonly scale: "colors";
220
223
  };
221
224
  readonly borderColorX: {
@@ -726,6 +729,7 @@ export declare const animus: import("./Animus").Animus<{
726
729
  };
727
730
  readonly borderColor: {
728
731
  readonly property: "borderColor";
732
+ /** Export full builder */
729
733
  readonly scale: "colors";
730
734
  };
731
735
  readonly borderColorX: {