@modul/mbui 0.0.37-beta-select-bc96000e → 0.0.37-beta-select-01507516
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" | "success" | "primary-outline" | "ghost";
|
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,18 +1,18 @@
|
|
1
1
|
import React, { FC, ReactNode } from 'react';
|
2
|
-
|
2
|
+
interface ISelectOption {
|
3
3
|
label: string;
|
4
4
|
value: string;
|
5
5
|
[key: string]: any;
|
6
6
|
}
|
7
|
-
|
7
|
+
interface ISelectValue {
|
8
8
|
isClearable?: boolean;
|
9
9
|
onClear: (evt: React.MouseEvent<HTMLButtonElement>) => void;
|
10
10
|
multiple?: boolean;
|
11
|
-
selected:
|
11
|
+
selected: ISelectOption[];
|
12
12
|
placeholder?: string | undefined;
|
13
13
|
}
|
14
14
|
interface ISelectDrawerProps {
|
15
|
-
options?:
|
15
|
+
options?: ISelectOption[];
|
16
16
|
onChange?: (value: string | string[] | null) => void;
|
17
17
|
placeholder?: string;
|
18
18
|
multiple?: boolean;
|
@@ -21,8 +21,8 @@ interface ISelectDrawerProps {
|
|
21
21
|
autoFocus?: boolean;
|
22
22
|
disabled?: boolean;
|
23
23
|
components?: {
|
24
|
-
OptionComponent?: (props:
|
25
|
-
ValueComponent?: React.ElementType<
|
24
|
+
OptionComponent?: (props: ISelectOption) => ReactNode;
|
25
|
+
ValueComponent?: React.ElementType<ISelectValue>;
|
26
26
|
};
|
27
27
|
menuListCSS?: string;
|
28
28
|
triggerWrapperCSS?: string;
|
@@ -33,4 +33,4 @@ interface ISelectDrawerProps {
|
|
33
33
|
modal?: boolean;
|
34
34
|
}
|
35
35
|
declare const SelectDrawer: FC<ISelectDrawerProps>;
|
36
|
-
export { SelectDrawer };
|
36
|
+
export { SelectDrawer, type ISelectValue, type ISelectOption };
|
package/dist/Select/index.d.ts
CHANGED
@@ -3,4 +3,4 @@ export { SelectAccount } from './SelectAccount';
|
|
3
3
|
export { SelectAsync } from './SelectAsync';
|
4
4
|
export { SelectBase } from './SelectBase';
|
5
5
|
export { Select } from './Select';
|
6
|
-
export { SelectDrawer } from './SelectDrawer';
|
6
|
+
export { SelectDrawer, type ISelectValue, type ISelectOption } from './SelectDrawer';
|
package/dist/index.d.ts
CHANGED
@@ -36,7 +36,7 @@ import { Carousel, CarouselContent, CarouselItem, CarouselApi } from './Carousel
|
|
36
36
|
import { BankCardImage } from './BankCardImage';
|
37
37
|
import { RadioGroup, RadioGroupItem } from './Radio';
|
38
38
|
import { Loading } from './Loading';
|
39
|
-
import { SelectDrawer } from './Select';
|
39
|
+
import { SelectDrawer, type ISelectValue, type ISelectOption } from './Select';
|
40
40
|
import { BankLogosRounded } from './BankLogosRounded';
|
41
41
|
import { BankCardIcon } from './BankCardIcon';
|
42
|
-
export { Tabs, Slider, Popover, Logo, InputOTP, InputOTPGroup, InputOTPSlot, InputOTPSeparator, Collapsible, CollapsibleTrigger, CollapsibleContent, AccountCollapsible, AccountCollapsibleHeader, AccountCollapsibleTrigger, AccountCollapsibleContent, AccountCollapsibleContentItem, Button, buttonVariants, InputField, InputLabel, Audio, cn, Icon, Drawer, DrawerTrigger, DrawerTitle, DrawerClose, DrawerContent, DrawerDescription, BottomNavigation, BottomNavigationList, BottomNavigationListItem, BottomNavigationLink, Page, Chip, Progress, Alert, Switch, Label, Textarea, SelectAccountCard, SelectAccount, SelectAsync, Select, Form, FormLabel, FormField, FormItem, FormControl, FormDescription, FormMessage, Calendar, DatePicker, InputMask, AlertDialog, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, MessageTyping, FavoritePaymentsList, FavoritePaymentsItem, FarvoritePaymentDescription, farvoriteLinkClasses, Badge, badgeVariants, DigitKeyPad, ButtonWidget, Toaster, toast, Checkbox, Swipe2Show, Skeleton, Carousel, CarouselContent, CarouselItem, type CarouselApi, BankCardImage, RadioGroup, RadioGroupItem, Loading, SelectDrawer, BankLogosRounded, BankCardIcon, };
|
42
|
+
export { Tabs, Slider, Popover, Logo, InputOTP, InputOTPGroup, InputOTPSlot, InputOTPSeparator, Collapsible, CollapsibleTrigger, CollapsibleContent, AccountCollapsible, AccountCollapsibleHeader, AccountCollapsibleTrigger, AccountCollapsibleContent, AccountCollapsibleContentItem, Button, buttonVariants, InputField, InputLabel, Audio, cn, Icon, Drawer, DrawerTrigger, DrawerTitle, DrawerClose, DrawerContent, DrawerDescription, BottomNavigation, BottomNavigationList, BottomNavigationListItem, BottomNavigationLink, Page, Chip, Progress, Alert, Switch, Label, Textarea, SelectAccountCard, SelectAccount, SelectAsync, Select, Form, FormLabel, FormField, FormItem, FormControl, FormDescription, FormMessage, Calendar, DatePicker, InputMask, AlertDialog, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, MessageTyping, FavoritePaymentsList, FavoritePaymentsItem, FarvoritePaymentDescription, farvoriteLinkClasses, Badge, badgeVariants, DigitKeyPad, ButtonWidget, Toaster, toast, Checkbox, Swipe2Show, Skeleton, Carousel, CarouselContent, CarouselItem, type CarouselApi, BankCardImage, RadioGroup, RadioGroupItem, Loading, SelectDrawer, type ISelectValue, type ISelectOption, BankLogosRounded, BankCardIcon, };
|