@typeolymp/ui-components 2.1.15 → 2.2.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.
@@ -3,7 +3,7 @@ import { PropsType as IconPropsType } from "../../atoms/Icon";
3
3
  import { PropsType as DropdownButtonPropsType } from "./Button";
4
4
  export declare type PropsType = {
5
5
  menu: Array<{
6
- label: string;
6
+ label: string | ReactNode;
7
7
  icon?: IconPropsType["type"];
8
8
  onClick?(): void;
9
9
  }>;
@@ -1,7 +1,7 @@
1
1
  import { FC } from "react";
2
2
  import { Locale } from "@typeolymp/utils/enums";
3
3
  export declare type PropsType = {
4
- color?: "light" | "dark";
4
+ iconOnly?: boolean;
5
5
  locales: Locale[];
6
6
  defaultValue: Locale;
7
7
  onChange(locale: Locale): void;
@@ -1,4 +1 @@
1
- export declare const Container: any;
2
- export declare const SelectedLocaleWrapper: any;
3
- export declare const DropdownContainer: any;
4
- export declare const LocaleWrapper: any;
1
+ export declare const Button: any;
@@ -0,0 +1,11 @@
1
+ import { FC } from "react";
2
+ import { Locale } from "@typeolymp/utils/enums";
3
+ export declare type PropsType = {
4
+ iconOnly?: boolean;
5
+ reverse?: boolean;
6
+ locales: Locale[];
7
+ defaultValue: Locale;
8
+ onChange(locale: Locale): void;
9
+ };
10
+ declare const LocaleSelect: FC<PropsType>;
11
+ export default LocaleSelect;
@@ -0,0 +1,4 @@
1
+ export declare const Container: any;
2
+ export declare const Button: any;
3
+ export declare const LocalesList: any;
4
+ export declare const LocalesListItem: any;