@typeolymp/ui-components 1.5.0 → 1.5.2
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/Heading/index.d.ts +2 -1
- package/build/components/atoms/Input/Date.d.ts +2 -2
- package/build/components/atoms/Paragraph/index.d.ts +2 -1
- package/build/components/atoms/Select/index.d.ts +2 -1
- package/build/components/atoms/Subheading/index.d.ts +2 -1
- package/build/components/molecules/Card/index.d.ts +2 -1
- package/build/components/molecules/DateInputField/index.d.ts +2 -0
- package/build/components/molecules/Key/index.d.ts +2 -2
- package/build/components/molecules/Link/index.d.ts +2 -1
- package/build/components/molecules/LocaleSelect/index.d.ts +1 -0
- package/build/components/molecules/Notification/index.d.ts +5 -4
- package/build/components/molecules/Notification/styles.d.ts +1 -0
- package/build/components/molecules/Popup/index.d.ts +2 -1
- package/build/components/molecules/Steps/Horizontal/index.d.ts +4 -0
- package/build/components/molecules/Steps/Horizontal/styles.d.ts +2 -0
- package/build/components/molecules/Steps/Vertical/index.d.ts +4 -0
- package/build/components/molecules/Steps/Vertical/styles.d.ts +2 -0
- package/build/components/molecules/Steps/index.d.ts +12 -0
- package/build/components/molecules/Steps/stories.d.ts +8 -0
- package/build/components/molecules/Tooltip/index.d.ts +2 -1
- package/build/components/organisms/Keyboard/index.d.ts +4 -1
- package/build/components/organisms/Keyboard/layouts/azerty.d.ts +1 -1
- package/build/components/organisms/Keyboard/layouts/qwerty.d.ts +1 -1
- package/build/components/organisms/Modal/index.d.ts +2 -1
- package/build/index.d.ts +2 -1
- package/build/index.es.js +387 -109
- package/build/index.es.js.map +1 -1
- package/build/index.js +387 -108
- package/build/index.js.map +1 -1
- package/package.json +2 -1
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
1
|
+
import { FC, ReactNode } from "react";
|
|
2
2
|
declare type HeadingType = "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
3
3
|
declare type PropsType = {
|
|
4
4
|
type: HeadingType;
|
|
5
5
|
color?: "black" | "white" | "gray";
|
|
6
6
|
align?: "left" | "center" | "right";
|
|
7
7
|
as?: HeadingType | "span";
|
|
8
|
+
children: ReactNode;
|
|
8
9
|
};
|
|
9
10
|
declare const Heading: FC<PropsType>;
|
|
10
11
|
export type { PropsType };
|
|
@@ -2,8 +2,8 @@ import { FC } from "react";
|
|
|
2
2
|
import { PropsType as InputPropsType } from ".";
|
|
3
3
|
export declare type PropsType = InputPropsType & {
|
|
4
4
|
value?: string;
|
|
5
|
-
min?:
|
|
6
|
-
max?:
|
|
5
|
+
min?: string;
|
|
6
|
+
max?: string;
|
|
7
7
|
};
|
|
8
8
|
declare const DateInput: FC<PropsType>;
|
|
9
9
|
export default DateInput;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
1
|
+
import { FC, ReactNode } from "react";
|
|
2
2
|
declare type PropsType = {
|
|
3
3
|
size?: "tiny" | "small" | "medium" | "large";
|
|
4
4
|
align?: "left" | "center" | "right";
|
|
5
5
|
weight?: "regular" | "medium";
|
|
6
6
|
color?: "white" | "lightGray" | "darkGray";
|
|
7
|
+
children: ReactNode;
|
|
7
8
|
};
|
|
8
9
|
declare const Paragraph: FC<PropsType>;
|
|
9
10
|
export type { PropsType };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
1
|
+
import { FC, ReactNode } from "react";
|
|
2
2
|
export declare type PropsType = {
|
|
3
3
|
id: string;
|
|
4
4
|
name: string;
|
|
@@ -8,6 +8,7 @@ export declare type PropsType = {
|
|
|
8
8
|
autoFocus?: boolean;
|
|
9
9
|
onChange?(value: string): void;
|
|
10
10
|
onBlur?(): void;
|
|
11
|
+
children: ReactNode;
|
|
11
12
|
};
|
|
12
13
|
declare const Select: FC<PropsType>;
|
|
13
14
|
export default Select;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
1
|
+
import { FC, ReactNode } from "react";
|
|
2
2
|
declare type PropsType = {
|
|
3
3
|
size?: "small" | "medium" | "large";
|
|
4
4
|
align?: "left" | "center" | "right";
|
|
5
5
|
color?: "black" | "white" | "gray";
|
|
6
|
+
children: ReactNode;
|
|
6
7
|
};
|
|
7
8
|
declare const Subheading: FC<PropsType>;
|
|
8
9
|
export type { PropsType };
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
1
|
+
import { FC, ReactNode } from "react";
|
|
2
2
|
import { ColorType } from "@typeolymp/utility/build/types";
|
|
3
3
|
export declare type PropsType = {
|
|
4
4
|
ellipse?: ColorType;
|
|
5
5
|
id?: string;
|
|
6
|
+
children: ReactNode;
|
|
6
7
|
};
|
|
7
8
|
declare const Card: FC<PropsType>;
|
|
8
9
|
export default Card;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
1
|
+
import { FC, ReactNode } from "react";
|
|
2
2
|
export declare type PropsType = {
|
|
3
3
|
href?: string;
|
|
4
4
|
chevron?: "none" | "right" | "left";
|
|
5
5
|
onClick?(): void;
|
|
6
|
+
children: ReactNode;
|
|
6
7
|
};
|
|
7
8
|
declare const Link: FC<PropsType>;
|
|
8
9
|
export default Link;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { FC } from "react";
|
|
2
2
|
import { PropsType as ButtonPropsType } from "../../atoms/Button";
|
|
3
|
+
declare type ButtonType = {
|
|
4
|
+
label: ButtonPropsType["label"];
|
|
5
|
+
onClick: ButtonPropsType["onClick"];
|
|
6
|
+
};
|
|
3
7
|
export declare type PropsType = {
|
|
4
8
|
title: string;
|
|
5
9
|
content: string;
|
|
6
10
|
isVisible?: boolean;
|
|
7
11
|
contrast?: boolean;
|
|
8
|
-
|
|
9
|
-
label: ButtonPropsType["label"];
|
|
10
|
-
onClick: ButtonPropsType["onClick"];
|
|
11
|
-
};
|
|
12
|
+
buttons?: [ButtonType?, ButtonType?];
|
|
12
13
|
onClose?(): void;
|
|
13
14
|
};
|
|
14
15
|
declare const Notification: FC<PropsType>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
declare type StepType = {
|
|
3
|
+
title: string;
|
|
4
|
+
onClick?(step: number): void;
|
|
5
|
+
};
|
|
6
|
+
export declare type PropsType = {
|
|
7
|
+
alignment?: "horizontal" | "vertical";
|
|
8
|
+
current: number;
|
|
9
|
+
steps: StepType[];
|
|
10
|
+
};
|
|
11
|
+
declare const Steps: FC<PropsType>;
|
|
12
|
+
export default Steps;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { FC } from "react";
|
|
2
|
+
import { PropsType as KeyPropsType } from "../../molecules/Key";
|
|
2
3
|
export declare type PropsType = {
|
|
3
4
|
keys?: Array<{
|
|
4
5
|
index: number;
|
|
5
6
|
key: string;
|
|
6
|
-
|
|
7
|
+
hand: "left" | "right" | "any";
|
|
8
|
+
color: KeyPropsType["color"];
|
|
9
|
+
shiftKey: boolean;
|
|
7
10
|
}>;
|
|
8
11
|
activeKey?: string;
|
|
9
12
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
1
|
+
import { FC, ReactNode } from "react";
|
|
2
2
|
export declare type PropsType = {
|
|
3
3
|
isVisible?: boolean;
|
|
4
4
|
footer?: JSX.Element;
|
|
5
5
|
width?: number;
|
|
6
6
|
onClose?(): void;
|
|
7
|
+
children: ReactNode;
|
|
7
8
|
};
|
|
8
9
|
declare const Modal: FC<PropsType>;
|
|
9
10
|
export default Modal;
|
package/build/index.d.ts
CHANGED
|
@@ -31,6 +31,7 @@ import NumberField from "./components/molecules/NumberField";
|
|
|
31
31
|
import PasswordInputField from "./components/molecules/PasswordInputField";
|
|
32
32
|
import Popup from "./components/molecules/Popup";
|
|
33
33
|
import ProgressBar from "./components/molecules/ProgressBar";
|
|
34
|
+
import Steps from "./components/molecules/Steps";
|
|
34
35
|
import RadioGroup from "./components/molecules/RadioGroup";
|
|
35
36
|
import SelectField from "./components/molecules/SelectField";
|
|
36
37
|
import ToggleField from "./components/molecules/ToggleField";
|
|
@@ -38,4 +39,4 @@ import Tooltip from "./components/molecules/Tooltip";
|
|
|
38
39
|
import Form from "./components/organisms/Form";
|
|
39
40
|
import Keyboard from "./components/organisms/Keyboard";
|
|
40
41
|
import Modal from "./components/organisms/Modal";
|
|
41
|
-
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, RadioGroup, SelectField, ToggleField, Tooltip, Form, Keyboard, 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, };
|