@typeolymp/ui-components 1.6.0 → 1.7.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.
@@ -0,0 +1,14 @@
1
+ import { FC } from "react";
2
+ export declare type PropsType = {
3
+ id: string;
4
+ defaultValue?: string;
5
+ placeholder?: string;
6
+ autoComplete?: string;
7
+ autoFocus?: boolean;
8
+ disabled?: boolean;
9
+ rows?: number;
10
+ onChange?(value: string): void;
11
+ onBlur?(): void;
12
+ };
13
+ declare const Textarea: FC<PropsType>;
14
+ export default Textarea;
@@ -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 @@
1
+ export declare const StyledTextarea: any;
@@ -0,0 +1,9 @@
1
+ import { FC } from "react";
2
+ export declare type PropsType = {
3
+ items: Array<{
4
+ title: string;
5
+ content: string;
6
+ }>;
7
+ };
8
+ declare const Collapse: FC<PropsType>;
9
+ export default Collapse;
@@ -0,0 +1,15 @@
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: {
9
+ (): JSX.Element;
10
+ parameters: {
11
+ backgrounds: {
12
+ default: string;
13
+ };
14
+ };
15
+ };
@@ -0,0 +1,2 @@
1
+ export declare const Container: any;
2
+ export declare const Item: any;
@@ -0,0 +1,16 @@
1
+ import { FC } from "react";
2
+ export declare type PropsType = {
3
+ name: string;
4
+ label: string | JSX.Element;
5
+ tips?: string[];
6
+ autoComplete?: string;
7
+ defaultValue?: string;
8
+ autoFocus?: boolean;
9
+ disabled?: boolean;
10
+ placeholder?: string;
11
+ rows?: number;
12
+ onChange?(fieldName: string, value: string): void;
13
+ onBlur?(fieldName: string): void;
14
+ };
15
+ declare const TextareaField: FC<PropsType>;
16
+ export default TextareaField;
@@ -0,0 +1,2 @@
1
+ export declare const Container: any;
2
+ export declare const Label: any;
@@ -3,6 +3,7 @@ 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
5
  import { PropsType as DateInputFieldPropsType } from "../../molecules/DateInputField";
6
+ import { PropsType as TextareaFieldPropsType } from "../../molecules/TextareaField";
6
7
  import { PropsType as RadioGroupPropsType } from "../../molecules/RadioGroup";
7
8
  import { PropsType as NumberFieldPropsType } from "../../molecules/NumberField";
8
9
  import { PropsType as CheckboxesPropsType } from "../../molecules/Checkboxes";
@@ -28,6 +29,9 @@ declare type PasswordInputFieldType = {
28
29
  declare type DateInputFieldType = {
29
30
  type: "date";
30
31
  } & DateInputFieldPropsType & ValidationType;
32
+ declare type TextareaFieldType = {
33
+ type: "textarea";
34
+ } & TextareaFieldPropsType & ValidationType;
31
35
  declare type RadioGroupFieldType = {
32
36
  type: "radio";
33
37
  } & RadioGroupPropsType & ValidationType;
@@ -43,7 +47,7 @@ declare type SelectFieldType = {
43
47
  declare type ToggleFieldType = {
44
48
  type: "toggle";
45
49
  } & ToggleFieldPropsType & ValidationType;
46
- export declare type FormFieldType = InputFieldType | PasswordInputFieldType | DateInputFieldType | RadioGroupFieldType | NumberFieldType | CheckboxesFieldType | SelectFieldType | ToggleFieldType;
50
+ export declare type FormFieldType = InputFieldType | PasswordInputFieldType | DateInputFieldType | TextareaFieldType | RadioGroupFieldType | NumberFieldType | CheckboxesFieldType | SelectFieldType | ToggleFieldType;
47
51
  export declare type PropsType = {
48
52
  title?: string;
49
53
  description?: string;
@@ -0,0 +1,14 @@
1
+ declare const _default: {
2
+ _id: {
3
+ $oid: string;
4
+ };
5
+ key: string;
6
+ keyboardLayout: string;
7
+ index: number;
8
+ hand: string;
9
+ finger: string;
10
+ color: string;
11
+ isShiftKey: boolean;
12
+ __v: number;
13
+ }[];
14
+ export default _default;
@@ -13,7 +13,7 @@ export declare const Playground: {
13
13
  };
14
14
  argTypes: {
15
15
  layout: {
16
- options: string[];
16
+ options: import("@typeolymp/utility/build/types/KeyboardLayout").default[];
17
17
  control: {
18
18
  type: string;
19
19
  };
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 Collapse from "./components/molecules/Collapse";
22
23
  import DateInputField from "./components/molecules/DateInputField";
23
24
  import IconButton from "./components/molecules/IconButton";
24
25
  import InputField from "./components/molecules/InputField";
@@ -39,4 +40,4 @@ import Tooltip from "./components/molecules/Tooltip";
39
40
  import Form from "./components/organisms/Form";
40
41
  import Keyboard from "./components/organisms/Keyboard";
41
42
  import Modal from "./components/organisms/Modal";
42
- 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, LocaleSelect, Medals, Notification, NumberField, PasswordInputField, Popup, ProgressBar, Steps, RadioGroup, SelectField, ToggleField, Tooltip, Form, Keyboard, Modal, };
43
+ export { theme, Button, Checkbox, Flag, Heading, Icon, Illustration, Input, Logo, Medal, Number, Paragraph, Radio, Select, Spacer, Subheading, Toggle, Trophy, Alert, Card, Checkboxes, Collapse, DateInputField, IconButton, InputField, Link, Loading, LocaleSelect, Medals, Notification, NumberField, PasswordInputField, Popup, ProgressBar, Steps, RadioGroup, SelectField, ToggleField, Tooltip, Form, Keyboard, Modal, };