@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.
- package/build/components/atoms/Illustration/index.d.ts +1 -1
- package/build/components/molecules/Tabs/Horizontal/index.d.ts +4 -0
- package/build/components/molecules/Tabs/Horizontal/styles.d.ts +2 -0
- package/build/components/molecules/Tabs/Vertical/index.d.ts +4 -0
- package/build/components/molecules/Tabs/Vertical/styles.d.ts +2 -0
- package/build/components/molecules/Tabs/index.d.ts +13 -0
- package/build/components/molecules/Tabs/stories.d.ts +8 -0
- package/build/components/molecules/Tabs/styles.d.ts +2 -0
- package/build/components/organisms/Modal/index.d.ts +10 -4
- package/build/components/organisms/Modal/styles.d.ts +1 -0
- package/build/index.d.ts +2 -1
- package/build/index.es.js +172 -115
- package/build/index.es.js.map +1 -1
- package/build/index.js +172 -114
- package/build/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -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,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;
|
|
@@ -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
|
-
|
|
7
|
+
isOpen?: boolean;
|
|
4
8
|
isClosable?: boolean;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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>;
|
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, };
|