New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gutenberg-react-select-styles

Package Overview
Dependencies
Maintainers
0
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gutenberg-react-select-styles - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

153

index.js
module.exports = {
control: function( styles, state ) {
var newStyles = Object.assign( styles, {
control: (styles, state) => {
let newStyles = Object.assign(styles, {
cursor: 'pointer',
minHeight: 30,
} );
minHeight: 40,
borderRadius: 3,
});
if ( state.isFocused && ! state.isDisabled ) {
newStyles = Object.assign( newStyles, {
if (state.isFocused && !state.isDisabled) {
newStyles = Object.assign(newStyles, {
borderColor: '#007cba',
} );
});
} else {
newStyles = Object.assign( newStyles, {
borderColor: '#7e8993',
newStyles = Object.assign(newStyles, {
borderColor: 'var(--wp-components-color-gray-600, #949494)',
'&:hover': {
borderColor: '#7e8993',
borderColor: '',
},
} );
});
}
if ( state.isFocused ) {
newStyles = Object.assign( newStyles, {
if (state.isFocused) {
newStyles = Object.assign(newStyles, {
boxShadow: '0 0 0 1px #007cba',

@@ -27,3 +28,3 @@ '&:hover': {

},
} );
});
}

@@ -33,11 +34,26 @@

},
valueContainer: function( styles ) {
var newStyles = Object.assign( styles, {
padding: '0 8px',
} );
singleValue: (styles) => {
const newStyles = Object.assign(styles, {
color: 'var(--wp-components-color-foreground, #1e1e1e)',
});
return newStyles;
},
input: function( styles ) {
var newStyles = Object.assign( styles, {
valueContainer: (styles, state) => {
let newStyles = Object.assign(styles, {
padding: 0,
paddingLeft: 10,
});
if (state.isMulti) {
newStyles = Object.assign(newStyles, {
paddingRight: 7,
paddingLeft: 7,
});
}
return newStyles;
},
input: (styles) => {
const newStyles = Object.assign(styles, {
margin: 0,

@@ -50,23 +66,24 @@ height: 30,

},
} );
});
return newStyles;
},
dropdownIndicator: function( styles ) {
var newStyles = Object.assign( styles, {
padding: 5,
color: '#555555',
dropdownIndicator: (styles) => {
const newStyles = Object.assign(styles, {
padding: 3,
paddingRight: 9,
color: 'var(--wp-components-color-foreground, #1e1e1e)',
'&:hover': {
color: '#555555',
color: 'var(--wp-components-color-foreground, #1e1e1e)',
},
svg: {
width: 17,
height: 17,
width: 12,
height: 12,
},
} );
});
return newStyles;
},
clearIndicator: function( styles ) {
var newStyles = Object.assign( styles, {
clearIndicator: (styles) => {
const newStyles = Object.assign(styles, {
padding: 5,

@@ -77,69 +94,73 @@ svg: {

},
} );
});
return newStyles;
},
indicatorSeparator: function() {
indicatorSeparator: () => {
return false;
},
multiValue: function( styles ) {
var newStyles = Object.assign( styles, {
padding: '3px 4px',
multiValue: (styles) => {
const newStyles = Object.assign(styles, {
padding: '3px 2px',
margin: 4,
marginLeft: 0,
borderRadius: 15,
borderRadius: 1,
backgroundColor: '#ddd',
} );
});
return newStyles;
},
multiValueLabel: function( styles ) {
var newStyles = Object.assign( styles, {
multiValueLabel: (styles) => {
const newStyles = Object.assign(styles, {
padding: 0,
color: '#32373c',
fontSize: '90%',
} );
fontSize: '100%',
});
return newStyles;
},
multiValueRemove: function( styles ) {
var newStyles = Object.assign( styles, {
multiValueRemove: (styles) => {
const newStyles = Object.assign(styles, {
padding: 0,
marginLeft: 5,
marginRight: 5,
marginTop: 1,
width: 16,
height: 16,
borderRadius: 8,
backgroundColor: '#555d66',
color: '#ddd',
width: 'auto',
height: 'auto',
backgroundColor: 'transparent',
color: 'inherit',
justifyContent: 'center',
':hover': {
backgroundColor: '#e02e2e',
color: '#fff',
backgroundColor: 'transparent',
color: '#e02e2e',
},
svg: {
width: 12,
height: 12,
width: 14,
height: 14,
},
} );
});
return newStyles;
},
option: function( styles, state ) {
var newStyles = Object.assign( styles, {
option: (styles, state) => {
let newStyles = Object.assign(styles, {
display: 'flex',
alignItems: 'center',
padding: '4px 10px',
} );
});
if ( state.isFocused ) {
newStyles = Object.assign( newStyles, {
if (state.isFocused) {
newStyles = Object.assign(newStyles, {
backgroundColor: '#efefef',
} );
});
}
if ( state.isSelected ) {
newStyles = Object.assign( newStyles, {
if (state.isSelected) {
newStyles = Object.assign(newStyles, {
backgroundColor: '#007cba',
} );
});
} else {
newStyles = Object.assign(newStyles, {
color: 'var(--wp-components-color-foreground, #1e1e1e)',
});
}

@@ -149,6 +170,6 @@

},
menu: function( styles ) {
var newStyles = Object.assign( styles, {
menu: (styles) => {
const newStyles = Object.assign(styles, {
zIndex: 2,
} );
});

@@ -155,0 +176,0 @@ return newStyles;

{
"name": "gutenberg-react-select-styles",
"version": "0.0.2",
"version": "0.0.3",
"description": "Styles for react-select component",

@@ -5,0 +5,0 @@ "license": "MIT",

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