@typeolymp/ui-components 1.11.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";
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;
@@ -0,0 +1,4 @@
1
+ import { FC } from "react";
2
+ import { PropsType } from "..";
3
+ declare const Tabs: FC<PropsType>;
4
+ export default Tabs;
@@ -0,0 +1,2 @@
1
+ export declare const TabsContainer: any;
2
+ export declare const Tab: any;
@@ -0,0 +1,4 @@
1
+ import { FC } from "react";
2
+ import { PropsType } from "..";
3
+ declare const Tabs: FC<PropsType>;
4
+ export default Tabs;
@@ -0,0 +1,2 @@
1
+ export declare const TabsContainer: any;
2
+ export declare const Tab: any;
@@ -0,0 +1,12 @@
1
+ import { FC } from "react";
2
+ declare type TabType = {
3
+ key: string;
4
+ label: string;
5
+ };
6
+ export declare type PropsType = {
7
+ alignment?: "horizontal" | "vertical";
8
+ items: TabType[];
9
+ onChange?(key: string): void;
10
+ };
11
+ declare const Tabs: FC<PropsType>;
12
+ export default Tabs;
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ import { PropsType } from ".";
3
+ declare const _default: {
4
+ title: string;
5
+ component: React.FC<PropsType>;
6
+ };
7
+ export default _default;
8
+ export declare const Overview: () => JSX.Element;
@@ -0,0 +1,2 @@
1
+ export declare const TabsContainer: any;
2
+ export declare const Tab: any;
@@ -1,10 +1,16 @@
1
1
  import { FC, ReactNode } from "react";
2
+ declare type ButtonPropsType = {
3
+ label: string;
4
+ onClick(): void;
5
+ };
2
6
  export declare type PropsType = {
3
- isVisible?: boolean;
7
+ isOpen?: boolean;
4
8
  isClosable?: boolean;
5
- footer?: JSX.Element;
6
- width?: number;
7
- onClose?(): void;
9
+ width?: number | string;
10
+ title?: string;
11
+ okButton?: ButtonPropsType;
12
+ closeButton?: ButtonPropsType;
13
+ afterClose?(): void;
8
14
  children: ReactNode;
9
15
  };
10
16
  declare const Modal: FC<PropsType>;
@@ -1,5 +1,6 @@
1
1
  export declare const Mask: any;
2
2
  export declare const CardWrapper: any;
3
+ export declare const TitleWrapper: any;
3
4
  export declare const CloseIconWrapper: any;
4
5
  export declare const ChildrenWrapper: any;
5
6
  export declare const FooterContainer: any;
@@ -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;
package/build/index.d.ts CHANGED
@@ -36,6 +36,7 @@ import PasswordInputField from "./components/molecules/PasswordInputField";
36
36
  import Popup from "./components/molecules/Popup";
37
37
  import ProgressBar from "./components/molecules/ProgressBar";
38
38
  import Steps from "./components/molecules/Steps";
39
+ import Tabs from "./components/molecules/Tabs";
39
40
  import RadioGroup from "./components/molecules/RadioGroup";
40
41
  import SelectField from "./components/molecules/SelectField";
41
42
  import ToggleField from "./components/molecules/ToggleField";
@@ -45,4 +46,4 @@ import Keyboard from "./components/organisms/Keyboard";
45
46
  import Modal from "./components/organisms/Modal";
46
47
  import Result from "./components/organisms/Result";
47
48
  import Table from "./components/organisms/Table";
48
- export { theme, Button, Checkbox, Flag, Heading, Icon, Illustration, Input, Logo, Medal, Number, Paragraph, Radio, Range, Select, Spacer, Subheading, Tag, Toggle, Trophy, Alert, Card, Checkboxes, Collapse, DateInputField, IconButton, InputField, Key, Link, Loading, LocaleSelect, Medals, Notification, NumberField, PasswordInputField, Popup, ProgressBar, Steps, RadioGroup, SelectField, ToggleField, Tooltip, Form, Keyboard, Modal, Result, Table, };
49
+ export { theme, Button, Checkbox, Flag, Heading, Icon, Illustration, Input, Logo, Medal, Number, Paragraph, Radio, Range, Select, Spacer, Subheading, Tag, Toggle, Trophy, Alert, Card, Checkboxes, Collapse, DateInputField, IconButton, InputField, Key, Link, Loading, LocaleSelect, Medals, Notification, NumberField, PasswordInputField, Popup, ProgressBar, Steps, Tabs, RadioGroup, SelectField, ToggleField, Tooltip, Form, Keyboard, Modal, Result, Table, };