dw-neit-colors
Advanced tools
Comparing version 6.0.0 to 7.1.0
{ | ||
"name": "dw-neit-colors", | ||
"version": "6.0.0", | ||
"version": "7.1.0", | ||
"description": "Color palettes calculator of Ant Design", | ||
"main": "dist/index.js", | ||
"module": "dist/index.esm.js", | ||
"license": "MIT", | ||
"main": "./lib/index", | ||
"module": "./es/index", | ||
"typings": "es/index.d.ts", | ||
"files": [ | ||
"lib", | ||
"dist/index.js", | ||
"dist/index.esm.js", | ||
"dist/src/index.d.ts", | ||
"dist/src/generate.d.ts" | ||
"es" | ||
], | ||
"typings": "dist/src/index.d.ts", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/ant-design/ant-design-colors.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/ant-design/ant-design-colors/issues" | ||
}, | ||
"scripts": { | ||
"tsc": "tsc --noEmit", | ||
"compile": "father build --esm --cjs", | ||
"bench": "vitest bench", | ||
"compile": "father build", | ||
"coverage": "npm test -- --coverage", | ||
"lint": "eslint src --ext .ts", | ||
"lint:fix": "prettier --write '{src,tests}/**/*.ts'", | ||
"jest": "jest", | ||
"coverage": "jest --coverage && cat ./coverage/lcov.info | coveralls", | ||
"test": "npm run tsc && npm run lint && npm run jest" | ||
"prepare": "tsx generate-presets", | ||
"prepublishOnly": "npm run compile", | ||
"prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"", | ||
"test": "jest" | ||
}, | ||
"author": "afc163 <afc163@gmail.com>", | ||
"license": "MIT", | ||
"dependencies": { | ||
"@ctrl/tinycolor": "^3.4.0" | ||
"@ctrl/tinycolor": "^3.6.1" | ||
}, | ||
"devDependencies": { | ||
"@types/jest": "^26.0.0", | ||
"@typescript-eslint/eslint-plugin": "^4.0.0", | ||
"@typescript-eslint/parser": "^4.7.0", | ||
"coveralls": "^3.0.3", | ||
"eslint": "^7.1.0", | ||
"eslint-config-prettier": "^7.0.0", | ||
"eslint-plugin-prettier": "^3.0.1", | ||
"father": "^2.29.5", | ||
"jest": "^26.0.1", | ||
"np": "^7.0.0", | ||
"prettier": "^2.0.0", | ||
"ts-jest": "^26.0.0", | ||
"typescript": "^4.0.2" | ||
}, | ||
"homepage": "https://github.com/ant-design/ant-design-colors#readme" | ||
"@types/jest": "^26.0.24", | ||
"@types/node": "^20.14.9", | ||
"@umijs/fabric": "^3.0.0", | ||
"eslint": "^7.32.0", | ||
"father": "^4.4.4", | ||
"jest": "^26.6.3", | ||
"np": "^7.7.0", | ||
"prettier": "^2.8.8", | ||
"ts-jest": "^26.5.6", | ||
"tsx": "^4.16.0", | ||
"typescript": "^4.9.5", | ||
"vitest": "^1.6.0" | ||
} | ||
} |
@@ -7,9 +7,20 @@ <h1 align="center">Ant Design Colors</h1> | ||
[![Travis](https://img.shields.io/travis/ant-design/ant-design-colors/master.svg?style=flat-square)](https://travis-ci.org/ant-design/ant-design-colors) | ||
[![Test coverage](https://img.shields.io/coveralls/ant-design/ant-design-colors.svg?style=flat-square)](https://coveralls.io/r/ant-design/ant-design-colors?branch=master) | ||
[![npm package](https://img.shields.io/npm/v/@ant-design/colors.svg?style=flat-square)](https://www.npmjs.org/package/@ant-design/colors) | ||
[![NPM downloads](http://img.shields.io/npm/dm/@ant-design/colors.svg?style=flat-square)](http://npmjs.com/@ant-design/colors) | ||
[![CI status][github-action-image]][github-action-url] | ||
[![codecov][codecov-image]][codecov-url] | ||
[![NPM version][npm-image]][npm-url] | ||
[![NPM downloads][download-image]][download-url] | ||
[![][bundlephobia-image]][bundlephobia-url] | ||
[![Dependencies](https://img.shields.io/david/ant-design/ant-design-colors.svg?style=flat-square)](https://david-dm.org/ant-design/ant-design-colors) | ||
[![DevDependencies](https://img.shields.io/david/dev/ant-design/ant-design-colors.svg?style=flat-square)](https://david-dm.org/ant-design/ant-design-colors?type=dev) [![Greenkeeper badge](https://badges.greenkeeper.io/ant-design/ant-design-colors.svg)](https://greenkeeper.io/) | ||
![](https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/rainbow.png) | ||
[npm-image]: http://img.shields.io/npm/v/dw-neit-colors.svg?style=flat-square | ||
[npm-url]: http://npmjs.org/package/dw-neit-colors | ||
[github-action-image]: https://github.com/ant-design/ant-design-colors/actions/workflows/ci.yml/badge.svg | ||
[github-action-url]: https://github.com/ant-design/ant-design-colors/actions/workflows/ci.yml | ||
[codecov-image]: https://img.shields.io/codecov/c/github/ant-design/ant-design-colors/main.svg?style=flat-square | ||
[codecov-url]: https://codecov.io/gh/ant-design/ant-design-colors/tree/main | ||
[download-image]: https://img.shields.io/npm/dm/dw-neit-colors.svg?style=flat-square | ||
[download-url]: https://npmjs.org/package/dw-neit-colors | ||
[bundlephobia-image]: https://badgen.net/bundlephobia/minzip/dw-neit-colors?style=flat-square | ||
[bundlephobia-url]: https://bundlephobia.com/package/dw-neit-colors | ||
</div> | ||
@@ -22,5 +33,5 @@ | ||
```bash | ||
$ npm install @ant-design/colors | ||
$ npm install dw-neit-colors | ||
// or | ||
$ yarn add @ant-design/colors | ||
$ yarn add dw-neit-colors | ||
``` | ||
@@ -31,14 +42,27 @@ | ||
```bash | ||
$ npm install @ant-design/colors --save | ||
$ npm install dw-neit-colors --save | ||
``` | ||
```js | ||
import { red, volcano, gold, yellow, lime, green, cyan, blue, geekblue, purple, magenta, grey } from '@ant-design/colors'; | ||
import { | ||
red, | ||
volcano, | ||
gold, | ||
yellow, | ||
lime, | ||
green, | ||
cyan, | ||
blue, | ||
geekblue, | ||
purple, | ||
magenta, | ||
grey, | ||
} from 'dw-neit-colors'; | ||
console.log(blue); // ['#E6F7FF', '#BAE7FF', '#91D5FF', ''#69C0FF', '#40A9FF', '#1890FF', '#096DD9', '#0050B3', '#003A8C', '#002766'] | ||
console.log(blue.primary); // '#1890FF' | ||
console.log(blue); // ['#E6F4FF', '#BAE0FF', '#91CAFF', '#69B1FF', '#4096FF', '#1677FF', '#0958D9', '#003EB3', '#002C8C', '#001D66'] | ||
console.log(blue.primary); // '#1677FF' | ||
``` | ||
```js | ||
import { generate, presetPalettes } from '@ant-design/colors'; | ||
import { generate, presetPalettes } from 'dw-neit-colors'; | ||
@@ -68,3 +92,3 @@ // Generate color palettes by a given color | ||
```js | ||
import { generate, presetDarkPalettes } from '@ant-design/colors'; | ||
import { generate, presetDarkPalettes } from 'dw-neit-colors'; | ||
@@ -74,5 +98,5 @@ // Generate dark color palettes by a given color | ||
theme: 'dark', | ||
backgroundColor: '#141414' | ||
backgroundColor: '#141414', | ||
}); | ||
console.log(colors); // ["#111d2c", "#112a45", "#15395b", "#164c7e", "#1765ad", "#177ddc", "#3993dc", "#65b7f3", "#8bcbf3", "#b2dcf3"] | ||
console.log(colors); // ['#111d2c', '#112a45', '#15395b', '#164c7e', '#1765ad', '#177ddc', '#3c9ae8', '#65b7f3', '#8dcff8', '#b7e3fa'] | ||
console.log(presetDarkPalettes); | ||
@@ -79,0 +103,0 @@ /* |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
34053
12
27
657
120
2
1
1
1
Updated@ctrl/tinycolor@^3.6.1