@ws-ui/ui-components 1.0.19 → 1.0.21
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/dist/index.cjs +20 -17
- package/dist/index.d.ts +42 -13
- package/dist/index.js +6822 -5937
- package/dist/ui-components.css +1 -1
- package/package.json +2 -1
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;
|
|
@@ -2811,12 +2810,17 @@ export declare interface ISelectContextValue<T = unknown> {
|
|
|
2811
2810
|
isDisabled: boolean;
|
|
2812
2811
|
hasMessage: boolean;
|
|
2813
2812
|
setHasMessage: Dispatch<SetStateAction<boolean>>;
|
|
2813
|
+
hasGroup: boolean;
|
|
2814
|
+
setHasGroup: Dispatch<SetStateAction<boolean>>;
|
|
2815
|
+
menuVisible: boolean;
|
|
2816
|
+
setMenuVisible: Dispatch<SetStateAction<boolean>>;
|
|
2814
2817
|
options?: T[] | ISelectOptionGroup<T>[];
|
|
2815
2818
|
downshift: IDownshiftHookReturn<T>;
|
|
2819
|
+
menuPlacement: 'top' | 'bottom';
|
|
2820
|
+
setMenuPlacement: Dispatch<SetStateAction<'top' | 'bottom'>>;
|
|
2816
2821
|
getOptionLabel: (option: T) => ReactNode;
|
|
2817
2822
|
getOptionValue: (option: T) => string | number;
|
|
2818
2823
|
isOptionDisabled: (option: T) => boolean;
|
|
2819
|
-
formatOptionLabel?: (option: T) => ReactNode;
|
|
2820
2824
|
}
|
|
2821
2825
|
|
|
2822
2826
|
export declare interface ISelectOption<T = unknown> {
|
|
@@ -3270,9 +3274,11 @@ export declare type ResizeStartCallback = (event: React.MouseEvent<HTMLElement>
|
|
|
3270
3274
|
|
|
3271
3275
|
export declare const Select: {
|
|
3272
3276
|
Root: {
|
|
3273
|
-
<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;
|
|
3274
3278
|
displayName: string;
|
|
3275
3279
|
};
|
|
3280
|
+
Group: ForwardRefExoticComponent<SelectGroupProps & RefAttributes<HTMLDivElement>>;
|
|
3281
|
+
Icon: ForwardRefExoticComponent<SelectIconProps & RefAttributes<HTMLDivElement>>;
|
|
3276
3282
|
Input: ForwardRefExoticComponent<SelectInputProps & RefAttributes<HTMLInputElement>>;
|
|
3277
3283
|
MultiValue: {
|
|
3278
3284
|
<T>({ className, children, data, isDisabled, isFocused, onRemove, }: SelectMultiValueProps<T>): JSX_2.Element;
|
|
@@ -3283,8 +3289,9 @@ export declare const Select: {
|
|
|
3283
3289
|
displayName: string;
|
|
3284
3290
|
};
|
|
3285
3291
|
ClearSearchIndicator: ({ className, children, onClick, isDisabled: propIsDisabled, ...props }: SelectClearSearchIndicatorProps) => JSX_2.Element | null;
|
|
3286
|
-
DropdownIndicator:
|
|
3287
|
-
|
|
3292
|
+
DropdownIndicator: ForwardRefExoticComponent<SelectDropdownIndicatorProps & RefAttributes<HTMLDivElement>>;
|
|
3293
|
+
OptionGroup: {
|
|
3294
|
+
<T>({ className, children, data, label, renderGroupHeading, }: SelectOptionGroupProps<T>): JSX_2.Element;
|
|
3288
3295
|
displayName: string;
|
|
3289
3296
|
};
|
|
3290
3297
|
Message: {
|
|
@@ -3385,11 +3392,16 @@ export declare interface SelectFieldProps<T> extends InputHTMLAttributes<HTMLInp
|
|
|
3385
3392
|
onMenuOpen?: () => void;
|
|
3386
3393
|
onMenuClose?: () => void;
|
|
3387
3394
|
renderMenuHeader?: (props: IDownshiftHookReturn<T>) => ReactNode;
|
|
3388
|
-
formatOptionLabel?: (option: T) => ReactNode;
|
|
3389
|
-
displayFormattedOption?: boolean;
|
|
3390
3395
|
isOptionDisabled?: (option: T) => boolean;
|
|
3391
|
-
|
|
3392
|
-
|
|
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;
|
|
3393
3405
|
name?: string;
|
|
3394
3406
|
id?: string;
|
|
3395
3407
|
className?: string;
|
|
@@ -3398,6 +3410,7 @@ export declare interface SelectFieldProps<T> extends InputHTMLAttributes<HTMLInp
|
|
|
3398
3410
|
'aria-describedby'?: string;
|
|
3399
3411
|
inputRef?: Ref<HTMLInputElement>;
|
|
3400
3412
|
controlShouldRenderValue?: boolean;
|
|
3413
|
+
virtualizeThreshold?: number;
|
|
3401
3414
|
blurInputOnSelect?: boolean;
|
|
3402
3415
|
tabSelectsValue?: boolean;
|
|
3403
3416
|
backspaceRemovesValue?: boolean;
|
|
@@ -3410,12 +3423,17 @@ export declare interface SelectGroupHeadingProps {
|
|
|
3410
3423
|
children: ReactNode;
|
|
3411
3424
|
}
|
|
3412
3425
|
|
|
3413
|
-
export declare interface SelectGroupProps<
|
|
3426
|
+
export declare interface SelectGroupProps extends HTMLAttributes<HTMLDivElement> {
|
|
3414
3427
|
className?: string;
|
|
3415
3428
|
children: ReactNode;
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3429
|
+
}
|
|
3430
|
+
|
|
3431
|
+
export declare interface SelectIconProps extends HTMLAttributes<HTMLDivElement> {
|
|
3432
|
+
isAction?: boolean;
|
|
3433
|
+
className?: string;
|
|
3434
|
+
isDisabled?: boolean;
|
|
3435
|
+
style?: CSSProperties;
|
|
3436
|
+
children: ReactNode;
|
|
3419
3437
|
}
|
|
3420
3438
|
|
|
3421
3439
|
export declare interface SelectInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size'> {
|
|
@@ -3429,6 +3447,7 @@ export declare interface SelectMenuListProps extends HTMLAttributes<HTMLDivEleme
|
|
|
3429
3447
|
children: ReactNode;
|
|
3430
3448
|
isLoading?: boolean;
|
|
3431
3449
|
maxHeight?: number;
|
|
3450
|
+
totalHeight?: number;
|
|
3432
3451
|
}
|
|
3433
3452
|
|
|
3434
3453
|
export declare interface SelectMenuProps extends HTMLAttributes<HTMLDivElement> {
|
|
@@ -3462,8 +3481,18 @@ export declare interface SelectNoOptionsMessageProps {
|
|
|
3462
3481
|
inputValue?: string;
|
|
3463
3482
|
}
|
|
3464
3483
|
|
|
3484
|
+
export declare interface SelectOptionGroupProps<T> {
|
|
3485
|
+
className?: string;
|
|
3486
|
+
children: ReactNode;
|
|
3487
|
+
data: ISelectOptionGroup<T>;
|
|
3488
|
+
label: string;
|
|
3489
|
+
options: T[];
|
|
3490
|
+
renderGroupHeading?: (data: ISelectOptionGroup<T>) => ReactNode;
|
|
3491
|
+
}
|
|
3492
|
+
|
|
3465
3493
|
export declare interface SelectOptionProps<T> extends HTMLAttributes<HTMLDivElement> {
|
|
3466
3494
|
className?: string;
|
|
3495
|
+
optionClassName?: string;
|
|
3467
3496
|
children?: ReactNode;
|
|
3468
3497
|
data: T;
|
|
3469
3498
|
isDisabled?: boolean;
|