@dtdot/lego 0.18.4 → 0.18.5
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.
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const darkTheme:
|
|
1
|
+
import { LegoTheme } from './theme.types';
|
|
2
|
+
declare const darkTheme: LegoTheme;
|
|
3
3
|
export default darkTheme;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const defaultTheme:
|
|
1
|
+
import { LegoTheme } from './theme.types';
|
|
2
|
+
declare const defaultTheme: LegoTheme;
|
|
3
3
|
export default defaultTheme;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { DefaultTheme } from 'styled-components';
|
|
2
2
|
import { Status } from '../theme.types';
|
|
3
|
-
declare const _default: (status: Status, theme: DefaultTheme) => import("
|
|
3
|
+
declare const _default: (status: Status, theme: DefaultTheme) => import("../theme.types").IStatus;
|
|
4
4
|
export default _default;
|
|
@@ -1,2 +1,54 @@
|
|
|
1
1
|
export declare type ColourVariant = 'primary' | 'secondary' | 'tertiary';
|
|
2
2
|
export declare type Status = 'info' | 'success' | 'warn' | 'danger';
|
|
3
|
+
export interface IPalette {
|
|
4
|
+
main: string;
|
|
5
|
+
hover: string;
|
|
6
|
+
contrastText: string;
|
|
7
|
+
}
|
|
8
|
+
export interface IStatus {
|
|
9
|
+
main: string;
|
|
10
|
+
contrast: string;
|
|
11
|
+
}
|
|
12
|
+
export interface IFont {
|
|
13
|
+
family: string;
|
|
14
|
+
size: string;
|
|
15
|
+
weight: string;
|
|
16
|
+
}
|
|
17
|
+
export interface LegoTheme {
|
|
18
|
+
name: string;
|
|
19
|
+
colours: {
|
|
20
|
+
background: string;
|
|
21
|
+
overlayBackground: string;
|
|
22
|
+
primary: IPalette;
|
|
23
|
+
secondary: IPalette;
|
|
24
|
+
tertiary: IPalette;
|
|
25
|
+
defaultFont: string;
|
|
26
|
+
secondaryFont: string;
|
|
27
|
+
secondaryFontHover: string;
|
|
28
|
+
defaultBorder: string;
|
|
29
|
+
faintBorder: string;
|
|
30
|
+
controlBackground: string;
|
|
31
|
+
controlBorder: string;
|
|
32
|
+
controlBorderFocus: string;
|
|
33
|
+
controlBorderHover: string;
|
|
34
|
+
controlPlaceholder: string;
|
|
35
|
+
uploadBackground: string;
|
|
36
|
+
uploadIcon: string;
|
|
37
|
+
cardBackground: string;
|
|
38
|
+
statusInfo: IStatus;
|
|
39
|
+
statusSuccess: IStatus;
|
|
40
|
+
statusWarn: IStatus;
|
|
41
|
+
statusDanger: IStatus;
|
|
42
|
+
};
|
|
43
|
+
fonts: {
|
|
44
|
+
default: IFont;
|
|
45
|
+
heading: IFont;
|
|
46
|
+
subHeading: IFont;
|
|
47
|
+
};
|
|
48
|
+
shadows: {
|
|
49
|
+
small: string;
|
|
50
|
+
medium: string;
|
|
51
|
+
large: string;
|
|
52
|
+
xlarge: string;
|
|
53
|
+
};
|
|
54
|
+
}
|
package/build/theme/themes.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dtdot/lego",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.5",
|
|
4
4
|
"description": "Some reusable components for building my applications",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -32,16 +32,16 @@
|
|
|
32
32
|
"@types/spark-md5": "^3.0.2",
|
|
33
33
|
"@types/styled-components": "^5.1.22",
|
|
34
34
|
"@types/uuid": "^8.3.4",
|
|
35
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
36
|
-
"@typescript-eslint/parser": "^
|
|
35
|
+
"@typescript-eslint/eslint-plugin": "^5.16.0",
|
|
36
|
+
"@typescript-eslint/parser": "^5.16.0",
|
|
37
37
|
"babel-loader": "^8.2.3",
|
|
38
|
-
"eslint": "^
|
|
39
|
-
"eslint-config-prettier": "^
|
|
40
|
-
"eslint-plugin-prettier": "^
|
|
41
|
-
"eslint-plugin-react": "^7.
|
|
38
|
+
"eslint": "^8.12.0",
|
|
39
|
+
"eslint-config-prettier": "^8.5.0",
|
|
40
|
+
"eslint-plugin-prettier": "^4.0.0",
|
|
41
|
+
"eslint-plugin-react": "^7.29.4",
|
|
42
42
|
"eslint-plugin-react-hooks": "^4.3.0",
|
|
43
|
-
"prettier": "^2.
|
|
44
|
-
"prettier-eslint": "^
|
|
43
|
+
"prettier": "^2.6.1",
|
|
44
|
+
"prettier-eslint": "^13.0.0",
|
|
45
45
|
"react": "^17.0.2",
|
|
46
46
|
"react-dom": "^17.0.2",
|
|
47
47
|
"storybook-addon-styled-component-theme": "^1.3.0",
|