@typeolymp/ui-components 2.0.3 → 2.0.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.
@@ -0,0 +1,4 @@
1
+ export declare const FeedbackColors: {
2
+ success: string;
3
+ error: string;
4
+ };
@@ -0,0 +1 @@
1
+ export declare const generateRandomString: (length: number) => string;
@@ -0,0 +1,3 @@
1
+ import { ThemeType } from "./types";
2
+ declare const theme: ThemeType;
3
+ export default theme;
@@ -0,0 +1,72 @@
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 {};
@@ -0,0 +1,6 @@
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;
@@ -0,0 +1,7 @@
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typeolymp/ui-components",
3
- "version": "2.0.3",
3
+ "version": "2.0.5",
4
4
  "author": "TypeOlymp",
5
5
  "main": "build/index.js",
6
6
  "module": "build/index.es.js",