@typeolymp/ui-components 1.8.3 → 1.9.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.
Files changed (31) hide show
  1. package/build/components/atoms/Icon/index.d.ts +1 -1
  2. package/build/components/molecules/Key/index.d.ts +4 -3
  3. package/build/components/molecules/{TranslationSelect → Key}/stories.d.ts +1 -8
  4. package/build/components/molecules/Key/styles.d.ts +1 -0
  5. package/build/components/molecules/Key/translations.d.ts +5 -0
  6. package/build/components/molecules/PasswordInputField/index.d.ts +1 -1
  7. package/build/components/organisms/Form/styles.d.ts +1 -0
  8. package/build/components/organisms/Keyboard/Key/index.d.ts +8 -0
  9. package/build/components/organisms/Keyboard/Key/styles.d.ts +1 -0
  10. package/build/components/organisms/Keyboard/index.d.ts +1 -1
  11. package/build/components/organisms/Result/index.d.ts +14 -0
  12. package/build/components/organisms/Result/stories.d.ts +8 -0
  13. package/build/components/organisms/Result/styles.d.ts +4 -0
  14. package/build/index.d.ts +3 -1
  15. package/build/index.es.js +398 -327
  16. package/build/index.es.js.map +1 -1
  17. package/build/index.js +400 -326
  18. package/build/index.js.map +1 -1
  19. package/package.json +3 -1
  20. package/build/components/molecules/FormField/index.d.ts +0 -32
  21. package/build/components/molecules/FormField/styles.d.ts +0 -5
  22. package/build/components/molecules/Number/index.d.ts +0 -14
  23. package/build/components/molecules/Number/stories.d.ts +0 -19
  24. package/build/components/molecules/Number/styles.d.ts +0 -2
  25. package/build/components/molecules/TranslationSelect/index.d.ts +0 -8
  26. package/build/components/molecules/TranslationSelect/styles.d.ts +0 -4
  27. package/build/components/organisms/Keyboard/layouts/azerty.d.ts +0 -11
  28. package/build/components/organisms/Keyboard/layouts/index.d.ts +0 -3
  29. package/build/components/organisms/Keyboard/layouts/qwerty.d.ts +0 -11
  30. package/build/lib/theme.d.ts +0 -3
  31. package/build/lib/types.d.ts +0 -74
@@ -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" | "calendar" | "menuAlt";
3
+ type: "check" | "chevronUp" | "chevronRight" | "chevronDown" | "chevronLeft" | "eye" | "eyeInvisible" | "warning" | "questionCircle" | "play" | "lock" | "cross" | "bulb" | "star" | "setting" | "reload" | "expand" | "calendar" | "plus" | "envelope" | "facebook" | "instagram" | "menuAlt";
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;
@@ -1,8 +1,9 @@
1
1
  import { FC } from "react";
2
2
  export declare type PropsType = {
3
- characters?: string[];
4
- color?: "purple" | "yellow" | "green" | "blue" | "pink";
5
- active?: boolean;
3
+ char: string;
4
+ color: "pink" | "blue" | "green" | "yellow" | "purple";
5
+ status: "passed" | "active" | "incoming";
6
+ error?: boolean;
6
7
  };
7
8
  declare const Key: FC<PropsType>;
8
9
  export default Key;
@@ -5,11 +5,4 @@ declare const _default: {
5
5
  component: React.FC<PropsType>;
6
6
  };
7
7
  export default _default;
8
- export declare const Overview: {
9
- (): JSX.Element;
10
- parameters: {
11
- backgrounds: {
12
- default: string;
13
- };
14
- };
15
- };
8
+ export declare const Overview: () => JSX.Element;
@@ -1 +1,2 @@
1
1
  export declare const Container: any;
2
+ export declare const CheckIconWrapper: any;
@@ -0,0 +1,5 @@
1
+ import { LocaleType } from "@typeolymp/utility/build/types";
2
+ declare const translations: {
3
+ [key in LocaleType]: string;
4
+ };
5
+ export default translations;
@@ -8,7 +8,7 @@ export declare type PropsType = {
8
8
  autoFocus?: boolean;
9
9
  disabled?: boolean;
10
10
  placeholder?: string;
11
- helper?: LocaleType;
11
+ helperLocale?: LocaleType;
12
12
  onChange?(fieldName: string, value: string): void;
13
13
  onKeyPress?(e: KeyboardEvent): void;
14
14
  onBlur?(fieldName: string): void;
@@ -1,2 +1,3 @@
1
1
  export declare const FormWrapper: any;
2
+ export declare const DescriptionWrapper: any;
2
3
  export declare const ButtonWrapper: any;
@@ -0,0 +1,8 @@
1
+ import { FC } from "react";
2
+ export declare type PropsType = {
3
+ characters?: string[];
4
+ color?: "purple" | "yellow" | "green" | "blue" | "pink";
5
+ active?: boolean;
6
+ };
7
+ declare const Key: FC<PropsType>;
8
+ export default Key;
@@ -0,0 +1 @@
1
+ export declare const Container: any;
@@ -1,5 +1,5 @@
1
1
  import { FC } from "react";
2
- import { PropsType as KeyPropsType } from "../../molecules/Key";
2
+ import { PropsType as KeyPropsType } from "./Key";
3
3
  export declare type PropsType = {
4
4
  keys?: Array<{
5
5
  index: number;
@@ -0,0 +1,14 @@
1
+ import { FC } from "react";
2
+ export declare type PropsType = {
3
+ title: string;
4
+ subtitle: string;
5
+ target: number;
6
+ value: number;
7
+ progressBar?: {
8
+ min: number;
9
+ max: number;
10
+ unit?: string;
11
+ };
12
+ };
13
+ declare const Result: FC<PropsType>;
14
+ export default Result;
@@ -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,4 @@
1
+ export declare const Container: any;
2
+ export declare const ProgressBarWrapper: any;
3
+ export declare const Indicator: any;
4
+ export declare const Target: any;
package/build/index.d.ts CHANGED
@@ -24,6 +24,7 @@ import Collapse from "./components/molecules/Collapse";
24
24
  import DateInputField from "./components/molecules/DateInputField";
25
25
  import IconButton from "./components/molecules/IconButton";
26
26
  import InputField from "./components/molecules/InputField";
27
+ import Key from "./components/molecules/Key";
27
28
  import Link from "./components/molecules/Link";
28
29
  import Loading from "./components/molecules/Loading";
29
30
  import LocaleSelect from "./components/molecules/LocaleSelect";
@@ -41,4 +42,5 @@ import Tooltip from "./components/molecules/Tooltip";
41
42
  import Form from "./components/organisms/Form";
42
43
  import Keyboard from "./components/organisms/Keyboard";
43
44
  import Modal from "./components/organisms/Modal";
44
- 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, Link, Loading, LocaleSelect, Medals, Notification, NumberField, PasswordInputField, Popup, ProgressBar, Steps, RadioGroup, SelectField, ToggleField, Tooltip, Form, Keyboard, Modal, };
45
+ 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, };