@typeolymp/ui-components 1.11.0 → 1.12.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,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";
4
4
  size?: "small" | "medium" | "large";
5
5
  };
6
6
  declare const Illustration: FC<PropsType>;
@@ -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,13 @@
1
+ import { FC, ReactNode } from "react";
2
+ declare type TabType = {
3
+ key: string;
4
+ label: string;
5
+ children: ReactNode;
6
+ };
7
+ export declare type PropsType = {
8
+ alignment?: "horizontal" | "vertical";
9
+ items: TabType[];
10
+ onChange?(key: string): void;
11
+ };
12
+ declare const Tabs: FC<PropsType>;
13
+ 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;
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, };