Latest updates from IceHrmPro
This commit is contained in:
50
web/node_modules/rc-select/es/Select.d.ts
generated
vendored
Normal file
50
web/node_modules/rc-select/es/Select.d.ts
generated
vendored
Normal file
@@ -0,0 +1,50 @@
|
||||
/**
|
||||
* To match accessibility requirement, we always provide an input in the component.
|
||||
* Other element will not set `tabIndex` to avoid `onBlur` sequence problem.
|
||||
* For focused select, we set `aria-live="polite"` to update the accessibility content.
|
||||
*
|
||||
* ref:
|
||||
* - keyboard: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/listbox_role#Keyboard_interactions
|
||||
*
|
||||
* New api:
|
||||
* - listHeight
|
||||
* - listItemHeight
|
||||
* - component
|
||||
*
|
||||
* Remove deprecated api:
|
||||
* - multiple
|
||||
* - tags
|
||||
* - combobox
|
||||
* - firstActiveValue
|
||||
* - dropdownMenuStyle
|
||||
* - openClassName (Not list in api)
|
||||
*
|
||||
* Update:
|
||||
* - `backfill` only support `combobox` mode
|
||||
* - `combobox` mode not support `labelInValue` since it's meaningless
|
||||
* - `getInputElement` only support `combobox` mode
|
||||
* - `onChange` return OptionData instead of ReactNode
|
||||
* - `filterOption` `onChange` `onSelect` accept OptionData instead of ReactNode
|
||||
* - `combobox` mode trigger `onChange` will get `undefined` if no `value` match in Option
|
||||
* - `combobox` mode not support `optionLabelProp`
|
||||
*/
|
||||
import React from 'react';
|
||||
import { OptionsType as SelectOptionsType } from './interface';
|
||||
import Option from './Option';
|
||||
import OptGroup from './OptGroup';
|
||||
import { SelectProps, RefSelectProps } from './generate';
|
||||
import { DefaultValueType } from './interface/generator';
|
||||
export declare type ExportedSelectProps<ValueType extends DefaultValueType = DefaultValueType> = SelectProps<SelectOptionsType, ValueType>;
|
||||
/**
|
||||
* Typescript not support generic with function component,
|
||||
* we have to wrap an class component to handle this.
|
||||
*/
|
||||
declare class Select<VT> extends React.Component<SelectProps<SelectOptionsType, VT>> {
|
||||
static Option: typeof Option;
|
||||
static OptGroup: typeof OptGroup;
|
||||
selectRef: React.RefObject<RefSelectProps>;
|
||||
focus: () => void;
|
||||
blur: () => void;
|
||||
render(): JSX.Element;
|
||||
}
|
||||
export default Select;
|
||||
Reference in New Issue
Block a user