@modul/mbui 0.0.37-beta-select-89eeb1ca → 0.0.37-beta-select-bc96000e
Sign up to get free protection for your applications and to get access to all the features.
package/dist/Chip/Chip.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { type VariantProps } from 'class-variance-authority';
|
3
3
|
declare const chipVariants: (props?: {
|
4
|
-
variant?: "
|
4
|
+
variant?: "outline" | "primary" | "secondary" | "ghost" | "success" | "primary-outline";
|
5
5
|
size?: "lg" | "md" | "sm" | "xs" | "xxs";
|
6
6
|
} & import("class-variance-authority/dist/types").ClassProp) => string;
|
7
7
|
export interface IChipProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof chipVariants> {
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import * as React from 'react';
|
2
|
-
declare const InputOTP: React.ForwardRefExoticComponent<((Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "
|
2
|
+
declare const InputOTP: React.ForwardRefExoticComponent<((Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "textAlign" | "maxLength" | "onComplete" | "pushPasswordManagerStrategy" | "containerClassName" | "noScriptCSSFallback"> & {
|
3
3
|
value?: string;
|
4
4
|
onChange?: (newValue: string) => unknown;
|
5
5
|
maxLength: number;
|
6
|
-
textAlign?: "
|
6
|
+
textAlign?: "left" | "right" | "center";
|
7
7
|
onComplete?: (...args: any[]) => unknown;
|
8
8
|
pushPasswordManagerStrategy?: "none" | "increase-width";
|
9
9
|
containerClassName?: string;
|
@@ -11,11 +11,11 @@ declare const InputOTP: React.ForwardRefExoticComponent<((Omit<Omit<React.InputH
|
|
11
11
|
} & {
|
12
12
|
render: (props: import("input-otp").RenderProps) => React.ReactNode;
|
13
13
|
children?: never;
|
14
|
-
} & React.RefAttributes<HTMLInputElement>, "ref"> | Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "
|
14
|
+
} & React.RefAttributes<HTMLInputElement>, "ref"> | Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "textAlign" | "maxLength" | "onComplete" | "pushPasswordManagerStrategy" | "containerClassName" | "noScriptCSSFallback"> & {
|
15
15
|
value?: string;
|
16
16
|
onChange?: (newValue: string) => unknown;
|
17
17
|
maxLength: number;
|
18
|
-
textAlign?: "
|
18
|
+
textAlign?: "left" | "right" | "center";
|
19
19
|
onComplete?: (...args: any[]) => unknown;
|
20
20
|
pushPasswordManagerStrategy?: "none" | "increase-width";
|
21
21
|
containerClassName?: string;
|
@@ -1,15 +1,15 @@
|
|
1
1
|
import React, { FC, ReactNode } from 'react';
|
2
|
-
interface IOption {
|
2
|
+
export interface IOption {
|
3
3
|
label: string;
|
4
4
|
value: string;
|
5
5
|
[key: string]: any;
|
6
6
|
}
|
7
|
-
interface
|
7
|
+
export interface IValueProps {
|
8
8
|
isClearable?: boolean;
|
9
9
|
onClear: (evt: React.MouseEvent<HTMLButtonElement>) => void;
|
10
10
|
multiple?: boolean;
|
11
11
|
selected: IOption[];
|
12
|
-
placeholder
|
12
|
+
placeholder?: string | undefined;
|
13
13
|
}
|
14
14
|
interface ISelectDrawerProps {
|
15
15
|
options?: IOption[];
|
@@ -22,7 +22,7 @@ interface ISelectDrawerProps {
|
|
22
22
|
disabled?: boolean;
|
23
23
|
components?: {
|
24
24
|
OptionComponent?: (props: IOption) => ReactNode;
|
25
|
-
ValueComponent?: React.ElementType<
|
25
|
+
ValueComponent?: React.ElementType<IValueProps>;
|
26
26
|
};
|
27
27
|
menuListCSS?: string;
|
28
28
|
triggerWrapperCSS?: string;
|
@@ -30,6 +30,7 @@ interface ISelectDrawerProps {
|
|
30
30
|
dropTitle?: string;
|
31
31
|
dropTitleCSS?: string;
|
32
32
|
optionWrapperCSS?: string;
|
33
|
+
modal?: boolean;
|
33
34
|
}
|
34
35
|
declare const SelectDrawer: FC<ISelectDrawerProps>;
|
35
36
|
export { SelectDrawer };
|