react-functional-select
Advanced tools
Comparing version 1.0.8 to 1.0.9
@@ -1,5 +0,5 @@ | ||
import * as Types from './types'; | ||
export declare type Theme = Types.Theme; | ||
export declare type SelectRef = Types.SelectHandle; | ||
export declare type SelectProps = Types.SelectProps; | ||
import * as SelectModule from './Select'; | ||
export declare type Theme = SelectModule.Theme; | ||
export declare type SelectRef = SelectModule.SelectRef; | ||
export declare type SelectProps = SelectModule.SelectProps; | ||
export { default as Select } from './Select'; |
@@ -1,4 +0,67 @@ | ||
import React from 'react'; | ||
import { SelectProps, SelectHandle } from './types'; | ||
declare const Select: React.ForwardRefExoticComponent<SelectProps & React.RefAttributes<SelectHandle>>; | ||
import React, { KeyboardEventHandler, FocusEventHandler, ReactNode, ReactText } from 'react'; | ||
import { DefaultTheme } from 'styled-components'; | ||
declare type OptionData = any; | ||
declare type MenuOption = { | ||
label: ReactText; | ||
value: ReactText; | ||
data: OptionData; | ||
isDisabled?: boolean; | ||
isSelected?: boolean; | ||
}; | ||
export declare type Theme = Partial<DefaultTheme>; | ||
export declare type SelectRef = { | ||
readonly blur: () => void; | ||
readonly focus: () => void; | ||
readonly clearValue: () => void; | ||
readonly setValue: (option?: OptionData) => void; | ||
}; | ||
export declare type SelectProps = { | ||
readonly inputId?: string; | ||
readonly selectId?: string; | ||
readonly isMulti?: boolean; | ||
readonly ariaLabel?: string; | ||
readonly autoFocus?: boolean; | ||
readonly isLoading?: boolean; | ||
readonly isInvalid?: boolean; | ||
readonly inputDelay?: number; | ||
readonly themeConfig?: Theme; | ||
readonly isDisabled?: boolean; | ||
readonly placeholder?: string; | ||
readonly menuWidth?: ReactText; | ||
readonly menuItemSize?: number; | ||
readonly isClearable?: boolean; | ||
readonly noOptionsMsg?: string; | ||
readonly clearIcon?: ReactNode; | ||
readonly caretIcon?: ReactNode; | ||
readonly options?: OptionData[]; | ||
readonly isSearchable?: boolean; | ||
readonly menuMaxHeight?: number; | ||
readonly addClassNames?: boolean; | ||
readonly ariaLabelledBy?: string; | ||
readonly openMenuOnClick?: boolean; | ||
readonly openMenuOnFocus?: boolean; | ||
readonly menuOverscanCount?: number; | ||
readonly tabSelectsOption?: boolean; | ||
readonly filterIgnoreCase?: boolean; | ||
readonly blurInputOnSelect?: boolean; | ||
readonly closeMenuOnSelect?: boolean; | ||
readonly isAriaLiveEnabled?: boolean; | ||
readonly scrollMenuIntoView?: boolean; | ||
readonly hideSelectedOptions?: boolean; | ||
readonly filterIgnoreAccents?: boolean; | ||
readonly backspaceClearsValue?: boolean; | ||
readonly onMenuOpen?: (...args: any[]) => void; | ||
readonly onMenuClose?: (...args: any[]) => void; | ||
readonly initialValue?: OptionData | OptionData[]; | ||
readonly onOptionChange?: (data: OptionData) => void; | ||
readonly onKeyDown?: KeyboardEventHandler<HTMLDivElement>; | ||
readonly getOptionLabel?: (data: OptionData) => ReactText; | ||
readonly getOptionValue?: (data: OptionData) => ReactText; | ||
readonly onInputBlur?: FocusEventHandler<HTMLInputElement>; | ||
readonly onInputFocus?: FocusEventHandler<HTMLInputElement>; | ||
readonly renderOptionLabel?: (data: OptionData) => ReactNode; | ||
readonly getIsOptionDisabled?: (data: OptionData) => boolean; | ||
readonly getFilterOptionString?: (option: MenuOption) => string; | ||
}; | ||
declare const Select: React.ForwardRefExoticComponent<SelectProps & React.RefAttributes<SelectRef>>; | ||
export default Select; |
{ | ||
"name": "react-functional-select", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"author": "Matt Areddia <mareddia@protonmail.com> (https://github.com/based-ghost/)", | ||
@@ -5,0 +5,0 @@ "description": "Miro-sized and micro-optimized select component for React.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
149470
3410