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

react-select

Package Overview
Dependencies
Maintainers
3
Versions
180
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-select - npm Package Compare versions

Comparing version 2.1.0 to 2.1.1

5

lib/components/Group.js

@@ -75,6 +75,7 @@ 'use strict';

getStyles = props.getStyles,
cleanProps = _objectWithoutProperties(props, ['className', 'cx', 'getStyles']);
theme = props.theme,
cleanProps = _objectWithoutProperties(props, ['className', 'cx', 'getStyles', 'theme']);
return _react2.default.createElement('div', _extends({
className: cx( /*#__PURE__*/(0, _emotion.css)(getStyles('groupHeading', props)), { 'group-heading': true }, className)
className: cx( /*#__PURE__*/(0, _emotion.css)(getStyles('groupHeading', _extends({ theme: theme }, cleanProps))), { 'group-heading': true }, className)
}, cleanProps));

@@ -81,0 +82,0 @@ };

13

lib/components/indicators.js

@@ -84,4 +84,3 @@ 'use strict';

var DropdownIndicator = exports.DropdownIndicator = function DropdownIndicator(props) {
var _props$children = props.children,
children = _props$children === undefined ? _react2.default.createElement(DownChevron, null) : _props$children,
var children = props.children,
className = props.className,

@@ -103,7 +102,9 @@ cx = props.cx,

};
DropdownIndicator.defaultProps = {
children: _react2.default.createElement(DownChevron, null)
};
var clearIndicatorCSS = exports.clearIndicatorCSS = baseCSS;
var ClearIndicator = exports.ClearIndicator = function ClearIndicator(props) {
var _props$children2 = props.children,
children = _props$children2 === undefined ? _react2.default.createElement(CrossIcon, null) : _props$children2,
var children = props.children,
className = props.className,

@@ -126,2 +127,6 @@ cx = props.cx,

ClearIndicator.defaultProps = {
children: _react2.default.createElement(CrossIcon, null)
};
// ==============================

@@ -128,0 +133,0 @@ // Separator

@@ -56,3 +56,4 @@ 'use strict';

isDisabled = _ref2.isDisabled,
props = _objectWithoutProperties(_ref2, ['className', 'cx', 'getStyles', 'innerRef', 'isHidden', 'isDisabled']);
theme = _ref2.theme,
props = _objectWithoutProperties(_ref2, ['className', 'cx', 'getStyles', 'innerRef', 'isHidden', 'isDisabled', 'theme']);

@@ -62,3 +63,3 @@ return _react2.default.createElement(

{
className: (0, _emotion.css)(getStyles('input', props))
className: (0, _emotion.css)(getStyles('input', _extends({ theme: theme }, props)))
},

@@ -65,0 +66,0 @@ _react2.default.createElement(_reactInputAutosize2.default, _extends({

@@ -1706,2 +1706,3 @@ 'use strict';

break;
case 'Delete':
case 'Backspace':

@@ -1708,0 +1709,0 @@ if (inputValue) return;

{
"name": "react-select",
"version": "2.1.0",
"version": "2.1.1",
"description": "A Select control built with and for ReactJS",
"main": "lib/index.js",
"module": "dist/react-select.esm.js",
"sideEffects": false,
"author": "Jed Watson",

@@ -32,3 +33,3 @@ "license": "MIT",

"babel-loader": "^7.1.2",
"babel-plugin-emotion": "^9.1.2",
"babel-plugin-emotion": "9.2.10",
"babel-plugin-external-helpers": "^6.22.0",

@@ -62,3 +63,3 @@ "babel-plugin-transform-class-properties": "^6.24.1",

"istanbul": "^0.4.5",
"jest": "^22.0.5",
"jest": "^23.6.0",
"jest-in-case": "^1.0.2",

@@ -65,0 +66,0 @@ "lint-staged": "^7.0.5",

@@ -64,7 +64,7 @@ // @flow

export const GroupHeading = (props: any) => {
const { className, cx, getStyles, ...cleanProps } = props;
const { className, cx, getStyles, theme, ...cleanProps } = props;
return (
<div
className={cx(
css(getStyles('groupHeading', props)),
css(getStyles('groupHeading', { theme, ...cleanProps })),
{ 'group-heading': true },

@@ -71,0 +71,0 @@ className

// @flow
import React, { type ElementType } from 'react';
import React, { type Node } from 'react';
import { injectGlobal, css } from 'emotion';

@@ -47,3 +47,3 @@

/** The children to be rendered inside the indicator. */
children: ElementType,
children: Node,
/** Props that will be passed on to the children. */

@@ -73,3 +73,3 @@ innerProps: any,

export const DropdownIndicator = (props: IndicatorProps) => {
const { children = <DownChevron />, className, cx, getStyles, innerProps } = props;
const { children, className, cx, getStyles, innerProps } = props;
return (

@@ -91,6 +91,10 @@ <div

};
DropdownIndicator.defaultProps = {
children: <DownChevron />,
};
export const clearIndicatorCSS = baseCSS;
export const ClearIndicator = (props: IndicatorProps) => {
const { children = <CrossIcon />, className, cx, getStyles, innerProps } = props;
const { children, className, cx, getStyles, innerProps } = props;
return (

@@ -112,2 +116,6 @@ <div

ClearIndicator.defaultProps = {
children: <CrossIcon />
};
// ==============================

@@ -114,0 +122,0 @@ // Separator

@@ -42,5 +42,6 @@ // @flow

isDisabled,
theme,
...props
}: InputProps) => (
<div css={getStyles('input', props)}>
<div css={getStyles('input', { theme, ...props })}>
<AutosizeInput

@@ -47,0 +48,0 @@ className={cx(null, { 'input': true }, className)}

@@ -1112,2 +1112,3 @@ // @flow

break;
case 'Delete':
case 'Backspace':

@@ -1114,0 +1115,0 @@ if (inputValue) return;

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

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

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

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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