@ws-ui/ui-components 1.0.17 → 1.0.19

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
@@ -2643,6 +2643,7 @@ export declare interface IDownshiftHookParams<T> {
2643
2643
  customOptionGenerator?: OptionGenerator<T>;
2644
2644
  disableInternalFiltering?: boolean;
2645
2645
  isOptionDisabled?: (option: T) => boolean;
2646
+ isDisabled?: boolean;
2646
2647
  stateReducer?: (state: any, actionAndChanges: UseComboboxStateChange<T> | UseSelectStateChange<T>) => Partial<any>;
2647
2648
  }
2648
2649
 
@@ -2863,12 +2864,12 @@ export declare interface ListItemProps extends HTMLAttributes<HTMLElement> {
2863
2864
  }
2864
2865
 
2865
2866
  export declare const Menu: {
2866
- ({ children, open: controlledOpen, defaultOpen, onOpenChange, disabled, }: MenuProps): JSX_2.Element;
2867
+ ({ children, open: controlledOpen, defaultOpen, onOpenChange, disabled, usePortal, }: MenuProps): JSX_2.Element;
2867
2868
  displayName: string;
2868
2869
  Trigger: ({ children, className }: MenuTriggerProps) => JSX_2.Element;
2869
2870
  Content: ({ children, placement, className, }: MenuContentProps) => JSX_2.Element | null;
2870
- Item: ({ children, onClick, disabled, className, }: MenuItemProps) => JSX_2.Element;
2871
- SubMenu: ({ label, children, disabled, className, }: SubMenuProps) => JSX_2.Element;
2871
+ Item: ({ children, onClick, icon, disabled, className, }: MenuItemProps) => JSX_2.Element;
2872
+ SubMenu: ({ label, children, icon, disabled, className, }: SubMenuProps) => JSX_2.Element;
2872
2873
  };
2873
2874
 
2874
2875
  export declare interface MenuContentProps {
@@ -2880,6 +2881,7 @@ export declare interface MenuContentProps {
2880
2881
  export declare interface MenuItemProps {
2881
2882
  children: React.ReactNode;
2882
2883
  onClick?: () => void;
2884
+ icon?: React.ReactNode;
2883
2885
  disabled?: boolean;
2884
2886
  className?: string;
2885
2887
  }
@@ -2890,6 +2892,7 @@ export declare interface MenuProps {
2890
2892
  defaultOpen?: boolean;
2891
2893
  onOpenChange?: (open: boolean) => void;
2892
2894
  disabled?: boolean;
2895
+ usePortal?: boolean;
2893
2896
  }
2894
2897
 
2895
2898
  export declare interface MenuTriggerProps {
@@ -3270,20 +3273,7 @@ export declare const Select: {
3270
3273
  <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;
3271
3274
  displayName: string;
3272
3275
  };
3273
- Control: ForwardRefExoticComponent<SelectControlProps & RefAttributes<HTMLDivElement>>;
3274
- ValueContainer: {
3275
- ({ className, children, isMulti, }: SelectValueContainerProps): JSX_2.Element;
3276
- displayName: string;
3277
- };
3278
3276
  Input: ForwardRefExoticComponent<SelectInputProps & RefAttributes<HTMLInputElement>>;
3279
- Placeholder: {
3280
- ({ className, children }: SelectPlaceholderProps): JSX_2.Element;
3281
- displayName: string;
3282
- };
3283
- SingleValue: {
3284
- <T>({ className, children, data, isDisabled, }: SelectSingleValueProps<T>): JSX_2.Element;
3285
- displayName: string;
3286
- };
3287
3277
  MultiValue: {
3288
3278
  <T>({ className, children, data, isDisabled, isFocused, onRemove, }: SelectMultiValueProps<T>): JSX_2.Element;
3289
3279
  displayName: string;
@@ -3297,24 +3287,6 @@ export declare const Select: {
3297
3287
  ({ color: propColor, className, children, onClick, isDisabled: propIsDisabled, ...props }: SelectDropdownIndicatorProps): JSX_2.Element;
3298
3288
  displayName: string;
3299
3289
  };
3300
- Menu: ForwardRefExoticComponent<SelectMenuProps & RefAttributes<HTMLDivElement>>;
3301
- MenuList: ForwardRefExoticComponent<SelectMenuListProps & RefAttributes<HTMLDivElement>>;
3302
- Option: {
3303
- <T>({ className, children, data, isDisabled, isFocused, isSelected, innerProps, ...props }: SelectOptionProps<T>): JSX_2.Element;
3304
- displayName: string;
3305
- };
3306
- Group: {
3307
- <T>({ className, children, data, label, }: SelectGroupProps<T>): JSX_2.Element;
3308
- displayName: string;
3309
- };
3310
- GroupHeading: {
3311
- ({ className, children, }: SelectGroupHeadingProps): JSX_2.Element;
3312
- displayName: string;
3313
- };
3314
- NoOptionsMessage: {
3315
- ({ className, children, inputValue, }: SelectNoOptionsMessageProps): JSX_2.Element;
3316
- displayName: string;
3317
- };
3318
3290
  Message: {
3319
3291
  ({ icon, className, children, ...props }: SelectMessageProps): JSX_2.Element;
3320
3292
  displayName: string;
@@ -3609,6 +3581,7 @@ export declare interface SortableFileTabProps<T = unknown> {
3609
3581
  export declare interface SubMenuProps {
3610
3582
  label: string;
3611
3583
  children: React.ReactNode;
3584
+ icon?: React.ReactNode;
3612
3585
  disabled?: boolean;
3613
3586
  className?: string;
3614
3587
  }