@ws-ui/ui-components 1.0.20 → 1.0.22
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 +195 -195
- package/dist/index.cjs +18 -18
- package/dist/index.d.ts +16 -12
- package/dist/index.js +4262 -4238
- package/dist/qodly.svg +14 -14
- package/dist/ui-components.css +1 -1
- package/package.json +112 -112
package/dist/index.d.ts
CHANGED
|
@@ -2638,7 +2638,6 @@ export declare interface IDownshiftHookParams<T> {
|
|
|
2638
2638
|
onInputChange?: (value: string) => void;
|
|
2639
2639
|
getOptionLabel?: (option: T) => ReactNode;
|
|
2640
2640
|
getOptionValue?: (option: T) => string | number;
|
|
2641
|
-
formatOptionLabel?: (option: T) => ReactNode;
|
|
2642
2641
|
items?: T[];
|
|
2643
2642
|
customOptionGenerator?: OptionGenerator<T>;
|
|
2644
2643
|
disableInternalFiltering?: boolean;
|
|
@@ -2813,6 +2812,8 @@ export declare interface ISelectContextValue<T = unknown> {
|
|
|
2813
2812
|
setHasMessage: Dispatch<SetStateAction<boolean>>;
|
|
2814
2813
|
hasGroup: boolean;
|
|
2815
2814
|
setHasGroup: Dispatch<SetStateAction<boolean>>;
|
|
2815
|
+
menuVisible: boolean;
|
|
2816
|
+
setMenuVisible: Dispatch<SetStateAction<boolean>>;
|
|
2816
2817
|
options?: T[] | ISelectOptionGroup<T>[];
|
|
2817
2818
|
downshift: IDownshiftHookReturn<T>;
|
|
2818
2819
|
menuPlacement: 'top' | 'bottom';
|
|
@@ -2820,7 +2821,6 @@ export declare interface ISelectContextValue<T = unknown> {
|
|
|
2820
2821
|
getOptionLabel: (option: T) => ReactNode;
|
|
2821
2822
|
getOptionValue: (option: T) => string | number;
|
|
2822
2823
|
isOptionDisabled: (option: T) => boolean;
|
|
2823
|
-
formatOptionLabel?: (option: T) => ReactNode;
|
|
2824
2824
|
}
|
|
2825
2825
|
|
|
2826
2826
|
export declare interface ISelectOption<T = unknown> {
|
|
@@ -3274,7 +3274,7 @@ export declare type ResizeStartCallback = (event: React.MouseEvent<HTMLElement>
|
|
|
3274
3274
|
|
|
3275
3275
|
export declare const Select: {
|
|
3276
3276
|
Root: {
|
|
3277
|
-
<T = unknown>({ size, color, isInvalid, isDisabled, className, children, options, value, defaultValue, onChange, isMulti, inputValue, onInputChange, isSearchable, isOpen, onOpenChange, customOptionGenerator, disableInternalFiltering, getOptionLabel, getOptionValue, isOptionDisabled,
|
|
3277
|
+
<T = unknown>({ size, color, isInvalid, isDisabled, className, children, options, value, defaultValue, onChange, isMulti, inputValue, onInputChange, isSearchable, isOpen, onOpenChange, customOptionGenerator, disableInternalFiltering, getOptionLabel, getOptionValue, isOptionDisabled, stateReducer, ...props }: SelectRootProps<T>): JSX_2.Element;
|
|
3278
3278
|
displayName: string;
|
|
3279
3279
|
};
|
|
3280
3280
|
Group: ForwardRefExoticComponent<SelectGroupProps & RefAttributes<HTMLDivElement>>;
|
|
@@ -3289,12 +3289,9 @@ export declare const Select: {
|
|
|
3289
3289
|
displayName: string;
|
|
3290
3290
|
};
|
|
3291
3291
|
ClearSearchIndicator: ({ className, children, onClick, isDisabled: propIsDisabled, ...props }: SelectClearSearchIndicatorProps) => JSX_2.Element | null;
|
|
3292
|
-
DropdownIndicator:
|
|
3293
|
-
({ color: propColor, className, children, onClick, isDisabled: propIsDisabled, ...props }: SelectDropdownIndicatorProps): JSX_2.Element;
|
|
3294
|
-
displayName: string;
|
|
3295
|
-
};
|
|
3292
|
+
DropdownIndicator: ForwardRefExoticComponent<SelectDropdownIndicatorProps & RefAttributes<HTMLDivElement>>;
|
|
3296
3293
|
OptionGroup: {
|
|
3297
|
-
<T>({ className, children, data, label, }: SelectOptionGroupProps<T>): JSX_2.Element;
|
|
3294
|
+
<T>({ className, children, data, label, renderGroupHeading, }: SelectOptionGroupProps<T>): JSX_2.Element;
|
|
3298
3295
|
displayName: string;
|
|
3299
3296
|
};
|
|
3300
3297
|
Message: {
|
|
@@ -3395,11 +3392,16 @@ export declare interface SelectFieldProps<T> extends InputHTMLAttributes<HTMLInp
|
|
|
3395
3392
|
onMenuOpen?: () => void;
|
|
3396
3393
|
onMenuClose?: () => void;
|
|
3397
3394
|
renderMenuHeader?: (props: IDownshiftHookReturn<T>) => ReactNode;
|
|
3398
|
-
formatOptionLabel?: (option: T) => ReactNode;
|
|
3399
|
-
displayFormattedOption?: boolean;
|
|
3400
3395
|
isOptionDisabled?: (option: T) => boolean;
|
|
3401
|
-
|
|
3402
|
-
|
|
3396
|
+
renderOption?: (props: {
|
|
3397
|
+
data: T;
|
|
3398
|
+
isFocused: boolean;
|
|
3399
|
+
isSelected: boolean;
|
|
3400
|
+
isDisabled: boolean;
|
|
3401
|
+
}) => ReactNode;
|
|
3402
|
+
optionClassName?: string;
|
|
3403
|
+
renderValue?: (data: T) => ReactNode;
|
|
3404
|
+
renderGroupHeading?: (data: ISelectOptionGroup<T>) => ReactNode;
|
|
3403
3405
|
name?: string;
|
|
3404
3406
|
id?: string;
|
|
3405
3407
|
className?: string;
|
|
@@ -3485,10 +3487,12 @@ export declare interface SelectOptionGroupProps<T> {
|
|
|
3485
3487
|
data: ISelectOptionGroup<T>;
|
|
3486
3488
|
label: string;
|
|
3487
3489
|
options: T[];
|
|
3490
|
+
renderGroupHeading?: (data: ISelectOptionGroup<T>) => ReactNode;
|
|
3488
3491
|
}
|
|
3489
3492
|
|
|
3490
3493
|
export declare interface SelectOptionProps<T> extends HTMLAttributes<HTMLDivElement> {
|
|
3491
3494
|
className?: string;
|
|
3495
|
+
optionClassName?: string;
|
|
3492
3496
|
children?: ReactNode;
|
|
3493
3497
|
data: T;
|
|
3494
3498
|
isDisabled?: boolean;
|