@typeolymp/ui-components 1.2.1 → 1.3.1
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/Icon/index.d.ts +1 -1
- package/build/components/atoms/Input/Password.d.ts +4 -1
- package/build/components/atoms/Input/index.d.ts +2 -1
- package/build/components/atoms/Input/stories.d.ts +1 -1
- package/build/components/molecules/InputField/index.d.ts +0 -1
- package/build/components/molecules/PasswordInputField/index.d.ts +15 -0
- package/build/components/molecules/PasswordInputField/styles.d.ts +2 -0
- package/build/components/organisms/Form/index.d.ts +7 -2
- package/build/index.d.ts +2 -1
- package/build/index.es.js +99 -72
- package/build/index.es.js.map +1 -1
- package/build/index.js +99 -71
- package/build/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ import { FC } from "react";
|
|
|
2
2
|
export declare type PropsType = {
|
|
3
3
|
type: "check" | "chevronUp" | "chevronRight" | "chevronDown" | "chevronLeft" | "eye" | "eyeInvisible" | "warning" | "questionCircle" | "play" | "lock" | "cross" | "bulb" | "star" | "setting" | "reload" | "expand";
|
|
4
4
|
size?: "tiny" | "small" | "medium" | "large";
|
|
5
|
-
color?: "blue" | "green" | "orange" | "red" | "gray" | "darkGray" | "lightGray" | "white";
|
|
5
|
+
color?: "blue" | "green" | "orange" | "red" | "purple" | "gray" | "darkGray" | "lightGray" | "white";
|
|
6
6
|
onClick?(e?: MouseEvent): void;
|
|
7
7
|
};
|
|
8
8
|
declare const Icon: FC<PropsType>;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { FC } from "react";
|
|
2
|
-
import { PropsType } from ".";
|
|
2
|
+
import { PropsType as InputPropsType } from ".";
|
|
3
|
+
export declare type PropsType = InputPropsType & {
|
|
4
|
+
onKeyPress?(e: KeyboardEvent): void;
|
|
5
|
+
};
|
|
3
6
|
declare const PasswordInput: FC<PropsType>;
|
|
4
7
|
export default PasswordInput;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { FC } from "react";
|
|
2
|
+
import { PropsType as PasswordInputPropsType } from "./Password";
|
|
2
3
|
export declare type PropsType = {
|
|
3
4
|
id: string;
|
|
4
5
|
initialValue?: string;
|
|
@@ -10,6 +11,6 @@ export declare type PropsType = {
|
|
|
10
11
|
onBlur?(): void;
|
|
11
12
|
};
|
|
12
13
|
declare const Input: FC<PropsType> & {
|
|
13
|
-
Password: FC<
|
|
14
|
+
Password: FC<PasswordInputPropsType>;
|
|
14
15
|
};
|
|
15
16
|
export default Input;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
export declare type PropsType = {
|
|
3
|
+
name: string;
|
|
4
|
+
label: string | JSX.Element;
|
|
5
|
+
autocomplete?: string;
|
|
6
|
+
initialValue?: string;
|
|
7
|
+
autoFocus?: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
onChange?(fieldName: string, value: string): void;
|
|
11
|
+
onKeyPressEnter?(): void;
|
|
12
|
+
onBlur?(fieldName: string): void;
|
|
13
|
+
};
|
|
14
|
+
declare const PasswordInputField: FC<PropsType>;
|
|
15
|
+
export default PasswordInputField;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { FC } from "react";
|
|
2
2
|
import { PropsType as ButtonPropsType } from "../../atoms/Button";
|
|
3
3
|
import { PropsType as InputFieldPropsType } from "../../molecules/InputField";
|
|
4
|
+
import { PropsType as PasswordInputFieldPropsType } from "../../molecules/PasswordInputField";
|
|
4
5
|
import { PropsType as RadioGroupPropsType } from "../../molecules/RadioGroup";
|
|
5
6
|
import { PropsType as NumberFieldPropsType } from "../../molecules/NumberField";
|
|
6
7
|
import { PropsType as CheckboxesPropsType } from "../../molecules/Checkboxes";
|
|
@@ -17,8 +18,12 @@ declare type ValidationType = {
|
|
|
17
18
|
feedback?: FeedbackType;
|
|
18
19
|
};
|
|
19
20
|
declare type InputFieldType = {
|
|
20
|
-
type: "text"
|
|
21
|
+
type: "text";
|
|
21
22
|
} & InputFieldPropsType & ValidationType;
|
|
23
|
+
declare type PasswordInputFieldType = {
|
|
24
|
+
type: "password";
|
|
25
|
+
submitOnEnter?: boolean;
|
|
26
|
+
} & PasswordInputFieldPropsType & ValidationType;
|
|
22
27
|
declare type RadioGroupFieldType = {
|
|
23
28
|
type: "radio";
|
|
24
29
|
} & RadioGroupPropsType & ValidationType;
|
|
@@ -34,7 +39,7 @@ declare type SelectFieldType = {
|
|
|
34
39
|
declare type ToggleFieldType = {
|
|
35
40
|
type: "toggle";
|
|
36
41
|
} & ToggleFieldPropsType & ValidationType;
|
|
37
|
-
export declare type FormFieldType = InputFieldType | RadioGroupFieldType | NumberFieldType | CheckboxesFieldType | SelectFieldType | ToggleFieldType;
|
|
42
|
+
export declare type FormFieldType = InputFieldType | PasswordInputFieldType | RadioGroupFieldType | NumberFieldType | CheckboxesFieldType | SelectFieldType | ToggleFieldType;
|
|
38
43
|
export declare type PropsType = {
|
|
39
44
|
title?: string;
|
|
40
45
|
description?: string;
|
package/build/index.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ import Loading from "./components/molecules/Loading";
|
|
|
26
26
|
import Medals from "./components/molecules/Medals";
|
|
27
27
|
import Notification from "./components/molecules/Notification";
|
|
28
28
|
import NumberField from "./components/molecules/NumberField";
|
|
29
|
+
import PasswordInputField from "./components/molecules/PasswordInputField";
|
|
29
30
|
import Popup from "./components/molecules/Popup";
|
|
30
31
|
import ProgressBar from "./components/molecules/ProgressBar";
|
|
31
32
|
import RadioGroup from "./components/molecules/RadioGroup";
|
|
@@ -35,4 +36,4 @@ import Tooltip from "./components/molecules/Tooltip";
|
|
|
35
36
|
import Form from "./components/organisms/Form";
|
|
36
37
|
import Keyboard from "./components/organisms/Keyboard";
|
|
37
38
|
import Modal from "./components/organisms/Modal";
|
|
38
|
-
export { theme, Button, Checkbox, Flag, Heading, Icon, Illustration, Input, Logo, Medal, Number, Paragraph, Radio, Select, Spacer, Subheading, Toggle, Trophy, Alert, Card, Checkboxes, IconButton, InputField, Link, Loading, Medals, Notification, NumberField, Popup, ProgressBar, RadioGroup, SelectField, ToggleField, Tooltip, Form, Keyboard, Modal, };
|
|
39
|
+
export { theme, Button, Checkbox, Flag, Heading, Icon, Illustration, Input, Logo, Medal, Number, Paragraph, Radio, Select, Spacer, Subheading, Toggle, Trophy, Alert, Card, Checkboxes, IconButton, InputField, Link, Loading, Medals, Notification, NumberField, PasswordInputField, Popup, ProgressBar, RadioGroup, SelectField, ToggleField, Tooltip, Form, Keyboard, Modal, };
|