@modul/mbui 0.0.48 → 0.0.50
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/README.md +2 -0
- package/dist/BankCardImage/index.js +1 -1
- package/dist/Input-OTP/Input.d.ts +4 -4
- package/dist/Select/Select.d.ts +1 -1
- package/dist/Select/SelectDrawer/Option.d.ts +21 -0
- package/dist/Select/SelectDrawer/SearchField.d.ts +7 -0
- package/dist/Select/{SelectDrawer.d.ts → SelectDrawer/SelectDrawer.d.ts} +10 -18
- package/dist/Select/SelectDrawer/Value.d.ts +15 -0
- package/dist/Select/SelectDrawer/index.d.ts +1 -0
- package/dist/Select/SelectDrawer/index.js +5 -0
- package/dist/Select/components/SelectBankAccountBalanceOption.d.ts +1 -1
- package/dist/Select/components/SelectPrimaryAccountValue.d.ts +1 -1
- package/dist/Select/index.js +2 -2
- package/dist/assets/images/bankcards/mirst2.svg +1 -0
- package/dist/assets/images/currency_flags/sprite.stack.svg +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/package.json +2 -2
| @@ -1,9 +1,9 @@ | |
| 1 1 | 
             
            import * as React from 'react';
         | 
| 2 | 
            -
            declare const InputOTP: React.ForwardRefExoticComponent<((Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | " | 
| 2 | 
            +
            declare const InputOTP: React.ForwardRefExoticComponent<((Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "maxLength" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "containerClassName" | "noScriptCSSFallback"> & {
         | 
| 3 3 | 
             
                value?: string;
         | 
| 4 4 | 
             
                onChange?: (newValue: string) => unknown;
         | 
| 5 5 | 
             
                maxLength: number;
         | 
| 6 | 
            -
                textAlign?: " | 
| 6 | 
            +
                textAlign?: "center" | "left" | "right";
         | 
| 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>, "onChange" | "value" | " | 
| 14 | 
            +
            } & React.RefAttributes<HTMLInputElement>, "ref"> | Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "maxLength" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "containerClassName" | "noScriptCSSFallback"> & {
         | 
| 15 15 | 
             
                value?: string;
         | 
| 16 16 | 
             
                onChange?: (newValue: string) => unknown;
         | 
| 17 17 | 
             
                maxLength: number;
         | 
| 18 | 
            -
                textAlign?: " | 
| 18 | 
            +
                textAlign?: "center" | "left" | "right";
         | 
| 19 19 | 
             
                onComplete?: (...args: any[]) => unknown;
         | 
| 20 20 | 
             
                pushPasswordManagerStrategy?: "none" | "increase-width";
         | 
| 21 21 | 
             
                containerClassName?: string;
         | 
    
        package/dist/Select/Select.d.ts
    CHANGED
    
    | @@ -1,5 +1,5 @@ | |
| 1 1 | 
             
            import * as React from 'react';
         | 
| 2 | 
            -
            import { GroupBase, Props } from  | 
| 2 | 
            +
            import { GroupBase, Props } from 'react-select';
         | 
| 3 3 | 
             
            declare type SelectBaseProps<Option, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>> = Props<Option, IsMulti, Group>;
         | 
| 4 4 | 
             
            declare function Select<Option, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>>(props: SelectBaseProps<Option, IsMulti, Group>): React.JSX.Element;
         | 
| 5 5 | 
             
            export { Select };
         | 
| @@ -0,0 +1,21 @@ | |
| 1 | 
            +
            import React from 'react';
         | 
| 2 | 
            +
            export interface ISelectOption {
         | 
| 3 | 
            +
                label: string;
         | 
| 4 | 
            +
                value: string;
         | 
| 5 | 
            +
                [key: string]: any;
         | 
| 6 | 
            +
            }
         | 
| 7 | 
            +
            interface IOptionWrapperProps {
         | 
| 8 | 
            +
                component: React.FC<ISelectOption & {
         | 
| 9 | 
            +
                    isChecked: boolean;
         | 
| 10 | 
            +
                }>;
         | 
| 11 | 
            +
                optionWrapperCSS?: string;
         | 
| 12 | 
            +
                option: ISelectOption;
         | 
| 13 | 
            +
                selected: ISelectOption[];
         | 
| 14 | 
            +
                onSelect: (option: ISelectOption) => void;
         | 
| 15 | 
            +
                multiple?: boolean;
         | 
| 16 | 
            +
            }
         | 
| 17 | 
            +
            export declare const Option: React.FC<ISelectOption & {
         | 
| 18 | 
            +
                isChecked: boolean;
         | 
| 19 | 
            +
            }>;
         | 
| 20 | 
            +
            export declare const OptionWrapper: React.FC<IOptionWrapperProps>;
         | 
| 21 | 
            +
            export {};
         | 
| @@ -1,18 +1,8 @@ | |
| 1 1 | 
             
            import React, { FC } from 'react';
         | 
| 2 | 
            -
             | 
| 3 | 
            -
             | 
| 4 | 
            -
                value: string;
         | 
| 5 | 
            -
                [key: string]: any;
         | 
| 6 | 
            -
            }
         | 
| 7 | 
            -
            interface ISelectValue {
         | 
| 8 | 
            -
                isClearable?: boolean;
         | 
| 9 | 
            -
                onClear: (evt: React.MouseEvent<HTMLButtonElement>) => void;
         | 
| 10 | 
            -
                multiple?: boolean;
         | 
| 11 | 
            -
                selected: ISelectOption[];
         | 
| 12 | 
            -
                placeholder?: string | undefined;
         | 
| 13 | 
            -
            }
         | 
| 2 | 
            +
            import { ISelectOption } from './Option';
         | 
| 3 | 
            +
            import { ISelectValue } from './Value';
         | 
| 14 4 | 
             
            interface ISelectDrawerProps {
         | 
| 15 | 
            -
                options | 
| 5 | 
            +
                options: ISelectOption[];
         | 
| 16 6 | 
             
                onChange?: (value: ISelectOption | ISelectOption[] | null) => void;
         | 
| 17 7 | 
             
                placeholder?: string;
         | 
| 18 8 | 
             
                multiple?: boolean;
         | 
| @@ -22,10 +12,12 @@ interface ISelectDrawerProps { | |
| 22 12 | 
             
                autoFocus?: boolean;
         | 
| 23 13 | 
             
                disabled?: boolean;
         | 
| 24 14 | 
             
                components?: {
         | 
| 25 | 
            -
                    OptionComponent?:  | 
| 26 | 
            -
             | 
| 15 | 
            +
                    OptionComponent?: FC<ISelectOption & {
         | 
| 16 | 
            +
                        isChecked: boolean;
         | 
| 17 | 
            +
                    }>;
         | 
| 18 | 
            +
                    ValueComponent?: FC<ISelectValue>;
         | 
| 27 19 | 
             
                };
         | 
| 28 | 
            -
                value?: ISelectOption | ISelectOption[];
         | 
| 20 | 
            +
                value?: ISelectOption | ISelectOption[] | null;
         | 
| 29 21 | 
             
                defaultValue?: ISelectOption | ISelectOption[];
         | 
| 30 22 | 
             
                menuListCSS?: string;
         | 
| 31 23 | 
             
                triggerWrapperCSS?: string;
         | 
| @@ -37,5 +29,5 @@ interface ISelectDrawerProps { | |
| 37 29 | 
             
                selectAll?: boolean;
         | 
| 38 30 | 
             
                selectAllText?: string;
         | 
| 39 31 | 
             
            }
         | 
| 40 | 
            -
            declare const SelectDrawer:  | 
| 41 | 
            -
            export { SelectDrawer, type ISelectValue, type ISelectOption };
         | 
| 32 | 
            +
            declare const SelectDrawer: React.ForwardRefExoticComponent<ISelectDrawerProps & React.RefAttributes<HTMLButtonElement>>;
         | 
| 33 | 
            +
            export { SelectDrawer, type ISelectValue, type ISelectOption, type ISelectDrawerProps };
         | 
| @@ -0,0 +1,15 @@ | |
| 1 | 
            +
            import { FC, MouseEvent } from 'react';
         | 
| 2 | 
            +
            import { ISelectOption } from './SelectDrawer';
         | 
| 3 | 
            +
            export interface ISelectValue {
         | 
| 4 | 
            +
                isClearable?: boolean;
         | 
| 5 | 
            +
                onClear: (evt: MouseEvent<HTMLButtonElement>) => void;
         | 
| 6 | 
            +
                multiple?: boolean;
         | 
| 7 | 
            +
                selected: ISelectOption[];
         | 
| 8 | 
            +
                placeholder?: string | undefined;
         | 
| 9 | 
            +
            }
         | 
| 10 | 
            +
            interface IValueWrapper {
         | 
| 11 | 
            +
                valueProps: ISelectValue;
         | 
| 12 | 
            +
                valueComponent?: FC<ISelectValue>;
         | 
| 13 | 
            +
            }
         | 
| 14 | 
            +
            export declare const ValueWrapper: FC<IValueWrapper>;
         | 
| 15 | 
            +
            export {};
         | 
| @@ -0,0 +1 @@ | |
| 1 | 
            +
            export * from './SelectDrawer';
         |