@ws-ui/ui-components 1.0.19 → 1.0.20

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.d.ts CHANGED
@@ -2811,8 +2811,12 @@ export declare interface ISelectContextValue<T = unknown> {
2811
2811
  isDisabled: boolean;
2812
2812
  hasMessage: boolean;
2813
2813
  setHasMessage: Dispatch<SetStateAction<boolean>>;
2814
+ hasGroup: boolean;
2815
+ setHasGroup: Dispatch<SetStateAction<boolean>>;
2814
2816
  options?: T[] | ISelectOptionGroup<T>[];
2815
2817
  downshift: IDownshiftHookReturn<T>;
2818
+ menuPlacement: 'top' | 'bottom';
2819
+ setMenuPlacement: Dispatch<SetStateAction<'top' | 'bottom'>>;
2816
2820
  getOptionLabel: (option: T) => ReactNode;
2817
2821
  getOptionValue: (option: T) => string | number;
2818
2822
  isOptionDisabled: (option: T) => boolean;
@@ -3273,6 +3277,8 @@ export declare const Select: {
3273
3277
  <T = unknown>({ size, color, isInvalid, isDisabled, className, children, options, value, defaultValue, onChange, isMulti, inputValue, onInputChange, isSearchable, isOpen, onOpenChange, customOptionGenerator, disableInternalFiltering, getOptionLabel, getOptionValue, isOptionDisabled, formatOptionLabel, 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;
@@ -3287,6 +3293,10 @@ export declare const Select: {
3287
3293
  ({ color: propColor, className, children, onClick, isDisabled: propIsDisabled, ...props }: SelectDropdownIndicatorProps): JSX_2.Element;
3288
3294
  displayName: string;
3289
3295
  };
3296
+ OptionGroup: {
3297
+ <T>({ className, children, data, label, }: SelectOptionGroupProps<T>): JSX_2.Element;
3298
+ displayName: string;
3299
+ };
3290
3300
  Message: {
3291
3301
  ({ icon, className, children, ...props }: SelectMessageProps): JSX_2.Element;
3292
3302
  displayName: string;
@@ -3398,6 +3408,7 @@ export declare interface SelectFieldProps<T> extends InputHTMLAttributes<HTMLInp
3398
3408
  'aria-describedby'?: string;
3399
3409
  inputRef?: Ref<HTMLInputElement>;
3400
3410
  controlShouldRenderValue?: boolean;
3411
+ virtualizeThreshold?: number;
3401
3412
  blurInputOnSelect?: boolean;
3402
3413
  tabSelectsValue?: boolean;
3403
3414
  backspaceRemovesValue?: boolean;
@@ -3410,12 +3421,17 @@ export declare interface SelectGroupHeadingProps {
3410
3421
  children: ReactNode;
3411
3422
  }
3412
3423
 
3413
- export declare interface SelectGroupProps<T> {
3424
+ export declare interface SelectGroupProps extends HTMLAttributes<HTMLDivElement> {
3414
3425
  className?: string;
3415
3426
  children: ReactNode;
3416
- data: ISelectOptionGroup<T>;
3417
- label: string;
3418
- options: T[];
3427
+ }
3428
+
3429
+ export declare interface SelectIconProps extends HTMLAttributes<HTMLDivElement> {
3430
+ isAction?: boolean;
3431
+ className?: string;
3432
+ isDisabled?: boolean;
3433
+ style?: CSSProperties;
3434
+ children: ReactNode;
3419
3435
  }
3420
3436
 
3421
3437
  export declare interface SelectInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size'> {
@@ -3429,6 +3445,7 @@ export declare interface SelectMenuListProps extends HTMLAttributes<HTMLDivEleme
3429
3445
  children: ReactNode;
3430
3446
  isLoading?: boolean;
3431
3447
  maxHeight?: number;
3448
+ totalHeight?: number;
3432
3449
  }
3433
3450
 
3434
3451
  export declare interface SelectMenuProps extends HTMLAttributes<HTMLDivElement> {
@@ -3462,6 +3479,14 @@ export declare interface SelectNoOptionsMessageProps {
3462
3479
  inputValue?: string;
3463
3480
  }
3464
3481
 
3482
+ export declare interface SelectOptionGroupProps<T> {
3483
+ className?: string;
3484
+ children: ReactNode;
3485
+ data: ISelectOptionGroup<T>;
3486
+ label: string;
3487
+ options: T[];
3488
+ }
3489
+
3465
3490
  export declare interface SelectOptionProps<T> extends HTMLAttributes<HTMLDivElement> {
3466
3491
  className?: string;
3467
3492
  children?: ReactNode;