@typeolymp/ui-components 1.20.1 → 2.0.2
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/build/components/organisms/Keyboard/index.d.ts +1 -4
- package/build/components/organisms/Keyboard/stories.d.ts +1 -3
- package/build/index.es.js +1275 -1144
- package/build/index.es.js.map +1 -1
- package/build/index.js +1275 -1144
- package/build/index.js.map +1 -1
- package/package.json +2 -2
- package/build/components/atoms/Input/translations.d.ts +0 -11
- package/build/components/molecules/Key/translations.d.ts +0 -5
- package/build/components/molecules/PasswordInputField/translations.d.ts +0 -11
- package/build/components/molecules/Tabs/styles.d.ts +0 -2
- package/build/components/organisms/Chart/data copy.d.ts +0 -30
- package/build/components/organisms/Chart/styles.d.ts +0 -1
- package/build/components/organisms/Keyboard/Legacy/Key/index.d.ts +0 -8
- package/build/components/organisms/Keyboard/Legacy/Key/styles.d.ts +0 -1
- package/build/components/organisms/Keyboard/Legacy/index.d.ts +0 -14
- package/build/components/organisms/Keyboard/Legacy/styles.d.ts +0 -6
- package/build/lib/enums.d.ts +0 -4
- package/build/lib/helpers.d.ts +0 -1
- package/build/lib/theme/index.d.ts +0 -3
- package/build/lib/theme/types.d.ts +0 -72
- package/build/lib/translations/index.d.ts +0 -6
- package/build/lib/types/TranslationType.d.ts +0 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typeolymp/ui-components",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"author": "TypeOlymp",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"module": "build/index.es.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"styled-components": "5.3.10"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@typeolymp/utils": "^0.
|
|
26
|
+
"@typeolymp/utils": "^1.0.2",
|
|
27
27
|
"date-fns": "^2.28.0",
|
|
28
28
|
"html-react-parser": "^3.0.4",
|
|
29
29
|
"react-dropzone": "^14.2.3",
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Locale } from "@typeolymp/utility/build/enums";
|
|
2
|
-
declare type TranslationsType = {
|
|
3
|
-
capitalLetter: string;
|
|
4
|
-
number: string;
|
|
5
|
-
specialCharacter: string;
|
|
6
|
-
length: string;
|
|
7
|
-
};
|
|
8
|
-
declare const translations: {
|
|
9
|
-
[key in Locale]: TranslationsType;
|
|
10
|
-
};
|
|
11
|
-
export default translations;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Locale } from "@typeolymp/utility/build/enums";
|
|
2
|
-
declare type TranslationsType = {
|
|
3
|
-
capitalLetter: string;
|
|
4
|
-
number: string;
|
|
5
|
-
specialCharacter: string;
|
|
6
|
-
length: string;
|
|
7
|
-
};
|
|
8
|
-
declare const translations: {
|
|
9
|
-
[key in Locale]: TranslationsType;
|
|
10
|
-
};
|
|
11
|
-
export default translations;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
declare const _default: ({
|
|
2
|
-
_id: string;
|
|
3
|
-
student: string;
|
|
4
|
-
exercise: string;
|
|
5
|
-
passed: boolean;
|
|
6
|
-
medal: string;
|
|
7
|
-
accuracy: number;
|
|
8
|
-
kpm: number;
|
|
9
|
-
hits: {
|
|
10
|
-
correct: number;
|
|
11
|
-
wrong: number;
|
|
12
|
-
};
|
|
13
|
-
seconds: number;
|
|
14
|
-
date: string;
|
|
15
|
-
} | {
|
|
16
|
-
_id: string;
|
|
17
|
-
student: string;
|
|
18
|
-
exercise: string;
|
|
19
|
-
passed: boolean;
|
|
20
|
-
accuracy: number;
|
|
21
|
-
kpm: number;
|
|
22
|
-
hits: {
|
|
23
|
-
correct: number;
|
|
24
|
-
wrong: number;
|
|
25
|
-
};
|
|
26
|
-
seconds: number;
|
|
27
|
-
date: string;
|
|
28
|
-
medal?: undefined;
|
|
29
|
-
})[];
|
|
30
|
-
export default _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const Container: any;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
2
|
-
import { PropsType as KeyPropsType } from "./Key";
|
|
3
|
-
export declare type PropsType = {
|
|
4
|
-
keys?: Array<{
|
|
5
|
-
index: number;
|
|
6
|
-
key: string;
|
|
7
|
-
hand: "left" | "right" | "any";
|
|
8
|
-
color: KeyPropsType["color"];
|
|
9
|
-
isShiftKey: boolean;
|
|
10
|
-
}>;
|
|
11
|
-
activeKey?: string;
|
|
12
|
-
};
|
|
13
|
-
declare const Keyboard: FC<PropsType>;
|
|
14
|
-
export default Keyboard;
|
package/build/lib/enums.d.ts
DELETED
package/build/lib/helpers.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const generateRandomString: (length: number) => string;
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
declare type ColorVariantsType = {
|
|
2
|
-
darker: string;
|
|
3
|
-
dark: string;
|
|
4
|
-
base: string;
|
|
5
|
-
light: string;
|
|
6
|
-
};
|
|
7
|
-
declare type ButtonThemeType = {
|
|
8
|
-
height: string;
|
|
9
|
-
heightActive: string;
|
|
10
|
-
fontSize: string;
|
|
11
|
-
marginTopActive: string;
|
|
12
|
-
};
|
|
13
|
-
declare type HeadingThemeType = {
|
|
14
|
-
fontSize: string;
|
|
15
|
-
lineHeight: string;
|
|
16
|
-
};
|
|
17
|
-
declare type SubheadingThemeType = {
|
|
18
|
-
fontSize: string;
|
|
19
|
-
fontWeight: string;
|
|
20
|
-
lineHeight: string;
|
|
21
|
-
};
|
|
22
|
-
declare type ParagraphThemeType = {
|
|
23
|
-
fontSize: string;
|
|
24
|
-
lineHeight: string;
|
|
25
|
-
};
|
|
26
|
-
export declare type ThemeType = {
|
|
27
|
-
colors: {
|
|
28
|
-
red: ColorVariantsType;
|
|
29
|
-
yellow: ColorVariantsType;
|
|
30
|
-
blue: ColorVariantsType;
|
|
31
|
-
green: ColorVariantsType;
|
|
32
|
-
purple: ColorVariantsType;
|
|
33
|
-
pink: ColorVariantsType;
|
|
34
|
-
orange: ColorVariantsType;
|
|
35
|
-
darkGray: ColorVariantsType;
|
|
36
|
-
lightGray: ColorVariantsType;
|
|
37
|
-
};
|
|
38
|
-
fonts: {
|
|
39
|
-
heading: string;
|
|
40
|
-
paragraph: string;
|
|
41
|
-
};
|
|
42
|
-
button: {
|
|
43
|
-
small: ButtonThemeType;
|
|
44
|
-
medium: ButtonThemeType;
|
|
45
|
-
};
|
|
46
|
-
heading: {
|
|
47
|
-
h1: HeadingThemeType;
|
|
48
|
-
h2: HeadingThemeType;
|
|
49
|
-
h3: HeadingThemeType;
|
|
50
|
-
h4: HeadingThemeType;
|
|
51
|
-
h5: HeadingThemeType;
|
|
52
|
-
h6: HeadingThemeType;
|
|
53
|
-
};
|
|
54
|
-
subheading: {
|
|
55
|
-
small: SubheadingThemeType;
|
|
56
|
-
medium: SubheadingThemeType;
|
|
57
|
-
large: SubheadingThemeType;
|
|
58
|
-
};
|
|
59
|
-
paragraph: {
|
|
60
|
-
tiny: ParagraphThemeType;
|
|
61
|
-
small: ParagraphThemeType;
|
|
62
|
-
medium: ParagraphThemeType;
|
|
63
|
-
large: ParagraphThemeType;
|
|
64
|
-
};
|
|
65
|
-
icon: {
|
|
66
|
-
tiny: string;
|
|
67
|
-
small: string;
|
|
68
|
-
medium: string;
|
|
69
|
-
large: string;
|
|
70
|
-
};
|
|
71
|
-
};
|
|
72
|
-
export {};
|