Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-functional-select

Package Overview
Dependencies
Maintainers
1
Versions
100
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-functional-select - npm Package Compare versions

Comparing version 1.0.8 to 1.0.9

8

dist/index.d.ts

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc