@typeolymp/ui-components 1.9.12 → 1.9.14

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.
@@ -10,7 +10,7 @@ export declare type PropsType = {
10
10
  href?: string;
11
11
  asAnchor?: boolean;
12
12
  onClick?(): void;
13
- onClickAsync?(resolve: (value: void | PromiseLike<void>) => void): void;
13
+ onClickAsync?(resolve: (value: void) => void): void;
14
14
  };
15
15
  declare const Button: React.ForwardRefExoticComponent<PropsType & React.RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
16
16
  export default Button;
@@ -1,7 +1,7 @@
1
1
  import { FC } from "react";
2
- import { LocaleType } from "@typeolymp/utility/build/types";
2
+ import { Locale } from "@typeolymp/utility/build/enums";
3
3
  export declare type PropsType = {
4
- locale: LocaleType;
4
+ locale: Locale;
5
5
  size?: "small" | "medium" | "large";
6
6
  };
7
7
  declare const Flag: FC<PropsType>;
@@ -1,4 +1,5 @@
1
1
  import React from "react";
2
+ import { Locale } from "@typeolymp/utility/build/enums";
2
3
  import { PropsType } from ".";
3
4
  declare const _default: {
4
5
  title: string;
@@ -14,7 +15,7 @@ export declare const Playground: {
14
15
  };
15
16
  argTypes: {
16
17
  locale: {
17
- options: import("@typeolymp/utility/build/types/Locale").default[];
18
+ options: Locale[];
18
19
  control: {
19
20
  type: string;
20
21
  };
@@ -1,7 +1,7 @@
1
1
  import { FC } from "react";
2
- import { MedalType } from "@typeolymp/utility/build/types";
2
+ import { Medal as MedalEnum } from "@typeolymp/utility/build/enums";
3
3
  export declare type PropsType = {
4
- type: MedalType;
4
+ type: MedalEnum;
5
5
  size?: "small" | "large";
6
6
  };
7
7
  declare const Medal: FC<PropsType>;
@@ -1,4 +1,5 @@
1
1
  import React from "react";
2
+ import { Medal as MedalEnum } from "@typeolymp/utility/build/enums";
2
3
  import { PropsType } from ".";
3
4
  declare const _default: {
4
5
  title: string;
@@ -14,7 +15,7 @@ export declare const Playground: {
14
15
  };
15
16
  argTypes: {
16
17
  type: {
17
- options: import("@typeolymp/utility/build/types/Medal").default[];
18
+ options: MedalEnum[];
18
19
  control: {
19
20
  type: string;
20
21
  };
@@ -1,7 +1,7 @@
1
1
  import { FC, ReactNode } from "react";
2
- import { ColorType } from "@typeolymp/utility/build/types";
2
+ import { Color } from "@typeolymp/utility/build/enums";
3
3
  export declare type PropsType = {
4
- ellipse?: ColorType;
4
+ ellipse?: Color;
5
5
  id?: string;
6
6
  children: ReactNode;
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import { FC } from "react";
2
- import { ColorType } from "@typeolymp/utility/build/types";
2
+ import { Color } from "@typeolymp/utility/build/enums";
3
3
  export declare type PropsType = {
4
- color: ColorType;
4
+ color: Color;
5
5
  text?: string;
6
6
  textColor?: "black" | "white";
7
7
  };
@@ -1,10 +1,10 @@
1
1
  import { FC } from "react";
2
- import { LocaleType } from "@typeolymp/utility/build/types";
2
+ import { Locale } from "@typeolymp/utility/build/enums";
3
3
  export declare type PropsType = {
4
4
  color?: "light" | "dark";
5
- locales: LocaleType[];
6
- defaultValue: LocaleType;
7
- onChange(locale: LocaleType): void;
5
+ locales: Locale[];
6
+ defaultValue: Locale;
7
+ onChange(locale: Locale): void;
8
8
  };
9
9
  declare const LocaleSelect: FC<PropsType>;
10
10
  export default LocaleSelect;
@@ -1,4 +1,4 @@
1
1
  export declare const Container: any;
2
2
  export declare const SelectedLocaleWrapper: any;
3
3
  export declare const DropdownContainer: any;
4
- export declare const Locale: any;
4
+ export declare const LocaleWrapper: any;
@@ -1,5 +1,5 @@
1
1
  import { FC } from "react";
2
- import { LocaleType } from "@typeolymp/utility/build/types";
2
+ import { Locale } from "@typeolymp/utility/build/enums";
3
3
  export declare type PropsType = {
4
4
  name: string;
5
5
  label: string | JSX.Element;
@@ -8,7 +8,7 @@ export declare type PropsType = {
8
8
  autoFocus?: boolean;
9
9
  disabled?: boolean;
10
10
  placeholder?: string;
11
- helperLocale?: LocaleType;
11
+ helperLocale?: Locale;
12
12
  onChange?(fieldName: string, value: string): void;
13
13
  onKeyPress?(e: KeyboardEvent): void;
14
14
  onBlur?(fieldName: string): void;
@@ -1,4 +1,4 @@
1
- import { LocaleType } from "@typeolymp/utility/build/types";
1
+ import { Locale } from "@typeolymp/utility/build/enums";
2
2
  declare type TranslationsType = {
3
3
  capitalLetter: string;
4
4
  number: string;
@@ -6,6 +6,6 @@ declare type TranslationsType = {
6
6
  length: string;
7
7
  };
8
8
  declare const translations: {
9
- [key in LocaleType]: TranslationsType;
9
+ [key in Locale]: TranslationsType;
10
10
  };
11
11
  export default translations;
@@ -1,5 +1,6 @@
1
1
  import React from "react";
2
2
  import { PropsType } from ".";
3
+ import { KeyboardLayout } from "@typeolymp/utility/build/enums";
3
4
  declare const _default: {
4
5
  title: string;
5
6
  component: React.FC<PropsType>;
@@ -13,7 +14,7 @@ export declare const Playground: {
13
14
  };
14
15
  argTypes: {
15
16
  layout: {
16
- options: import("@typeolymp/utility/build/types/KeyboardLayout").default[];
17
+ options: KeyboardLayout[];
17
18
  control: {
18
19
  type: string;
19
20
  };