@typeolymp/ui-components 1.9.9 → 1.9.11
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/Button/index.d.ts +1 -0
- package/build/components/atoms/Button/styles.d.ts +1 -0
- package/build/components/atoms/Range/index.d.ts +13 -0
- package/build/components/atoms/Range/stories.d.ts +7 -0
- package/build/components/atoms/Range/styles.d.ts +1 -0
- package/build/components/molecules/RangeField/index.d.ts +12 -0
- package/build/components/molecules/RangeField/styles.d.ts +2 -0
- package/build/components/organisms/Form/index.d.ts +5 -1
- package/build/components/organisms/Form/stories.d.ts +1 -0
- package/build/index.d.ts +2 -1
- package/build/index.es.js +242 -134
- package/build/index.es.js.map +1 -1
- package/build/index.js +243 -134
- package/build/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -10,6 +10,7 @@ export declare type PropsType = {
|
|
|
10
10
|
href?: string;
|
|
11
11
|
asAnchor?: boolean;
|
|
12
12
|
onClick?(): void;
|
|
13
|
+
onClickAsync?(resolve: any): void;
|
|
13
14
|
};
|
|
14
15
|
declare const Button: React.ForwardRefExoticComponent<PropsType & React.RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
|
|
15
16
|
export default Button;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
export declare type PropsType = {
|
|
3
|
+
id: string;
|
|
4
|
+
min?: number;
|
|
5
|
+
max?: number;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
autoFocus?: boolean;
|
|
8
|
+
defaultValue?: number;
|
|
9
|
+
onChange?(value: number): void;
|
|
10
|
+
onBlur?(): void;
|
|
11
|
+
};
|
|
12
|
+
declare const Range: FC<PropsType>;
|
|
13
|
+
export default Range;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const StyledRange: any;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
export declare type PropsType = {
|
|
3
|
+
name: string;
|
|
4
|
+
label: string | JSX.Element;
|
|
5
|
+
defaultValue?: number;
|
|
6
|
+
autoFocus?: boolean;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
onChange?(fieldName: string, value: number): void;
|
|
9
|
+
onBlur?(fieldName: string): void;
|
|
10
|
+
};
|
|
11
|
+
declare const RangeField: FC<PropsType>;
|
|
12
|
+
export default RangeField;
|
|
@@ -9,6 +9,7 @@ import { PropsType as NumberFieldPropsType } from "../../molecules/NumberField";
|
|
|
9
9
|
import { PropsType as CheckboxesPropsType } from "../../molecules/Checkboxes";
|
|
10
10
|
import { PropsType as SelectFieldPropsType } from "../../molecules/SelectField";
|
|
11
11
|
import { PropsType as ToggleFieldPropsType } from "../../molecules/ToggleField";
|
|
12
|
+
import { PropsType as RangeFieldPropsType } from "../../molecules/RangeField";
|
|
12
13
|
declare type ValueType = string | number | boolean | Array<string>;
|
|
13
14
|
export declare type FeedbackType = {
|
|
14
15
|
message: string;
|
|
@@ -47,7 +48,10 @@ declare type SelectFieldType = {
|
|
|
47
48
|
declare type ToggleFieldType = {
|
|
48
49
|
type: "toggle";
|
|
49
50
|
} & ToggleFieldPropsType & ValidationType;
|
|
50
|
-
|
|
51
|
+
declare type RangeFieldType = {
|
|
52
|
+
type: "range";
|
|
53
|
+
} & RangeFieldPropsType & ValidationType;
|
|
54
|
+
export declare type FormFieldType = InputFieldType | PasswordInputFieldType | DateInputFieldType | TextareaFieldType | RadioGroupFieldType | NumberFieldType | CheckboxesFieldType | SelectFieldType | ToggleFieldType | RangeFieldType;
|
|
51
55
|
export declare type PropsType = {
|
|
52
56
|
title?: string;
|
|
53
57
|
description?: string;
|
|
@@ -14,6 +14,7 @@ export declare const Number: () => JSX.Element;
|
|
|
14
14
|
export declare const Checkbox: () => JSX.Element;
|
|
15
15
|
export declare const Select: () => JSX.Element;
|
|
16
16
|
export declare const Toggle: () => JSX.Element;
|
|
17
|
+
export declare const Range: () => JSX.Element;
|
|
17
18
|
export declare const ValidationOnSubmit: () => JSX.Element;
|
|
18
19
|
export declare const ValidationOnBlur: () => JSX.Element;
|
|
19
20
|
export declare const ValidationOnChange: () => JSX.Element;
|
package/build/index.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ import Medal from "./components/atoms/Medal";
|
|
|
11
11
|
import Number from "./components/atoms/Number";
|
|
12
12
|
import Paragraph from "./components/atoms/Paragraph";
|
|
13
13
|
import Radio from "./components/atoms/Radio";
|
|
14
|
+
import Range from "./components/atoms/Range";
|
|
14
15
|
import Select from "./components/atoms/Select";
|
|
15
16
|
import Spacer from "./components/atoms/Spacer";
|
|
16
17
|
import Subheading from "./components/atoms/Subheading";
|
|
@@ -43,4 +44,4 @@ import Form from "./components/organisms/Form";
|
|
|
43
44
|
import Keyboard from "./components/organisms/Keyboard";
|
|
44
45
|
import Modal from "./components/organisms/Modal";
|
|
45
46
|
import Result from "./components/organisms/Result";
|
|
46
|
-
export { theme, Button, Checkbox, Flag, Heading, Icon, Illustration, Input, Logo, Medal, Number, Paragraph, Radio, 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, };
|
|
47
|
+
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, };
|