🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

react-responsive-select

Package Overview
Dependencies
Maintainers
1
Versions
136
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-responsive-select - npm Package Compare versions

Comparing version

to
4.4.1

58

index.d.ts
import * as React from "react";
import OnBlurMultiSelect = ReactResponsiveSelect.IOnBlurMultiSelect;
import OnBlurSingleSelect = ReactResponsiveSelect.IOnBlurSingleSelect;
import OnChangeMultiSelect = ReactResponsiveSelect.IOnChangeMultiSelect;

@@ -11,2 +13,4 @@ import OnChangeSingleSelect = ReactResponsiveSelect.IOnChangeSingleSelect;

export {
OnBlurMultiSelect,
OnBlurSingleSelect,
OnChangeMultiSelect,

@@ -27,5 +31,11 @@ OnChangeSingleSelect,

name: string;
options: IOption[];
options: {
text: string;
value: string;
markup?: JSXOutput;
disabled?: boolean;
}[];
onSubmit?: () => void;
onChange?: (changes: IOnChangeSingleSelect | IOnChangeMultiSelect) => void;
onBlur?: (changes: IOnBlurSingleSelect | IOnBlurMultiSelect) => void;
caretIcon?: JSXOutput;

@@ -53,3 +63,4 @@ selectedValue?: string;

interface IOnChangeSingleSelect extends IOnChange {
interface IOnChangeSingleSelect {
altered: boolean;
text: string;

@@ -60,13 +71,46 @@ name: string;

interface IOnChangeMultiSelect extends IOnChange {
options: IOption[];
interface IOnChangeMultiSelect {
altered: boolean;
options: Array<{
text: string;
value: string;
markup?: JSXOutput;
disabled?: boolean;
}>;
}
interface ICustomLabelRendererSelectedOption extends IOption {}
interface IOnBlurSingleSelect {
altered: boolean;
text: string;
name: string;
value: string;
}
interface IOnBlurMultiSelect {
altered: boolean;
options: Array<{
text: string;
value: string;
markup?: JSXOutput;
disabled?: boolean;
}>;
}
interface ICustomLabelRendererSelectedOption {
text: string;
value: string;
markup?: JSXOutput;
disabled?: boolean;
}
interface ICustomLabelRendererSelectedOptions {
options: IOption[];
options: Array<{
text: string;
value: string;
markup?: JSXOutput;
disabled?: boolean;
}>;
}
export class ReactResponsiveSelect extends React.Component<IProps> {}
export class ReactResponsiveSelect extends React.Component<IProps> { }
}

2

package.json
{
"name": "react-responsive-select",
"version": "4.4.0",
"version": "4.4.1",
"description": "A React customisable, touchable, single-select / multi-select form component. Built with keyboard and screen reader accessibility in mind.",

@@ -5,0 +5,0 @@ "main": "dist/ReactResponsiveSelect.js",

Sorry, the diff of this file is too big to display