@typeolymp/ui-components 1.14.3 → 1.16.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,5 +1,5 @@
1
1
  import { FC } from "react";
2
- import { Locale } from "@typeolymp/utility/build/enums";
2
+ import { Locale } from "@typeolymp/utils/enums";
3
3
  export declare type PropsType = {
4
4
  locale: Locale;
5
5
  size?: "small" | "medium" | "large";
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { Locale } from "@typeolymp/utility/build/enums";
2
+ import { Locale } from "@typeolymp/utils/enums";
3
3
  import { PropsType } from ".";
4
4
  declare const _default: {
5
5
  title: string;
@@ -1,6 +1,6 @@
1
1
  import { FC } from "react";
2
2
  export declare type PropsType = {
3
- type: "check" | "chevronUp" | "chevronRight" | "chevronDown" | "chevronLeft" | "eye" | "eyeInvisible" | "warning" | "questionCircle" | "play" | "lock" | "cross" | "bulb" | "star" | "setting" | "reload" | "expand" | "calendar" | "plus" | "envelope" | "facebook" | "instagram" | "menuAlt" | "link" | "heart" | "thunder" | "fire";
3
+ type: "check" | "chevronUp" | "chevronRight" | "chevronDown" | "chevronLeft" | "eye" | "eyeInvisible" | "warning" | "questionCircle" | "play" | "lock" | "cross" | "bulb" | "star" | "setting" | "reload" | "expand" | "calendar" | "plus" | "envelope" | "facebook" | "instagram" | "menuAlt" | "link" | "heart" | "thunder" | "fire" | "control";
4
4
  size?: "tiny" | "small" | "medium" | "large";
5
5
  color?: "blue" | "green" | "orange" | "red" | "purple" | "gray" | "darkGray" | "lightGray" | "white";
6
6
  onClick?(e?: MouseEvent): void;
@@ -1,5 +1,5 @@
1
1
  import { FC } from "react";
2
- import { Locale } from "@typeolymp/utility/build/enums";
2
+ import { Locale } from "@typeolymp/utils/enums";
3
3
  import { PropsType as InputPropsType } from ".";
4
4
  export declare type PropsType = InputPropsType & {
5
5
  helperLocale?: Locale;
@@ -1,4 +1,5 @@
1
1
  import React from "react";
2
+ import { Locale } from "@typeolymp/utils/enums";
2
3
  import { PropsType } from ".";
3
4
  declare const _default: {
4
5
  title: string;
@@ -17,6 +18,7 @@ export declare const Playground: {
17
18
  id: string;
18
19
  disabled: boolean;
19
20
  password: boolean;
21
+ helperLocale: Locale;
20
22
  };
21
23
  argTypes: {};
22
24
  };
@@ -1,5 +1,5 @@
1
1
  import { FC } from "react";
2
- import { Medal as MedalEnum } from "@typeolymp/utility/build/enums";
2
+ import { Medal as MedalEnum } from "@typeolymp/utils/enums";
3
3
  export declare type PropsType = {
4
4
  type: MedalEnum;
5
5
  size?: "small" | "large";
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { Medal as MedalEnum } from "@typeolymp/utility/build/enums";
2
+ import { Medal as MedalEnum } from "@typeolymp/utils/enums";
3
3
  import { PropsType } from ".";
4
4
  declare const _default: {
5
5
  title: string;
@@ -1,5 +1,5 @@
1
1
  import { FC, ReactNode } from "react";
2
- import { Color } from "@typeolymp/utility/build/enums";
2
+ import { Color } from "@typeolymp/utils/enums";
3
3
  export declare type PropsType = {
4
4
  ellipse?: Color;
5
5
  id?: string;
@@ -1,5 +1,5 @@
1
1
  import { FC } from "react";
2
- import { Color } from "@typeolymp/utility/build/enums";
2
+ import { Color } from "@typeolymp/utils/enums";
3
3
  export declare type PropsType = {
4
4
  color: Color;
5
5
  text?: string;
@@ -1,5 +1,5 @@
1
1
  import { FC } from "react";
2
- import { Locale } from "@typeolymp/utility/build/enums";
2
+ import { Locale } from "@typeolymp/utils/enums";
3
3
  export declare type PropsType = {
4
4
  color?: "light" | "dark";
5
5
  locales: Locale[];
@@ -1,5 +1,5 @@
1
1
  import { FC } from "react";
2
- import { Locale } from "@typeolymp/utility/build/enums";
2
+ import { Locale } from "@typeolymp/utils/enums";
3
3
  export declare type PropsType = {
4
4
  name: string;
5
5
  label: string | JSX.Element;
@@ -6,6 +6,7 @@ declare type TabType = {
6
6
  export declare type PropsType = {
7
7
  alignment?: "horizontal" | "vertical";
8
8
  items: TabType[];
9
+ activeKey?: string;
9
10
  onChange?(key: string): void;
10
11
  };
11
12
  declare const Tabs: FC<PropsType>;
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { PropsType } from ".";
3
- import { KeyboardLayout } from "@typeolymp/utility/build/enums";
3
+ import { KeyboardLayout } from "@typeolymp/utils/enums";
4
4
  declare const _default: {
5
5
  title: string;
6
6
  component: React.FC<PropsType>;
@@ -0,0 +1,13 @@
1
+ import { FC } from "react";
2
+ declare type TransferItemType = {
3
+ key: string;
4
+ title: string;
5
+ };
6
+ export declare type PropsType = {
7
+ titles?: [string, string];
8
+ dataSource: TransferItemType[];
9
+ targetKeys?: string[];
10
+ onChange?(targetKeys: string[]): void;
11
+ };
12
+ declare const Transfer: FC<PropsType>;
13
+ export default Transfer;
@@ -0,0 +1,19 @@
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;
9
+ export declare const Playground: {
10
+ (args: any): JSX.Element;
11
+ args: {
12
+ titles: string[];
13
+ dataSource: {
14
+ key: string;
15
+ title: string;
16
+ }[];
17
+ targetKeys: string[];
18
+ };
19
+ };
@@ -0,0 +1,3 @@
1
+ export declare const Container: any;
2
+ export declare const TitleWrapper: any;
3
+ export declare const CheckboxesWrapper: any;
package/build/index.d.ts CHANGED
@@ -47,4 +47,5 @@ import Keyboard from "./components/organisms/Keyboard";
47
47
  import Modal from "./components/organisms/Modal";
48
48
  import Result from "./components/organisms/Result";
49
49
  import Table from "./components/organisms/Table";
50
- 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, Countdown, DateInputField, IconButton, InputField, Key, Link, Loading, LocaleSelect, Medals, Notification, NumberField, PasswordInputField, Popup, ProgressBar, Steps, Tabs, RadioGroup, SelectField, ToggleField, Tooltip, Form, Keyboard, Modal, Result, Table, };
50
+ import Transfer from "./components/organisms/Transfer";
51
+ 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, Countdown, DateInputField, IconButton, InputField, Key, Link, Loading, LocaleSelect, Medals, Notification, NumberField, PasswordInputField, Popup, ProgressBar, Steps, Tabs, RadioGroup, SelectField, ToggleField, Tooltip, Form, Keyboard, Modal, Result, Table, Transfer, };