@typeolymp/ui-components 1.12.0 → 1.13.0

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,7 +1,7 @@
1
1
  import React from "react";
2
2
  export declare type PropsType = {
3
3
  label: string | JSX.Element;
4
- color?: "blue" | "green" | "white";
4
+ color?: "blue" | "green" | "red" | "white";
5
5
  size?: "small" | "medium";
6
6
  fluid?: boolean;
7
7
  disabled?: boolean;
@@ -1,6 +1,6 @@
1
1
  import { FC } from "react";
2
2
  export declare type PropsType = {
3
- type: "keyboard" | "accuracy" | "speed" | "trophy" | "clipboard" | "rankings" | "lock" | "lockOpen" | "idCard" | "cookie" | "classroom";
3
+ type: "keyboard" | "accuracy" | "speed" | "trophy" | "clipboard" | "rankings" | "lock" | "lockOpen" | "idCard" | "cookie" | "classroom" | "student";
4
4
  size?: "small" | "medium" | "large";
5
5
  };
6
6
  declare const Illustration: FC<PropsType>;
@@ -1,6 +1,8 @@
1
1
  import { FC } from "react";
2
+ import { Locale } from "@typeolymp/utility/build/enums";
2
3
  import { PropsType as InputPropsType } from ".";
3
4
  export declare type PropsType = InputPropsType & {
5
+ helperLocale?: Locale;
4
6
  onKeyPress?(e: KeyboardEvent): void;
5
7
  };
6
8
  declare const PasswordInput: FC<PropsType>;
@@ -1,2 +1,5 @@
1
+ export declare const Container: any;
1
2
  export declare const InputIconWrapper: any;
2
3
  export declare const StyledInput: any;
4
+ export declare const HelperContainer: any;
5
+ export declare const Helper: any;
@@ -0,0 +1,11 @@
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;
@@ -4,6 +4,7 @@ declare type PropsType = {
4
4
  align?: "left" | "center" | "right";
5
5
  weight?: "regular" | "medium";
6
6
  color?: "white" | "lightGray" | "darkGray";
7
+ transform?: "uppercase" | "lowercase" | "capitalize";
7
8
  as?: "div";
8
9
  children: ReactNode;
9
10
  };
@@ -3,6 +3,7 @@ import { PropsType as IconPropsType } from "../../atoms/Icon";
3
3
  export declare type PropsType = {
4
4
  icon: IconPropsType["type"];
5
5
  color?: "blue" | "green" | "white";
6
+ size?: "small" | "medium";
6
7
  onClick?(): void;
7
8
  };
8
9
  declare const IconButton: FC<PropsType>;
@@ -1,4 +1,2 @@
1
1
  export declare const Container: any;
2
2
  export declare const Label: any;
3
- export declare const HelperContainer: any;
4
- export declare const Helper: any;
@@ -1,8 +1,7 @@
1
- import { FC, ReactNode } from "react";
1
+ import { FC } from "react";
2
2
  declare type TabType = {
3
3
  key: string;
4
4
  label: string;
5
- children: ReactNode;
6
5
  };
7
6
  export declare type PropsType = {
8
7
  alignment?: "horizontal" | "vertical";
@@ -1,13 +1,15 @@
1
1
  import { FC, ReactNode } from "react";
2
2
  export declare type PropsType = {
3
3
  columns: Array<{
4
- title: string;
4
+ title?: string;
5
5
  dataIndex: string;
6
- render?(value: any): ReactNode;
6
+ render?(value: any, row: any): ReactNode;
7
+ align?: "left" | "right" | "center";
7
8
  }>;
8
9
  data: Array<{
9
10
  [key: string]: any;
10
11
  }>;
12
+ empytText?: string;
11
13
  };
12
14
  declare const Table: FC<PropsType>;
13
15
  export default Table;
@@ -5,3 +5,4 @@ export declare const TableFoot: any;
5
5
  export declare const ColumnTitle: any;
6
6
  export declare const TableRow: any;
7
7
  export declare const TableCell: any;
8
+ export declare const EmptyTableCell: any;