@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.
Files changed (30) hide show
  1. package/build/components/atoms/Heading/index.d.ts +2 -1
  2. package/build/components/atoms/Input/Date.d.ts +2 -2
  3. package/build/components/atoms/Paragraph/index.d.ts +2 -1
  4. package/build/components/atoms/Select/index.d.ts +2 -1
  5. package/build/components/atoms/Subheading/index.d.ts +2 -1
  6. package/build/components/molecules/Card/index.d.ts +2 -1
  7. package/build/components/molecules/DateInputField/index.d.ts +2 -0
  8. package/build/components/molecules/Key/index.d.ts +2 -2
  9. package/build/components/molecules/Link/index.d.ts +2 -1
  10. package/build/components/molecules/LocaleSelect/index.d.ts +1 -0
  11. package/build/components/molecules/Notification/index.d.ts +5 -4
  12. package/build/components/molecules/Notification/styles.d.ts +1 -0
  13. package/build/components/molecules/Popup/index.d.ts +2 -1
  14. package/build/components/molecules/Steps/Horizontal/index.d.ts +4 -0
  15. package/build/components/molecules/Steps/Horizontal/styles.d.ts +2 -0
  16. package/build/components/molecules/Steps/Vertical/index.d.ts +4 -0
  17. package/build/components/molecules/Steps/Vertical/styles.d.ts +2 -0
  18. package/build/components/molecules/Steps/index.d.ts +12 -0
  19. package/build/components/molecules/Steps/stories.d.ts +8 -0
  20. package/build/components/molecules/Tooltip/index.d.ts +2 -1
  21. package/build/components/organisms/Keyboard/index.d.ts +4 -1
  22. package/build/components/organisms/Keyboard/layouts/azerty.d.ts +1 -1
  23. package/build/components/organisms/Keyboard/layouts/qwerty.d.ts +1 -1
  24. package/build/components/organisms/Modal/index.d.ts +2 -1
  25. package/build/index.d.ts +2 -1
  26. package/build/index.es.js +387 -109
  27. package/build/index.es.js.map +1 -1
  28. package/build/index.js +387 -108
  29. package/build/index.js.map +1 -1
  30. 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?: number;
6
- max?: number;
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;
@@ -4,6 +4,8 @@ export declare type PropsType = {
4
4
  label: string | JSX.Element;
5
5
  autocomplete?: string;
6
6
  initialValue?: string;
7
+ min?: string;
8
+ max?: string;
7
9
  autoFocus?: boolean;
8
10
  disabled?: boolean;
9
11
  onChange?(fieldName: string, value: string): void;
@@ -1,7 +1,7 @@
1
1
  import { FC } from "react";
2
2
  export declare type PropsType = {
3
- character?: string;
4
- color?: string;
3
+ characters?: string[];
4
+ color?: "purple" | "yellow" | "green" | "blue" | "pink";
5
5
  active?: boolean;
6
6
  };
7
7
  declare const Key: FC<PropsType>;
@@ -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,6 +1,7 @@
1
1
  import { FC } from "react";
2
2
  import { LocaleType } from "@typeolymp/utility/build/types";
3
3
  export declare type PropsType = {
4
+ color?: "light" | "dark";
4
5
  locales: Array<LocaleType>;
5
6
  initialValue: LocaleType;
6
7
  onChange(locale: LocaleType): void;
@@ -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
- button?: {
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>;
@@ -1 +1,2 @@
1
1
  export declare const NotificationContainer: any;
2
+ export declare const ButtonContainer: any;
@@ -1,8 +1,9 @@
1
- import { FC } from "react";
1
+ import { FC, ReactNode } from "react";
2
2
  export declare type PropsType = {
3
3
  title?: string;
4
4
  content: string;
5
5
  contrast?: boolean;
6
+ children: ReactNode;
6
7
  };
7
8
  declare const Popup: FC<PropsType>;
8
9
  export default Popup;
@@ -0,0 +1,4 @@
1
+ import { FC } from "react";
2
+ import { PropsType } from "..";
3
+ declare const Steps: FC<PropsType>;
4
+ export default Steps;
@@ -0,0 +1,2 @@
1
+ export declare const Container: any;
2
+ export declare const Step: any;
@@ -0,0 +1,4 @@
1
+ import { FC } from "react";
2
+ import { PropsType } from "..";
3
+ declare const Steps: FC<PropsType>;
4
+ export default Steps;
@@ -0,0 +1,2 @@
1
+ export declare const Container: any;
2
+ export declare const Step: any;
@@ -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;
@@ -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;
@@ -1,7 +1,8 @@
1
- import { FC } from "react";
1
+ import { FC, ReactNode } from "react";
2
2
  export declare type PropsType = {
3
3
  title: string;
4
4
  color?: "light" | "dark";
5
+ children: ReactNode;
5
6
  };
6
7
  declare const Tooltip: FC<PropsType>;
7
8
  export default Tooltip;
@@ -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
- color: string;
7
+ hand: "left" | "right" | "any";
8
+ color: KeyPropsType["color"];
9
+ shiftKey: boolean;
7
10
  }>;
8
11
  activeKey?: string;
9
12
  };
@@ -6,6 +6,6 @@ declare const _default: {
6
6
  hand: string;
7
7
  finger: string;
8
8
  color: string;
9
- __v: number;
9
+ shiftKey: boolean;
10
10
  }[];
11
11
  export default _default;
@@ -6,6 +6,6 @@ declare const _default: {
6
6
  hand: string;
7
7
  finger: string;
8
8
  color: string;
9
- __v: number;
9
+ shiftKey: boolean;
10
10
  }[];
11
11
  export default _default;
@@ -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, };