mainstack-design-system 0.7.43 → 0.7.44
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.
- package/build/index.d.ts +8 -2
- package/build/mainstack-design-system.js +579 -575
- package/package.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -609,6 +609,11 @@ export declare const GroupFilledIcon: (props: IconProps) => JSX_2.Element;
|
|
|
609
609
|
|
|
610
610
|
export declare const GroupIcon: (props: IconProps) => JSX_2.Element;
|
|
611
611
|
|
|
612
|
+
declare type GroupOptionType = {
|
|
613
|
+
label: string;
|
|
614
|
+
options: Array<OptionType>;
|
|
615
|
+
};
|
|
616
|
+
|
|
612
617
|
export declare const HandShakeIcon: (props: IconProps) => JSX_2.Element;
|
|
613
618
|
|
|
614
619
|
export declare const Heading: ({ size, color, fontFamily, children, ...props }: IHeading) => JSX_2.Element;
|
|
@@ -872,7 +877,7 @@ export declare interface ISelectInputProps {
|
|
|
872
877
|
onChange?: (e: any) => void;
|
|
873
878
|
onInputChange?: (e: any) => void;
|
|
874
879
|
onBlur?: (e: any) => void;
|
|
875
|
-
options: Array<OptionType>;
|
|
880
|
+
options: Array<OptionType> | Array<GroupOptionType>;
|
|
876
881
|
value?: any;
|
|
877
882
|
defaultValue?: string;
|
|
878
883
|
isMulti?: boolean;
|
|
@@ -885,6 +890,7 @@ export declare interface ISelectInputProps {
|
|
|
885
890
|
openMenuOnFocus?: boolean;
|
|
886
891
|
isSearchable?: boolean;
|
|
887
892
|
formatOptionLabel?: (arg: any) => ReactNode;
|
|
893
|
+
formatGroupLabel?: (arg: any) => ReactNode;
|
|
888
894
|
customComponent?: Record<string, React.ComponentType<any>>;
|
|
889
895
|
}
|
|
890
896
|
|
|
@@ -1223,7 +1229,7 @@ export declare const SearchInput: ({ name, id, value, onChange, defaultValue, pl
|
|
|
1223
1229
|
|
|
1224
1230
|
export declare const SearchNormalIcon: (props: IconProps) => JSX_2.Element;
|
|
1225
1231
|
|
|
1226
|
-
export declare const SelectInput: ({ label, id, name, placeholder, onBlur, onChange, onInputChange, value, defaultValue, options, isMulti, hideSelectedOptions, CustomOption, CustomMultiValue, disabled, noOptionsMessage, fontFamily, openMenuOnFocus, isSearchable, formatOptionLabel, customComponent, }: ISelectInputProps) => JSX_2.Element;
|
|
1232
|
+
export declare const SelectInput: ({ label, id, name, placeholder, onBlur, onChange, onInputChange, value, defaultValue, options, isMulti, hideSelectedOptions, CustomOption, CustomMultiValue, disabled, noOptionsMessage, fontFamily, openMenuOnFocus, isSearchable, formatOptionLabel, customComponent, formatGroupLabel, }: ISelectInputProps) => JSX_2.Element;
|
|
1227
1233
|
|
|
1228
1234
|
export declare const SellIcon: (props: IconProps) => JSX_2.Element;
|
|
1229
1235
|
|