@modul/mbui 0.0.37-beta-select-d6263ab6 → 0.0.37-beta-select-01507516

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,18 +1,18 @@
1
1
  import React, { FC, ReactNode } from 'react';
2
- interface IOption {
2
+ interface ISelectOption {
3
3
  label: string;
4
4
  value: string;
5
5
  [key: string]: any;
6
6
  }
7
- interface IValue {
7
+ interface ISelectValue {
8
8
  isClearable?: boolean;
9
9
  onClear: (evt: React.MouseEvent<HTMLButtonElement>) => void;
10
10
  multiple?: boolean;
11
- selected: IOption[];
12
- placeholder: string | undefined;
11
+ selected: ISelectOption[];
12
+ placeholder?: string | undefined;
13
13
  }
14
14
  interface ISelectDrawerProps {
15
- options?: IOption[];
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: IOption) => ReactNode;
25
- ValueComponent?: React.ElementType<IValue>;
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 };
@@ -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, };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modul/mbui",
3
- "version": "0.0.37-beta-select-d6263ab6",
3
+ "version": "0.0.37-beta-select-01507516",
4
4
  "packageManager": "yarn@3.5.1",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",