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

vue-color

Package Overview
Dependencies
Maintainers
2
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-color - npm Package Compare versions

Comparing version 2.7.0 to 2.7.1

1

.vscode/settings.json
{
"cSpell.words": [
"Checkboard",
"Photoshop",
"gmail",

@@ -5,0 +6,0 @@ "kexiaokai",

@@ -72,3 +72,8 @@ var path = require('path')

]
},
node: {
// prevent webpack from injecting an global polyfill that includes Function(return this) and eval(this)
global: false
}
}

@@ -31,3 +31,8 @@ var path = require('path')

]
},
node: {
// prevent webpack from injecting an global polyfill that includes Function(return this) and eval(this)
global: false
}
}

2

package.json
{
"name": "vue-color",
"version": "2.7.0",
"version": "2.7.1",
"description": "Color of Vue Components",

@@ -5,0 +5,0 @@ "keywords": [

@@ -116,4 +116,24 @@ # vue-color

In some cases you can give the component a predefined set of colors with the property `presetColors` (for `Sketch` only) or `palette` (for `Compact` and `Grayscale`), by simply passing it an array with the color values as strings in any css compatible format.
```html
<sketch-picker
@input="updateValue"
:value="colors"
:presetColors="[
'#f00', '#00ff00', '#00ff0055', 'rgb(201, 76, 76)', 'rgba(0,0,255,1)', 'hsl(89, 43%, 51%)', 'hsla(89, 43%, 51%, 0.6)'
]"
></sketch-picker>
<compact-picker
@input="updateValue"
:value="colors"
:palette="[
'#f00', '#00ff00', '#00ff0055', 'rgb(201, 76, 76)', 'rgba(0,0,255,1)', 'hsl(89, 43%, 51%)', 'hsla(89, 43%, 51%, 0.6)'
]"
></compact-picker>
```
## License
vue-color is licensed under [The MIT License](LICENSE).

@@ -17,3 +17,3 @@ import Compact from './components/Compact.vue'

const VueColor = {
version: '2.7.0',
version: '2.7.1',
Compact,

@@ -20,0 +20,0 @@ Grayscale,

@@ -12,2 +12,8 @@ import tinycolor from 'tinycolor2'

color = tinycolor(data.hex)
} else if (data && data.hsv) {
color = tinycolor(data.hsv)
} else if (data && data.rgba) {
color = tinycolor(data.rgba)
} else if (data && data.rgb) {
color = tinycolor(data.rgb)
} else {

@@ -14,0 +20,0 @@ color = tinycolor(data)

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