@modul/mbui 0.0.37-beta-select-d6263ab6 → 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?: "outline" | "primary" | "secondary" | "
|
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,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;
|