kwant-ui 3.46.1-dev.0 → 3.47.1-dev.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.
@@ -1,6 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
2
  export declare namespace IAlert {
3
- type AlertType = 'success' | 'error' | 'warning' | 'info' | 'promise';
3
+ type AlertType = 'success' | 'error' | 'warning' | 'info' | 'promise' | 'alert';
4
4
  interface AlertStyled {
5
5
  type: AlertType;
6
6
  width?: string;
@@ -15,6 +15,7 @@ export declare const alertIcons: {
15
15
  error: import("react/jsx-runtime").JSX.Element;
16
16
  warning: import("react/jsx-runtime").JSX.Element;
17
17
  promise: import("react/jsx-runtime").JSX.Element;
18
+ alert: import("react/jsx-runtime").JSX.Element;
18
19
  };
19
20
  export declare const switchStyles: (type: IAlert.AlertType, theme: any) => {
20
21
  background: any;
@@ -1,4 +1,6 @@
1
- export declare const Root: import("styled-components").StyledComponent<"div", any, {}, never>;
1
+ export declare const Root: import("styled-components").StyledComponent<"div", any, {
2
+ disabled?: boolean;
3
+ }, never>;
2
4
  export declare const ChildrenWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
3
5
  export declare const Container: import("styled-components").StyledComponent<"div", any, {
4
6
  expandedHeight: number | string;
@@ -6,5 +6,6 @@ export declare namespace IDropdownSelect {
6
6
  children: React.ReactNode;
7
7
  toggleOnTargetClick?: boolean;
8
8
  withInput?: boolean;
9
+ disabled?: boolean;
9
10
  };
10
11
  }
@@ -1,6 +1,7 @@
1
1
  export declare const SelectContainer: import("styled-components").StyledComponent<"div", any, {
2
2
  width?: string;
3
3
  allowInput?: boolean;
4
+ disabled?: boolean;
4
5
  }, never>;
5
6
  export declare const ChevronDown: import("styled-components").StyledComponent<"div", any, {
6
7
  isOpened?: boolean;
@@ -16,6 +16,7 @@ export declare namespace ISelect {
16
16
  inputProps?: InputComponent.Props;
17
17
  onClear?: () => void;
18
18
  onSelect?: (option: ISelect.Option, index?: number) => void;
19
+ disabled?: boolean;
19
20
  }
20
21
  interface Option extends IDropdownSelect.Option {
21
22
  }
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- export type GeneralToastType = 'success' | 'error' | 'warning' | 'info';
2
+ export type GeneralToastType = 'success' | 'error' | 'warning' | 'info' | 'alert';
3
3
  export type ToastType = GeneralToastType | 'promise';
4
4
  export type XAlign = 'left' | 'center' | 'right';
5
5
  export type YAlign = 'top' | 'bottom';
@@ -39,6 +39,7 @@ export interface IToastContext {
39
39
  warning: GeneralToastFn;
40
40
  info: GeneralToastFn;
41
41
  promise: PromiseToastFn;
42
+ alert: GeneralToastFn;
42
43
  };
43
44
  removeToast: (id: string) => void;
44
45
  setConfig: (config: Omit<IToastProviderConfig, 'children'>) => void;
@@ -6,5 +6,6 @@ declare const useToast: (hookConfig?: Omit<IToastProviderConfig, 'children'>) =>
6
6
  warning: import("../components/Toast/Toast.types").GeneralToastFn;
7
7
  info: import("../components/Toast/Toast.types").GeneralToastFn;
8
8
  promise: import("../components/Toast/Toast.types").PromiseToastFn;
9
+ alert: import("../components/Toast/Toast.types").GeneralToastFn;
9
10
  };
10
11
  export { useToast };