@typeolymp/ui-components 1.3.1 → 1.4.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: "check" | "chevronUp" | "chevronRight" | "chevronDown" | "chevronLeft" | "eye" | "eyeInvisible" | "warning" | "questionCircle" | "play" | "lock" | "cross" | "bulb" | "star" | "setting" | "reload" | "expand";
3
+ type: "check" | "chevronUp" | "chevronRight" | "chevronDown" | "chevronLeft" | "eye" | "eyeInvisible" | "warning" | "questionCircle" | "play" | "lock" | "cross" | "bulb" | "star" | "setting" | "reload" | "expand" | "calendar";
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;
@@ -0,0 +1,9 @@
1
+ import { FC } from "react";
2
+ import { PropsType as InputPropsType } from ".";
3
+ export declare type PropsType = InputPropsType & {
4
+ value?: string;
5
+ min?: number;
6
+ max?: number;
7
+ };
8
+ declare const DateInput: FC<PropsType>;
9
+ export default DateInput;
@@ -1,5 +1,6 @@
1
1
  import { FC } from "react";
2
2
  import { PropsType as PasswordInputPropsType } from "./Password";
3
+ import { PropsType as DateInputPropsType } from "./Date";
3
4
  export declare type PropsType = {
4
5
  id: string;
5
6
  initialValue?: string;
@@ -12,5 +13,6 @@ export declare type PropsType = {
12
13
  };
13
14
  declare const Input: FC<PropsType> & {
14
15
  Password: FC<PasswordInputPropsType>;
16
+ Date: FC<DateInputPropsType>;
15
17
  };
16
18
  export default Input;
@@ -4,6 +4,7 @@ declare const _default: {
4
4
  title: string;
5
5
  component: React.FC<PropsType> & {
6
6
  Password: React.FC<import("./Password").PropsType>;
7
+ Date: React.FC<import("./Date").PropsType>;
7
8
  };
8
9
  };
9
10
  export default _default;
@@ -1,2 +1,2 @@
1
- export declare const PasswordInputWrapper: any;
1
+ export declare const InputIconWrapper: any;
2
2
  export declare const StyledInput: any;
@@ -0,0 +1,13 @@
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
+ onChange?(fieldName: string, value: string): void;
10
+ onBlur?(fieldName: string): void;
11
+ };
12
+ declare const DateInputField: FC<PropsType>;
13
+ export default DateInputField;
@@ -0,0 +1,2 @@
1
+ export declare const Container: any;
2
+ export declare const Label: any;
@@ -8,7 +8,7 @@ export declare type PropsType = {
8
8
  disabled?: boolean;
9
9
  placeholder?: string;
10
10
  onChange?(fieldName: string, value: string): void;
11
- onKeyPressEnter?(): void;
11
+ onKeyPress?(e: KeyboardEvent): void;
12
12
  onBlur?(fieldName: string): void;
13
13
  };
14
14
  declare const PasswordInputField: FC<PropsType>;
@@ -2,6 +2,7 @@ import { FC } from "react";
2
2
  import { PropsType as ButtonPropsType } from "../../atoms/Button";
3
3
  import { PropsType as InputFieldPropsType } from "../../molecules/InputField";
4
4
  import { PropsType as PasswordInputFieldPropsType } from "../../molecules/PasswordInputField";
5
+ import { PropsType as DateInputFieldPropsType } from "../../molecules/DateInputField";
5
6
  import { PropsType as RadioGroupPropsType } from "../../molecules/RadioGroup";
6
7
  import { PropsType as NumberFieldPropsType } from "../../molecules/NumberField";
7
8
  import { PropsType as CheckboxesPropsType } from "../../molecules/Checkboxes";
@@ -24,6 +25,9 @@ declare type PasswordInputFieldType = {
24
25
  type: "password";
25
26
  submitOnEnter?: boolean;
26
27
  } & PasswordInputFieldPropsType & ValidationType;
28
+ declare type DateInputFieldType = {
29
+ type: "date";
30
+ } & DateInputFieldPropsType & ValidationType;
27
31
  declare type RadioGroupFieldType = {
28
32
  type: "radio";
29
33
  } & RadioGroupPropsType & ValidationType;
@@ -39,7 +43,7 @@ declare type SelectFieldType = {
39
43
  declare type ToggleFieldType = {
40
44
  type: "toggle";
41
45
  } & ToggleFieldPropsType & ValidationType;
42
- export declare type FormFieldType = InputFieldType | PasswordInputFieldType | RadioGroupFieldType | NumberFieldType | CheckboxesFieldType | SelectFieldType | ToggleFieldType;
46
+ export declare type FormFieldType = InputFieldType | PasswordInputFieldType | DateInputFieldType | RadioGroupFieldType | NumberFieldType | CheckboxesFieldType | SelectFieldType | ToggleFieldType;
43
47
  export declare type PropsType = {
44
48
  title?: string;
45
49
  description?: string;
@@ -6,6 +6,7 @@ declare const _default: {
6
6
  export default _default;
7
7
  export declare const AllTogether: () => JSX.Element;
8
8
  export declare const Input: () => JSX.Element;
9
+ export declare const Date: () => JSX.Element;
9
10
  export declare const Radio: () => JSX.Element;
10
11
  export declare const Number: () => JSX.Element;
11
12
  export declare const Checkbox: () => JSX.Element;
package/build/index.d.ts CHANGED
@@ -19,6 +19,7 @@ import Trophy from "./components/atoms/Trophy";
19
19
  import Alert from "./components/molecules/Alert";
20
20
  import Card from "./components/molecules/Card";
21
21
  import Checkboxes from "./components/molecules/Checkboxes";
22
+ import DateInputField from "./components/molecules/DateInputField";
22
23
  import IconButton from "./components/molecules/IconButton";
23
24
  import InputField from "./components/molecules/InputField";
24
25
  import Link from "./components/molecules/Link";
@@ -36,4 +37,4 @@ import Tooltip from "./components/molecules/Tooltip";
36
37
  import Form from "./components/organisms/Form";
37
38
  import Keyboard from "./components/organisms/Keyboard";
38
39
  import Modal from "./components/organisms/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, };
40
+ export { theme, Button, Checkbox, Flag, Heading, Icon, Illustration, Input, Logo, Medal, Number, Paragraph, Radio, Select, Spacer, Subheading, Toggle, Trophy, Alert, Card, Checkboxes, DateInputField, IconButton, InputField, Link, Loading, Medals, Notification, NumberField, PasswordInputField, Popup, ProgressBar, RadioGroup, SelectField, ToggleField, Tooltip, Form, Keyboard, Modal, };