@typeolymp/ui-components 1.18.0 → 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.
- package/README.md +8 -3
- package/build/components/organisms/Chart/index.d.ts +3 -3
- package/build/components/organisms/Chart/utils/enums.d.ts +0 -8
- package/build/index.es.js +768 -644
- package/build/index.es.js.map +1 -1
- package/build/index.js +768 -644
- package/build/index.js.map +1 -1
- package/package.json +1 -1
- 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/styles.d.ts +0 -1
- 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/README.md
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
# 💅🏼 ui-components
|
|
2
2
|
The `ui-components` repository is a collection of [React](https://react.dev/) components, crafted with [Typescript](https://www.typescriptlang.org/) and [Styled Components](https://styled-components.com/). The components are organized according to the [Atomic Design system](https://bradfrost.com/blog/post/atomic-web-design/) and provides a versatile set of building blocks to create beautiful and consistent user interfaces.
|
|
3
3
|
|
|
4
|
-
##
|
|
4
|
+
## 📖 Table of Contents
|
|
5
|
+
- [Development](https://github.com/TypeOlymp/ui-components/tree/main#-development)
|
|
6
|
+
- [Contributing](https://github.com/TypeOlymp/ui-components/tree/main#-contributing)
|
|
7
|
+
|
|
8
|
+
## 👨🏻💻 Development
|
|
5
9
|
To get started with this project, follow these step:
|
|
6
10
|
1. **Clone the repository:** Clone the [repository](https://github.com/TypeOlymp/ui-components) to your local machine.
|
|
7
11
|
3. **Install dependencies:** Install the dependencies using `yarn install`
|
|
@@ -9,11 +13,12 @@ To get started with this project, follow these step:
|
|
|
9
13
|
|
|
10
14
|
Open [http://localhost:6006](http://localhost:6006) with your browser to see the result.
|
|
11
15
|
|
|
12
|
-
## Contributing
|
|
16
|
+
## 👫 Contributing
|
|
13
17
|
To contribute to the `ui-components` package, follow these step:
|
|
14
18
|
1. **Clone the Repository:** Clone the [repository](https://github.com/TypeOlymp/ui-components) to your local machine.
|
|
15
19
|
3. **Create a Branch:** Create a new branch for your changes using a descriptive name: `git checkout -b feature/my-new-feature`.
|
|
16
20
|
4. **Make Changes:** Make your desired changes and improvements to the codebase.
|
|
17
21
|
5. **Commit Changes:** Commit your changes with a clear and concise commit message: `git commit -m "Add a new feature"`.
|
|
18
22
|
6. **Push Changes:** Push your changes to your development branch: `git push origin feature/my-new-feature`.
|
|
19
|
-
7. **
|
|
23
|
+
7. **Update the CHANGELOG:** Update the `CHANGELOG.md` file with the new changes.
|
|
24
|
+
8. **Open a Pull Request:** Visit the [repository](https://github.com/TypeOlymp/ui-components) and open a Pull Request. Describe your changes, and submit the pull request.
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { FC } from "react";
|
|
2
2
|
import { Locale } from "@typeolymp/utils/enums";
|
|
3
|
-
import { ExerciseResult
|
|
3
|
+
import { ExerciseResult } from "./utils";
|
|
4
4
|
declare type BasePropsType = {
|
|
5
5
|
exerciseResults: ExerciseResult[];
|
|
6
6
|
locale: Locale;
|
|
7
7
|
};
|
|
8
8
|
export declare type PropsType = (BasePropsType & {
|
|
9
|
-
type:
|
|
9
|
+
type: "accuracy" | "hits" | "results" | "speed" | "time";
|
|
10
10
|
nExercisesInCourse?: never;
|
|
11
11
|
}) | (BasePropsType & {
|
|
12
|
-
type:
|
|
12
|
+
type: "progress";
|
|
13
13
|
nExercisesInCourse: number;
|
|
14
14
|
});
|
|
15
15
|
declare const Chart: FC<PropsType>;
|
|
@@ -5,11 +5,3 @@ export declare enum Period {
|
|
|
5
5
|
"LAST_3_MONTHS" = "90d",
|
|
6
6
|
"LAST_12_MONTHS" = "1y"
|
|
7
7
|
}
|
|
8
|
-
export declare enum ChartType {
|
|
9
|
-
"ACCURACY" = "accuracy",
|
|
10
|
-
"RESULTS" = "results",
|
|
11
|
-
"HITS" = "hits",
|
|
12
|
-
"SPEED" = "speed",
|
|
13
|
-
"PROGRESS" = "progress",
|
|
14
|
-
"TIME" = "time"
|
|
15
|
-
}
|