@typeolymp/ui-components 1.8.3 → 1.9.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.
Files changed (32) 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/Modal/index.d.ts +1 -0
  12. package/build/components/organisms/Result/index.d.ts +14 -0
  13. package/build/components/organisms/Result/stories.d.ts +8 -0
  14. package/build/components/organisms/Result/styles.d.ts +4 -0
  15. package/build/index.d.ts +3 -1
  16. package/build/index.es.js +399 -327
  17. package/build/index.es.js.map +1 -1
  18. package/build/index.js +401 -326
  19. package/build/index.js.map +1 -1
  20. package/package.json +3 -1
  21. package/build/components/molecules/FormField/index.d.ts +0 -32
  22. package/build/components/molecules/FormField/styles.d.ts +0 -5
  23. package/build/components/molecules/Number/index.d.ts +0 -14
  24. package/build/components/molecules/Number/stories.d.ts +0 -19
  25. package/build/components/molecules/Number/styles.d.ts +0 -2
  26. package/build/components/molecules/TranslationSelect/index.d.ts +0 -8
  27. package/build/components/molecules/TranslationSelect/styles.d.ts +0 -4
  28. package/build/components/organisms/Keyboard/layouts/azerty.d.ts +0 -11
  29. package/build/components/organisms/Keyboard/layouts/index.d.ts +0 -3
  30. package/build/components/organisms/Keyboard/layouts/qwerty.d.ts +0 -11
  31. package/build/lib/theme.d.ts +0 -3
  32. package/build/lib/types.d.ts +0 -74
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typeolymp/ui-components",
3
- "version": "1.8.3",
3
+ "version": "1.9.1",
4
4
  "author": "TypeOlymp",
5
5
  "main": "build/index.js",
6
6
  "module": "build/index.es.js",
@@ -17,6 +17,7 @@
17
17
  "access": "restricted"
18
18
  },
19
19
  "peerDependencies": {
20
+ "html-react-parser": "^3.0.4",
20
21
  "react": "^18.1.0",
21
22
  "react-dom": "^18.1.0",
22
23
  "react-spinners": "^0.11.0",
@@ -33,6 +34,7 @@
33
34
  "babel-loader": "^8.2.3",
34
35
  "babel-preset-react-app": "^10.0.0",
35
36
  "date-fns": "^2.28.0",
37
+ "html-react-parser": "^3.0.4",
36
38
  "react": "^17.0.2",
37
39
  "react-dom": "^17.0.2",
38
40
  "react-spinners": "^0.11.0",
@@ -1,32 +0,0 @@
1
- import { FC } from "react";
2
- export declare type ValueType = string | number | boolean;
3
- export declare type FeedbackType = {
4
- message: string;
5
- status: string;
6
- };
7
- declare type FieldBaseType = {
8
- name: string;
9
- initialValue?: ValueType;
10
- autocomplete?: string;
11
- autoFocus?: boolean;
12
- validateTrigger?: "onBlur";
13
- validator?(value: ValueType): FeedbackType;
14
- };
15
- declare type InputFieldType = {
16
- type: "text" | "password";
17
- label: string | JSX.Element;
18
- placeholder?: string;
19
- } & FieldBaseType;
20
- declare type NumberFieldType = {
21
- type: "number";
22
- label: string | JSX.Element;
23
- min?: number;
24
- max?: number;
25
- } & FieldBaseType;
26
- export declare type PropsType = InputFieldType | NumberFieldType;
27
- declare const FormField: FC<PropsType & {
28
- onChange?(field: string, value: ValueType): void;
29
- onBlur?(): void;
30
- feedback: FeedbackType;
31
- }>;
32
- export default FormField;
@@ -1,5 +0,0 @@
1
- export declare const FieldWrapper: any;
2
- export declare const RadioGroup: any;
3
- export declare const RadioWrapper: any;
4
- export declare const Label: any;
5
- export declare const FeedbackWrapper: any;
@@ -1,14 +0,0 @@
1
- import { FC } from "react";
2
- export declare type PropsType = {
3
- initialValue?: number;
4
- autoComplete?: string;
5
- autoFocus?: boolean;
6
- min?: number;
7
- max?: number;
8
- disabled?: boolean;
9
- id?: string;
10
- onChange?(value: string): void;
11
- onBlur?(): void;
12
- };
13
- declare const Number: FC<PropsType>;
14
- export default Number;
@@ -1,19 +0,0 @@
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;
9
- export declare const Playground: {
10
- (args: any): JSX.Element;
11
- args: {
12
- initialValue: number;
13
- min: number;
14
- max: number;
15
- disabled: boolean;
16
- id: string;
17
- };
18
- argTypes: {};
19
- };
@@ -1,2 +0,0 @@
1
- export declare const Wrapper: any;
2
- export declare const StyledInputNumber: any;
@@ -1,8 +0,0 @@
1
- import { FC } from "react";
2
- import { TranslationType } from "@typeolymp/utility/build/types";
3
- export declare type PropsType = {
4
- initialValue: TranslationType;
5
- onChange(translation: TranslationType): void;
6
- };
7
- declare const TranslationSelect: FC<PropsType>;
8
- export default TranslationSelect;
@@ -1,4 +0,0 @@
1
- export declare const Container: any;
2
- export declare const SelectedTranslationWrapper: any;
3
- export declare const DropdownContainer: any;
4
- export declare const Translation: any;
@@ -1,11 +0,0 @@
1
- declare const _default: {
2
- _id: string;
3
- keyboardLayout: string;
4
- index: number;
5
- key: string;
6
- hand: string;
7
- finger: string;
8
- color: string;
9
- shiftKey: boolean;
10
- }[];
11
- export default _default;
@@ -1,3 +0,0 @@
1
- import qwerty from "./qwerty";
2
- import azerty from "./azerty";
3
- export { qwerty, azerty };
@@ -1,11 +0,0 @@
1
- declare const _default: {
2
- _id: string;
3
- keyboardLayout: string;
4
- index: number;
5
- key: string;
6
- hand: string;
7
- finger: string;
8
- color: string;
9
- shiftKey: boolean;
10
- }[];
11
- export default _default;
@@ -1,3 +0,0 @@
1
- import { ThemeType } from "./types";
2
- declare const theme: ThemeType;
3
- export default theme;
@@ -1,74 +0,0 @@
1
- export declare type ColorType = "red" | "yellow" | "blue" | "green" | "purple" | "pink" | "orange" | "darkGray" | "lightGray";
2
- export declare type ColorVariantsType = {
3
- darker: string;
4
- dark: string;
5
- base: string;
6
- light: string;
7
- };
8
- export declare type LocaleType = "nl-NL" | "nl-BE" | "en-GB";
9
- declare type ButtonThemeType = {
10
- height: string;
11
- heightActive: string;
12
- fontSize: string;
13
- marginTopActive: string;
14
- };
15
- declare type HeadingThemeType = {
16
- fontSize: string;
17
- lineHeight: string;
18
- };
19
- declare type SubheadingThemeType = {
20
- fontSize: string;
21
- fontWeight: string;
22
- lineHeight: string;
23
- };
24
- declare type ParagraphThemeType = {
25
- fontSize: string;
26
- lineHeight: string;
27
- };
28
- export declare type ThemeType = {
29
- colors: {
30
- red: ColorVariantsType;
31
- yellow: ColorVariantsType;
32
- blue: ColorVariantsType;
33
- green: ColorVariantsType;
34
- purple: ColorVariantsType;
35
- pink: ColorVariantsType;
36
- orange: ColorVariantsType;
37
- darkGray: ColorVariantsType;
38
- lightGray: ColorVariantsType;
39
- };
40
- fonts: {
41
- heading: string;
42
- paragraph: string;
43
- };
44
- button: {
45
- small: ButtonThemeType;
46
- medium: ButtonThemeType;
47
- };
48
- heading: {
49
- h1: HeadingThemeType;
50
- h2: HeadingThemeType;
51
- h3: HeadingThemeType;
52
- h4: HeadingThemeType;
53
- h5: HeadingThemeType;
54
- h6: HeadingThemeType;
55
- };
56
- subheading: {
57
- small: SubheadingThemeType;
58
- medium: SubheadingThemeType;
59
- large: SubheadingThemeType;
60
- };
61
- paragraph: {
62
- tiny: ParagraphThemeType;
63
- small: ParagraphThemeType;
64
- medium: ParagraphThemeType;
65
- large: ParagraphThemeType;
66
- };
67
- icon: {
68
- tiny: string;
69
- small: string;
70
- medium: string;
71
- large: string;
72
- };
73
- };
74
- export {};