@typeolymp/ui-components 1.17.8 → 1.18.1

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 (44) hide show
  1. package/README.md +24 -0
  2. package/build/components/organisms/Chart/Accuracy/data.d.ts +5 -0
  3. package/build/components/organisms/Chart/Accuracy/index.d.ts +4 -0
  4. package/build/components/organisms/Chart/ExerciseResults/data.d.ts +6 -0
  5. package/build/components/organisms/Chart/ExerciseResults/index.d.ts +11 -0
  6. package/build/components/organisms/Chart/Hits/index.d.ts +4 -0
  7. package/build/components/organisms/Chart/Keystrokes/data.d.ts +6 -0
  8. package/build/components/organisms/Chart/Keystrokes/index.d.ts +11 -0
  9. package/build/components/organisms/Chart/KeystrokesPerMinute/data.d.ts +5 -0
  10. package/build/components/organisms/Chart/KeystrokesPerMinute/index.d.ts +10 -0
  11. package/build/components/organisms/Chart/Progress/index.d.ts +6 -0
  12. package/build/components/organisms/Chart/ProgressPercentage/data.d.ts +5 -0
  13. package/build/components/organisms/Chart/ProgressPercentage/index.d.ts +10 -0
  14. package/build/components/organisms/Chart/Results/index.d.ts +4 -0
  15. package/build/components/organisms/Chart/Speed/index.d.ts +4 -0
  16. package/build/components/organisms/Chart/Time/index.d.ts +4 -0
  17. package/build/components/organisms/Chart/TimePractised/data.d.ts +5 -0
  18. package/build/components/organisms/Chart/TimePractised/index.d.ts +10 -0
  19. package/build/components/organisms/Chart/Tooltip/index.d.ts +12 -0
  20. package/build/components/organisms/Chart/Tooltip/styles.d.ts +3 -0
  21. package/build/components/organisms/Chart/data.d.ts +30 -0
  22. package/build/components/organisms/Chart/index.d.ts +16 -0
  23. package/build/components/organisms/Chart/stories.d.ts +12 -0
  24. package/build/components/organisms/Chart/utils/enums.d.ts +7 -0
  25. package/build/components/organisms/Chart/utils/helpers.d.ts +13 -0
  26. package/build/components/organisms/Chart/utils/index.d.ts +56 -0
  27. package/build/components/organisms/Chart/utils/types.d.ts +20 -0
  28. package/build/index.d.ts +2 -1
  29. package/build/index.es.js +39008 -5857
  30. package/build/index.es.js.map +1 -1
  31. package/build/index.js +39008 -5856
  32. package/build/index.js.map +1 -1
  33. package/build/utils/types/TranslationType.d.ts +23 -5
  34. package/package.json +3 -3
  35. package/build/components/atoms/Input/translations.d.ts +0 -11
  36. package/build/components/molecules/Key/translations.d.ts +0 -5
  37. package/build/components/molecules/PasswordInputField/translations.d.ts +0 -11
  38. package/build/components/molecules/Tabs/styles.d.ts +0 -2
  39. package/build/lib/enums.d.ts +0 -4
  40. package/build/lib/helpers.d.ts +0 -1
  41. package/build/lib/theme/index.d.ts +0 -3
  42. package/build/lib/theme/types.d.ts +0 -72
  43. package/build/lib/translations/index.d.ts +0 -6
  44. package/build/lib/types/TranslationType.d.ts +0 -7
@@ -1,11 +1,29 @@
1
1
  export declare type TranslationType = {
2
- "password_helper_capital_letter": string;
3
- "password_helper_number": string;
4
- "password_helper_special_character": string;
5
- "password_helper_password_length": string;
2
+ "At least 1 capital letter": string;
3
+ "At least 1 number": string;
4
+ "At least 1 special character": string;
5
+ "At least 8 characters": string;
6
6
  "Drag file(s) here...": string;
7
- "or": string;
8
7
  "Select file(s)": string;
9
8
  "Upload file(s)...": string;
10
9
  "File type not allowed": string;
10
+ "passed": string;
11
+ "failed": string;
12
+ "accuracy": string;
13
+ "correct": string;
14
+ "wrong": string;
15
+ "kpm": string;
16
+ "progress": string;
17
+ "timePractised": string;
18
+ "Accuracy": string;
19
+ "Finished exercises": string;
20
+ "Keystrokes": string;
21
+ "Keystrokes per minute": string;
22
+ "Progress percentage": string;
23
+ "Time practised": string;
24
+ "Today": string;
25
+ "Last 7 days": string;
26
+ "Last 30 days": string;
27
+ "Last 3 months": string;
28
+ "Last 12 months": string;
11
29
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typeolymp/ui-components",
3
- "version": "1.17.8",
3
+ "version": "1.18.1",
4
4
  "author": "TypeOlymp",
5
5
  "main": "build/index.js",
6
6
  "module": "build/index.es.js",
@@ -11,7 +11,6 @@
11
11
  "build": "rollup -c",
12
12
  "prepublishOnly": "yarn build",
13
13
  "storybook": "storybook dev -p 6006",
14
- "storybook:export": "build-storybook",
15
14
  "build-storybook": "storybook build",
16
15
  "generate:app-translation-type": "node ./src/utils/scripts/generate-app-translation-type.mjs"
17
16
  },
@@ -28,7 +27,8 @@
28
27
  "date-fns": "^2.28.0",
29
28
  "html-react-parser": "^3.0.4",
30
29
  "react-dropzone": "^14.2.3",
31
- "react-spinners": "^0.11.0"
30
+ "react-spinners": "^0.11.0",
31
+ "recharts": "^2.8.0"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@babel/preset-env": "^7.21.5",
@@ -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,5 +0,0 @@
1
- import { LocaleType } from "@typeolymp/utility/build/types";
2
- declare const translations: {
3
- [key in LocaleType]: string;
4
- };
5
- 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,2 +0,0 @@
1
- export declare const TabsContainer: any;
2
- export declare const Tab: any;
@@ -1,4 +0,0 @@
1
- export declare const FeedbackColors: {
2
- success: string;
3
- error: string;
4
- };
@@ -1 +0,0 @@
1
- export declare const generateRandomString: (length: number) => string;
@@ -1,3 +0,0 @@
1
- import { ThemeType } from "./types";
2
- declare const theme: ThemeType;
3
- export default theme;
@@ -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 {};
@@ -1,6 +0,0 @@
1
- import { Locale } from "@typeolymp/utils/enums";
2
- import TranslationType from "../types/TranslationType";
3
- declare const translations: {
4
- [key in Locale]: TranslationType;
5
- };
6
- export default translations;
@@ -1,7 +0,0 @@
1
- declare type TranslationType = {
2
- password_helper_capital_letter: string;
3
- password_helper_number: string;
4
- password_helper_special_character: string;
5
- password_helper_password_length: string;
6
- };
7
- export default TranslationType;