@animus-ui/core 0.1.1-beta.14 → 0.1.1-beta.18
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 +32 -0
- package/dist/Animus.d.ts +5 -3
- package/dist/AnimusConfig.d.ts +1 -1
- package/dist/compatTheme.d.ts +14 -14
- package/dist/config.d.ts +256 -128
- package/dist/index.d.ts +125 -64
- package/dist/index.js +282 -243
- package/dist/legacy/config.d.ts +2 -2
- package/dist/legacy/core.d.ts +3 -3
- package/dist/legacy/responsive.d.ts +2 -2
- package/dist/scales/createScale.d.ts +3 -0
- package/dist/styles/createParser.d.ts +1 -1
- package/dist/styles/createPropertyStyle.d.ts +1 -1
- package/dist/styles/responsive.d.ts +1 -1
- package/dist/types/config.d.ts +5 -5
- package/dist/types/properties.d.ts +6 -9
- package/package.json +2 -2
- package/tsconfig.json +1 -0
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.18](https://github.com/codecaaron/animus/compare/@animus-ui/core@0.1.1-beta.17...@animus-ui/core@0.1.1-beta.18) (2022-02-11)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @animus-ui/core
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [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)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @animus-ui/core
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## [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)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @animus-ui/core
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
## [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)
|
|
31
|
+
|
|
32
|
+
**Note:** Version bump only for package @animus-ui/core
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
6
38
|
## [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)
|
|
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
|
-
} &
|
|
20
|
-
|
|
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);
|
package/dist/AnimusConfig.d.ts
CHANGED
|
@@ -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);
|
package/dist/compatTheme.d.ts
CHANGED
|
@@ -6,22 +6,22 @@ export declare const compatTheme: {
|
|
|
6
6
|
readonly lg: 1200;
|
|
7
7
|
readonly xl: 1440;
|
|
8
8
|
};
|
|
9
|
-
readonly
|
|
10
|
-
readonly
|
|
11
|
-
readonly
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
};
|
|
15
|
-
readonly
|
|
16
|
-
readonly
|
|
17
|
-
|
|
18
|
-
readonly heading: "Verdana, Lato, sans-serif";
|
|
19
|
-
readonly monospace: "monospace";
|
|
20
|
-
};
|
|
21
|
-
readonly radii: readonly [2, 4, 6, 8];
|
|
22
|
-
readonly borders: readonly [1, 2, 3];
|
|
9
|
+
readonly space: readonly [0, 4, 8, 12, 16, 24, 32, 40, 48, 64, 96];
|
|
10
|
+
readonly fontSizes: readonly [64, 44, 34, 26, 22, 20, 18, 16, 14];
|
|
11
|
+
readonly lineHeights: ((string & {}) | (number & {}))[];
|
|
12
|
+
readonly letterSpacings: {};
|
|
13
|
+
readonly fontWeights: ((string & {}) | (number & {}))[];
|
|
14
|
+
readonly fonts: {};
|
|
15
|
+
readonly radii: ((string & {}) | (number & {}))[];
|
|
16
|
+
readonly borders: ((string & {}) | (number & {}))[];
|
|
17
|
+
readonly borderWidths: ((string & {}) | (number & {}))[];
|
|
23
18
|
readonly colors: {};
|
|
19
|
+
readonly shadows: {};
|
|
24
20
|
readonly modes: {};
|
|
21
|
+
readonly transitions: {};
|
|
22
|
+
readonly animations: {};
|
|
23
|
+
readonly zIndices: {};
|
|
24
|
+
readonly opacities: {};
|
|
25
25
|
readonly mode: undefined;
|
|
26
26
|
};
|
|
27
27
|
export declare type CompatTheme = typeof compatTheme;
|