cs
This commit is contained in:
22
node_modules/@ant-design/colors/LICENSE
generated
vendored
Normal file
22
node_modules/@ant-design/colors/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
MIT LICENSE
|
||||
|
||||
Copyright (c) 2018-present Ant UED, https://xtech.antfin.com/
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
119
node_modules/@ant-design/colors/README.md
generated
vendored
Normal file
119
node_modules/@ant-design/colors/README.md
generated
vendored
Normal file
@@ -0,0 +1,119 @@
|
||||
<h1 align="center">Ant Design Colors</h1>
|
||||
|
||||
<div align="center">
|
||||
|
||||
:art: Color palettes calculator of [Ant Design](https://ant.design/docs/spec/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]
|
||||
|
||||

|
||||
|
||||
[npm-image]: http://img.shields.io/npm/v/@ant-design/colors.svg?style=flat-square
|
||||
[npm-url]: http://npmjs.org/package/@ant-design/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/@ant-design/colors.svg?style=flat-square
|
||||
[download-url]: https://npmjs.org/package/@ant-design/colors
|
||||
[bundlephobia-image]: https://badgen.net/bundlephobia/minzip/@ant-design/colors?style=flat-square
|
||||
[bundlephobia-url]: https://bundlephobia.com/package/@ant-design/colors
|
||||
</div>
|
||||
|
||||

|
||||
|
||||
## Install
|
||||
|
||||
```bash
|
||||
$ npm install @ant-design/colors
|
||||
// or
|
||||
$ yarn add @ant-design/colors
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```bash
|
||||
$ npm install @ant-design/colors --save
|
||||
```
|
||||
|
||||
```js
|
||||
import {
|
||||
red,
|
||||
volcano,
|
||||
gold,
|
||||
yellow,
|
||||
lime,
|
||||
green,
|
||||
cyan,
|
||||
blue,
|
||||
geekblue,
|
||||
purple,
|
||||
magenta,
|
||||
grey,
|
||||
} from '@ant-design/colors';
|
||||
|
||||
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';
|
||||
|
||||
// Generate color palettes by a given color
|
||||
const colors = generate('#1890ff');
|
||||
console.log(colors); // ['#E6F7FF', '#BAE7FF', '#91D5FF', ''#69C0FF', '#40A9FF', '#1890FF', '#096DD9', '#0050B3', '#003A8C', '#002766']
|
||||
console.log(presetPalettes);
|
||||
/*
|
||||
{
|
||||
red: [...],
|
||||
volcano: [...],
|
||||
orange: [...],
|
||||
gold: [...],
|
||||
yellow: [...],
|
||||
lime: [...],
|
||||
green: [...],
|
||||
cyan: [...],
|
||||
blue: [...],
|
||||
geekblue: [...],
|
||||
purple: [...],
|
||||
magenta: [...],
|
||||
}
|
||||
*/
|
||||
```
|
||||
|
||||
```js
|
||||
import { generate, presetDarkPalettes } from '@ant-design/colors';
|
||||
|
||||
// Generate dark color palettes by a given color
|
||||
const colors = generate('#1890ff', {
|
||||
theme: 'dark',
|
||||
backgroundColor: '#141414',
|
||||
});
|
||||
console.log(colors); // ['#111d2c', '#112a45', '#15395b', '#164c7e', '#1765ad', '#177ddc', '#3c9ae8', '#65b7f3', '#8dcff8', '#b7e3fa']
|
||||
console.log(presetDarkPalettes);
|
||||
/*
|
||||
{
|
||||
red: [...],
|
||||
volcano: [...],
|
||||
orange: [...],
|
||||
gold: [...],
|
||||
yellow: [...],
|
||||
lime: [...],
|
||||
green: [...],
|
||||
cyan: [...],
|
||||
blue: [...],
|
||||
geekblue: [...],
|
||||
purple: [...],
|
||||
magenta: [...],
|
||||
}
|
||||
*/
|
||||
```
|
||||
|
||||
## Articles
|
||||
|
||||
- [Ant Design Colors](https://ant.design/docs/spec/colors)
|
||||
- [Ant Design 色板生成算法演进之路](https://zhuanlan.zhihu.com/p/32422584)
|
||||
8
node_modules/@ant-design/colors/es/generate.d.ts
generated
vendored
Normal file
8
node_modules/@ant-design/colors/es/generate.d.ts
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
import type { ColorInput } from '@ant-design/fast-color';
|
||||
interface Opts {
|
||||
theme?: 'dark' | 'default';
|
||||
backgroundColor?: string;
|
||||
}
|
||||
export default function generate(color: ColorInput, opts?: Opts): string[];
|
||||
export {};
|
||||
//# sourceMappingURL=generate.d.ts.map
|
||||
1
node_modules/@ant-design/colors/es/generate.d.ts.map
generated
vendored
Normal file
1
node_modules/@ant-design/colors/es/generate.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"generate.d.ts","sourceRoot":"","sources":["generate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAsFzD,UAAU,IAAI;IACZ,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,KAAK,EAAE,UAAU,EAAE,IAAI,GAAE,IAAS,GAAG,MAAM,EAAE,CA8B7E"}
|
||||
128
node_modules/@ant-design/colors/es/generate.js
generated
vendored
Normal file
128
node_modules/@ant-design/colors/es/generate.js
generated
vendored
Normal file
@@ -0,0 +1,128 @@
|
||||
import { FastColor } from '@ant-design/fast-color';
|
||||
var hueStep = 2; // 色相阶梯
|
||||
var saturationStep = 0.16; // 饱和度阶梯,浅色部分
|
||||
var saturationStep2 = 0.05; // 饱和度阶梯,深色部分
|
||||
var brightnessStep1 = 0.05; // 亮度阶梯,浅色部分
|
||||
var brightnessStep2 = 0.15; // 亮度阶梯,深色部分
|
||||
var lightColorCount = 5; // 浅色数量,主色上
|
||||
var darkColorCount = 4; // 深色数量,主色下
|
||||
|
||||
// 暗色主题颜色映射关系表
|
||||
var darkColorMap = [{
|
||||
index: 7,
|
||||
amount: 15
|
||||
}, {
|
||||
index: 6,
|
||||
amount: 25
|
||||
}, {
|
||||
index: 5,
|
||||
amount: 30
|
||||
}, {
|
||||
index: 5,
|
||||
amount: 45
|
||||
}, {
|
||||
index: 5,
|
||||
amount: 65
|
||||
}, {
|
||||
index: 5,
|
||||
amount: 85
|
||||
}, {
|
||||
index: 4,
|
||||
amount: 90
|
||||
}, {
|
||||
index: 3,
|
||||
amount: 95
|
||||
}, {
|
||||
index: 2,
|
||||
amount: 97
|
||||
}, {
|
||||
index: 1,
|
||||
amount: 98
|
||||
}];
|
||||
function getHue(hsv, i, light) {
|
||||
var hue;
|
||||
// 根据色相不同,色相转向不同
|
||||
if (Math.round(hsv.h) >= 60 && Math.round(hsv.h) <= 240) {
|
||||
hue = light ? Math.round(hsv.h) - hueStep * i : Math.round(hsv.h) + hueStep * i;
|
||||
} else {
|
||||
hue = light ? Math.round(hsv.h) + hueStep * i : Math.round(hsv.h) - hueStep * i;
|
||||
}
|
||||
if (hue < 0) {
|
||||
hue += 360;
|
||||
} else if (hue >= 360) {
|
||||
hue -= 360;
|
||||
}
|
||||
return hue;
|
||||
}
|
||||
function getSaturation(hsv, i, light) {
|
||||
// grey color don't change saturation
|
||||
if (hsv.h === 0 && hsv.s === 0) {
|
||||
return hsv.s;
|
||||
}
|
||||
var saturation;
|
||||
if (light) {
|
||||
saturation = hsv.s - saturationStep * i;
|
||||
} else if (i === darkColorCount) {
|
||||
saturation = hsv.s + saturationStep;
|
||||
} else {
|
||||
saturation = hsv.s + saturationStep2 * i;
|
||||
}
|
||||
// 边界值修正
|
||||
if (saturation > 1) {
|
||||
saturation = 1;
|
||||
}
|
||||
// 第一格的 s 限制在 0.06-0.1 之间
|
||||
if (light && i === lightColorCount && saturation > 0.1) {
|
||||
saturation = 0.1;
|
||||
}
|
||||
if (saturation < 0.06) {
|
||||
saturation = 0.06;
|
||||
}
|
||||
return Math.round(saturation * 100) / 100;
|
||||
}
|
||||
function getValue(hsv, i, light) {
|
||||
var value;
|
||||
if (light) {
|
||||
value = hsv.v + brightnessStep1 * i;
|
||||
} else {
|
||||
value = hsv.v - brightnessStep2 * i;
|
||||
}
|
||||
// Clamp value between 0 and 1
|
||||
value = Math.max(0, Math.min(1, value));
|
||||
return Math.round(value * 100) / 100;
|
||||
}
|
||||
export default function generate(color) {
|
||||
var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
||||
var patterns = [];
|
||||
var pColor = new FastColor(color);
|
||||
var hsv = pColor.toHsv();
|
||||
for (var i = lightColorCount; i > 0; i -= 1) {
|
||||
var c = new FastColor({
|
||||
h: getHue(hsv, i, true),
|
||||
s: getSaturation(hsv, i, true),
|
||||
v: getValue(hsv, i, true)
|
||||
});
|
||||
patterns.push(c);
|
||||
}
|
||||
patterns.push(pColor);
|
||||
for (var _i = 1; _i <= darkColorCount; _i += 1) {
|
||||
var _c = new FastColor({
|
||||
h: getHue(hsv, _i),
|
||||
s: getSaturation(hsv, _i),
|
||||
v: getValue(hsv, _i)
|
||||
});
|
||||
patterns.push(_c);
|
||||
}
|
||||
|
||||
// dark theme patterns
|
||||
if (opts.theme === 'dark') {
|
||||
return darkColorMap.map(function (_ref) {
|
||||
var index = _ref.index,
|
||||
amount = _ref.amount;
|
||||
return new FastColor(opts.backgroundColor || '#141414').mix(patterns[index], amount).toHexString();
|
||||
});
|
||||
}
|
||||
return patterns.map(function (c) {
|
||||
return c.toHexString();
|
||||
});
|
||||
}
|
||||
4
node_modules/@ant-design/colors/es/index.d.ts
generated
vendored
Normal file
4
node_modules/@ant-design/colors/es/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
export { default as generate } from './generate';
|
||||
export * from './presets';
|
||||
export type * from './types';
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
1
node_modules/@ant-design/colors/es/index.d.ts.map
generated
vendored
Normal file
1
node_modules/@ant-design/colors/es/index.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,cAAc,WAAW,CAAA;AACzB,mBAAmB,SAAS,CAAA"}
|
||||
2
node_modules/@ant-design/colors/es/index.js
generated
vendored
Normal file
2
node_modules/@ant-design/colors/es/index.js
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
export { default as generate } from "./generate";
|
||||
export * from "./presets";
|
||||
32
node_modules/@ant-design/colors/es/presets.d.ts
generated
vendored
Normal file
32
node_modules/@ant-design/colors/es/presets.d.ts
generated
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
import type { Palette, PalettesProps } from './types';
|
||||
export declare const presetPrimaryColors: Record<string, string>;
|
||||
export declare const red: Palette;
|
||||
export declare const volcano: Palette;
|
||||
export declare const orange: Palette;
|
||||
export declare const gold: Palette;
|
||||
export declare const yellow: Palette;
|
||||
export declare const lime: Palette;
|
||||
export declare const green: Palette;
|
||||
export declare const cyan: Palette;
|
||||
export declare const blue: Palette;
|
||||
export declare const geekblue: Palette;
|
||||
export declare const purple: Palette;
|
||||
export declare const magenta: Palette;
|
||||
export declare const grey: Palette;
|
||||
export declare const gray: Palette;
|
||||
export declare const presetPalettes: PalettesProps;
|
||||
export declare const redDark: Palette;
|
||||
export declare const volcanoDark: Palette;
|
||||
export declare const orangeDark: Palette;
|
||||
export declare const goldDark: Palette;
|
||||
export declare const yellowDark: Palette;
|
||||
export declare const limeDark: Palette;
|
||||
export declare const greenDark: Palette;
|
||||
export declare const cyanDark: Palette;
|
||||
export declare const blueDark: Palette;
|
||||
export declare const geekblueDark: Palette;
|
||||
export declare const purpleDark: Palette;
|
||||
export declare const magentaDark: Palette;
|
||||
export declare const greyDark: Palette;
|
||||
export declare const presetDarkPalettes: PalettesProps;
|
||||
//# sourceMappingURL=presets.d.ts.map
|
||||
1
node_modules/@ant-design/colors/es/presets.d.ts.map
generated
vendored
Normal file
1
node_modules/@ant-design/colors/es/presets.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"presets.d.ts","sourceRoot":"","sources":["presets.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAEtD,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CActD,CAAC;AAEF,eAAO,MAAM,GAAG,EAAE,OAWjB,CAAC;AAGF,eAAO,MAAM,OAAO,EAAE,OAWrB,CAAC;AAGF,eAAO,MAAM,MAAM,EAAE,OAWpB,CAAC;AAGF,eAAO,MAAM,IAAI,EAAE,OAWlB,CAAC;AAGF,eAAO,MAAM,MAAM,EAAE,OAWpB,CAAC;AAGF,eAAO,MAAM,IAAI,EAAE,OAWlB,CAAC;AAGF,eAAO,MAAM,KAAK,EAAE,OAWnB,CAAC;AAGF,eAAO,MAAM,IAAI,EAAE,OAWlB,CAAC;AAGF,eAAO,MAAM,IAAI,EAAE,OAWlB,CAAC;AAGF,eAAO,MAAM,QAAQ,EAAE,OAWtB,CAAC;AAGF,eAAO,MAAM,MAAM,EAAE,OAWpB,CAAC;AAGF,eAAO,MAAM,OAAO,EAAE,OAWrB,CAAC;AAGF,eAAO,MAAM,IAAI,EAAE,OAWlB,CAAC;AAGF,eAAO,MAAM,IAAI,SAAO,CAAC;AAEzB,eAAO,MAAM,cAAc,EAAE,aAc5B,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,OAWrB,CAAC;AAGF,eAAO,MAAM,WAAW,EAAE,OAWzB,CAAC;AAGF,eAAO,MAAM,UAAU,EAAE,OAWxB,CAAC;AAGF,eAAO,MAAM,QAAQ,EAAE,OAWtB,CAAC;AAGF,eAAO,MAAM,UAAU,EAAE,OAWxB,CAAC;AAGF,eAAO,MAAM,QAAQ,EAAE,OAWtB,CAAC;AAGF,eAAO,MAAM,SAAS,EAAE,OAWvB,CAAC;AAGF,eAAO,MAAM,QAAQ,EAAE,OAWtB,CAAC;AAGF,eAAO,MAAM,QAAQ,EAAE,OAWtB,CAAC;AAGF,eAAO,MAAM,YAAY,EAAE,OAW1B,CAAC;AAGF,eAAO,MAAM,UAAU,EAAE,OAWxB,CAAC;AAGF,eAAO,MAAM,WAAW,EAAE,OAWzB,CAAC;AAGF,eAAO,MAAM,QAAQ,EAAE,OAWtB,CAAC;AAGF,eAAO,MAAM,kBAAkB,EAAE,aAchC,CAAC"}
|
||||
100
node_modules/@ant-design/colors/es/presets.js
generated
vendored
Normal file
100
node_modules/@ant-design/colors/es/presets.js
generated
vendored
Normal file
@@ -0,0 +1,100 @@
|
||||
// Generated by script. Do NOT modify!
|
||||
|
||||
export var presetPrimaryColors = {
|
||||
"red": "#F5222D",
|
||||
"volcano": "#FA541C",
|
||||
"orange": "#FA8C16",
|
||||
"gold": "#FAAD14",
|
||||
"yellow": "#FADB14",
|
||||
"lime": "#A0D911",
|
||||
"green": "#52C41A",
|
||||
"cyan": "#13C2C2",
|
||||
"blue": "#1677FF",
|
||||
"geekblue": "#2F54EB",
|
||||
"purple": "#722ED1",
|
||||
"magenta": "#EB2F96",
|
||||
"grey": "#666666"
|
||||
};
|
||||
export var red = ["#fff1f0", "#ffccc7", "#ffa39e", "#ff7875", "#ff4d4f", "#f5222d", "#cf1322", "#a8071a", "#820014", "#5c0011"];
|
||||
red.primary = red[5];
|
||||
export var volcano = ["#fff2e8", "#ffd8bf", "#ffbb96", "#ff9c6e", "#ff7a45", "#fa541c", "#d4380d", "#ad2102", "#871400", "#610b00"];
|
||||
volcano.primary = volcano[5];
|
||||
export var orange = ["#fff7e6", "#ffe7ba", "#ffd591", "#ffc069", "#ffa940", "#fa8c16", "#d46b08", "#ad4e00", "#873800", "#612500"];
|
||||
orange.primary = orange[5];
|
||||
export var gold = ["#fffbe6", "#fff1b8", "#ffe58f", "#ffd666", "#ffc53d", "#faad14", "#d48806", "#ad6800", "#874d00", "#613400"];
|
||||
gold.primary = gold[5];
|
||||
export var yellow = ["#feffe6", "#ffffb8", "#fffb8f", "#fff566", "#ffec3d", "#fadb14", "#d4b106", "#ad8b00", "#876800", "#614700"];
|
||||
yellow.primary = yellow[5];
|
||||
export var lime = ["#fcffe6", "#f4ffb8", "#eaff8f", "#d3f261", "#bae637", "#a0d911", "#7cb305", "#5b8c00", "#3f6600", "#254000"];
|
||||
lime.primary = lime[5];
|
||||
export var green = ["#f6ffed", "#d9f7be", "#b7eb8f", "#95de64", "#73d13d", "#52c41a", "#389e0d", "#237804", "#135200", "#092b00"];
|
||||
green.primary = green[5];
|
||||
export var cyan = ["#e6fffb", "#b5f5ec", "#87e8de", "#5cdbd3", "#36cfc9", "#13c2c2", "#08979c", "#006d75", "#00474f", "#002329"];
|
||||
cyan.primary = cyan[5];
|
||||
export var blue = ["#e6f4ff", "#bae0ff", "#91caff", "#69b1ff", "#4096ff", "#1677ff", "#0958d9", "#003eb3", "#002c8c", "#001d66"];
|
||||
blue.primary = blue[5];
|
||||
export var geekblue = ["#f0f5ff", "#d6e4ff", "#adc6ff", "#85a5ff", "#597ef7", "#2f54eb", "#1d39c4", "#10239e", "#061178", "#030852"];
|
||||
geekblue.primary = geekblue[5];
|
||||
export var purple = ["#f9f0ff", "#efdbff", "#d3adf7", "#b37feb", "#9254de", "#722ed1", "#531dab", "#391085", "#22075e", "#120338"];
|
||||
purple.primary = purple[5];
|
||||
export var magenta = ["#fff0f6", "#ffd6e7", "#ffadd2", "#ff85c0", "#f759ab", "#eb2f96", "#c41d7f", "#9e1068", "#780650", "#520339"];
|
||||
magenta.primary = magenta[5];
|
||||
export var grey = ["#a6a6a6", "#999999", "#8c8c8c", "#808080", "#737373", "#666666", "#404040", "#1a1a1a", "#000000", "#000000"];
|
||||
grey.primary = grey[5];
|
||||
export var gray = grey;
|
||||
export var presetPalettes = {
|
||||
red: red,
|
||||
volcano: volcano,
|
||||
orange: orange,
|
||||
gold: gold,
|
||||
yellow: yellow,
|
||||
lime: lime,
|
||||
green: green,
|
||||
cyan: cyan,
|
||||
blue: blue,
|
||||
geekblue: geekblue,
|
||||
purple: purple,
|
||||
magenta: magenta,
|
||||
grey: grey
|
||||
};
|
||||
export var redDark = ["#2a1215", "#431418", "#58181c", "#791a1f", "#a61d24", "#d32029", "#e84749", "#f37370", "#f89f9a", "#fac8c3"];
|
||||
redDark.primary = redDark[5];
|
||||
export var volcanoDark = ["#2b1611", "#441d12", "#592716", "#7c3118", "#aa3e19", "#d84a1b", "#e87040", "#f3956a", "#f8b692", "#fad4bc"];
|
||||
volcanoDark.primary = volcanoDark[5];
|
||||
export var orangeDark = ["#2b1d11", "#442a11", "#593815", "#7c4a15", "#aa6215", "#d87a16", "#e89a3c", "#f3b765", "#f8cf8d", "#fae3b7"];
|
||||
orangeDark.primary = orangeDark[5];
|
||||
export var goldDark = ["#2b2111", "#443111", "#594214", "#7c5914", "#aa7714", "#d89614", "#e8b339", "#f3cc62", "#f8df8b", "#faedb5"];
|
||||
goldDark.primary = goldDark[5];
|
||||
export var yellowDark = ["#2b2611", "#443b11", "#595014", "#7c6e14", "#aa9514", "#d8bd14", "#e8d639", "#f3ea62", "#f8f48b", "#fafab5"];
|
||||
yellowDark.primary = yellowDark[5];
|
||||
export var limeDark = ["#1f2611", "#2e3c10", "#3e4f13", "#536d13", "#6f9412", "#8bbb11", "#a9d134", "#c9e75d", "#e4f88b", "#f0fab5"];
|
||||
limeDark.primary = limeDark[5];
|
||||
export var greenDark = ["#162312", "#1d3712", "#274916", "#306317", "#3c8618", "#49aa19", "#6abe39", "#8fd460", "#b2e58b", "#d5f2bb"];
|
||||
greenDark.primary = greenDark[5];
|
||||
export var cyanDark = ["#112123", "#113536", "#144848", "#146262", "#138585", "#13a8a8", "#33bcb7", "#58d1c9", "#84e2d8", "#b2f1e8"];
|
||||
cyanDark.primary = cyanDark[5];
|
||||
export var blueDark = ["#111a2c", "#112545", "#15325b", "#15417e", "#1554ad", "#1668dc", "#3c89e8", "#65a9f3", "#8dc5f8", "#b7dcfa"];
|
||||
blueDark.primary = blueDark[5];
|
||||
export var geekblueDark = ["#131629", "#161d40", "#1c2755", "#203175", "#263ea0", "#2b4acb", "#5273e0", "#7f9ef3", "#a8c1f8", "#d2e0fa"];
|
||||
geekblueDark.primary = geekblueDark[5];
|
||||
export var purpleDark = ["#1a1325", "#24163a", "#301c4d", "#3e2069", "#51258f", "#642ab5", "#854eca", "#ab7ae0", "#cda8f0", "#ebd7fa"];
|
||||
purpleDark.primary = purpleDark[5];
|
||||
export var magentaDark = ["#291321", "#40162f", "#551c3b", "#75204f", "#a02669", "#cb2b83", "#e0529c", "#f37fb7", "#f8a8cc", "#fad2e3"];
|
||||
magentaDark.primary = magentaDark[5];
|
||||
export var greyDark = ["#151515", "#1f1f1f", "#2d2d2d", "#393939", "#494949", "#5a5a5a", "#6a6a6a", "#7b7b7b", "#888888", "#969696"];
|
||||
greyDark.primary = greyDark[5];
|
||||
export var presetDarkPalettes = {
|
||||
red: redDark,
|
||||
volcano: volcanoDark,
|
||||
orange: orangeDark,
|
||||
gold: goldDark,
|
||||
yellow: yellowDark,
|
||||
lime: limeDark,
|
||||
green: greenDark,
|
||||
cyan: cyanDark,
|
||||
blue: blueDark,
|
||||
geekblue: geekblueDark,
|
||||
purple: purpleDark,
|
||||
magenta: magentaDark,
|
||||
grey: greyDark
|
||||
};
|
||||
5
node_modules/@ant-design/colors/es/types.d.ts
generated
vendored
Normal file
5
node_modules/@ant-design/colors/es/types.d.ts
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
export type Palette = string[] & {
|
||||
primary?: string;
|
||||
};
|
||||
export type PalettesProps = Record<string, Palette>;
|
||||
//# sourceMappingURL=types.d.ts.map
|
||||
1
node_modules/@ant-design/colors/es/types.d.ts.map
generated
vendored
Normal file
1
node_modules/@ant-design/colors/es/types.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,OAAO,GAAG,MAAM,EAAE,GAAG;IAAE,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAEtD,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC"}
|
||||
1
node_modules/@ant-design/colors/es/types.js
generated
vendored
Normal file
1
node_modules/@ant-design/colors/es/types.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export {};
|
||||
8
node_modules/@ant-design/colors/lib/generate.d.ts
generated
vendored
Normal file
8
node_modules/@ant-design/colors/lib/generate.d.ts
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
import type { ColorInput } from '@ant-design/fast-color';
|
||||
interface Opts {
|
||||
theme?: 'dark' | 'default';
|
||||
backgroundColor?: string;
|
||||
}
|
||||
export default function generate(color: ColorInput, opts?: Opts): string[];
|
||||
export {};
|
||||
//# sourceMappingURL=generate.d.ts.map
|
||||
1
node_modules/@ant-design/colors/lib/generate.d.ts.map
generated
vendored
Normal file
1
node_modules/@ant-design/colors/lib/generate.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"generate.d.ts","sourceRoot":"","sources":["generate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAsFzD,UAAU,IAAI;IACZ,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,KAAK,EAAE,UAAU,EAAE,IAAI,GAAE,IAAS,GAAG,MAAM,EAAE,CA8B7E"}
|
||||
134
node_modules/@ant-design/colors/lib/generate.js
generated
vendored
Normal file
134
node_modules/@ant-design/colors/lib/generate.js
generated
vendored
Normal file
@@ -0,0 +1,134 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = generate;
|
||||
var _fastColor = require("@ant-design/fast-color");
|
||||
var hueStep = 2; // 色相阶梯
|
||||
var saturationStep = 0.16; // 饱和度阶梯,浅色部分
|
||||
var saturationStep2 = 0.05; // 饱和度阶梯,深色部分
|
||||
var brightnessStep1 = 0.05; // 亮度阶梯,浅色部分
|
||||
var brightnessStep2 = 0.15; // 亮度阶梯,深色部分
|
||||
var lightColorCount = 5; // 浅色数量,主色上
|
||||
var darkColorCount = 4; // 深色数量,主色下
|
||||
|
||||
// 暗色主题颜色映射关系表
|
||||
var darkColorMap = [{
|
||||
index: 7,
|
||||
amount: 15
|
||||
}, {
|
||||
index: 6,
|
||||
amount: 25
|
||||
}, {
|
||||
index: 5,
|
||||
amount: 30
|
||||
}, {
|
||||
index: 5,
|
||||
amount: 45
|
||||
}, {
|
||||
index: 5,
|
||||
amount: 65
|
||||
}, {
|
||||
index: 5,
|
||||
amount: 85
|
||||
}, {
|
||||
index: 4,
|
||||
amount: 90
|
||||
}, {
|
||||
index: 3,
|
||||
amount: 95
|
||||
}, {
|
||||
index: 2,
|
||||
amount: 97
|
||||
}, {
|
||||
index: 1,
|
||||
amount: 98
|
||||
}];
|
||||
function getHue(hsv, i, light) {
|
||||
var hue;
|
||||
// 根据色相不同,色相转向不同
|
||||
if (Math.round(hsv.h) >= 60 && Math.round(hsv.h) <= 240) {
|
||||
hue = light ? Math.round(hsv.h) - hueStep * i : Math.round(hsv.h) + hueStep * i;
|
||||
} else {
|
||||
hue = light ? Math.round(hsv.h) + hueStep * i : Math.round(hsv.h) - hueStep * i;
|
||||
}
|
||||
if (hue < 0) {
|
||||
hue += 360;
|
||||
} else if (hue >= 360) {
|
||||
hue -= 360;
|
||||
}
|
||||
return hue;
|
||||
}
|
||||
function getSaturation(hsv, i, light) {
|
||||
// grey color don't change saturation
|
||||
if (hsv.h === 0 && hsv.s === 0) {
|
||||
return hsv.s;
|
||||
}
|
||||
var saturation;
|
||||
if (light) {
|
||||
saturation = hsv.s - saturationStep * i;
|
||||
} else if (i === darkColorCount) {
|
||||
saturation = hsv.s + saturationStep;
|
||||
} else {
|
||||
saturation = hsv.s + saturationStep2 * i;
|
||||
}
|
||||
// 边界值修正
|
||||
if (saturation > 1) {
|
||||
saturation = 1;
|
||||
}
|
||||
// 第一格的 s 限制在 0.06-0.1 之间
|
||||
if (light && i === lightColorCount && saturation > 0.1) {
|
||||
saturation = 0.1;
|
||||
}
|
||||
if (saturation < 0.06) {
|
||||
saturation = 0.06;
|
||||
}
|
||||
return Math.round(saturation * 100) / 100;
|
||||
}
|
||||
function getValue(hsv, i, light) {
|
||||
var value;
|
||||
if (light) {
|
||||
value = hsv.v + brightnessStep1 * i;
|
||||
} else {
|
||||
value = hsv.v - brightnessStep2 * i;
|
||||
}
|
||||
// Clamp value between 0 and 1
|
||||
value = Math.max(0, Math.min(1, value));
|
||||
return Math.round(value * 100) / 100;
|
||||
}
|
||||
function generate(color) {
|
||||
var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
||||
var patterns = [];
|
||||
var pColor = new _fastColor.FastColor(color);
|
||||
var hsv = pColor.toHsv();
|
||||
for (var i = lightColorCount; i > 0; i -= 1) {
|
||||
var c = new _fastColor.FastColor({
|
||||
h: getHue(hsv, i, true),
|
||||
s: getSaturation(hsv, i, true),
|
||||
v: getValue(hsv, i, true)
|
||||
});
|
||||
patterns.push(c);
|
||||
}
|
||||
patterns.push(pColor);
|
||||
for (var _i = 1; _i <= darkColorCount; _i += 1) {
|
||||
var _c = new _fastColor.FastColor({
|
||||
h: getHue(hsv, _i),
|
||||
s: getSaturation(hsv, _i),
|
||||
v: getValue(hsv, _i)
|
||||
});
|
||||
patterns.push(_c);
|
||||
}
|
||||
|
||||
// dark theme patterns
|
||||
if (opts.theme === 'dark') {
|
||||
return darkColorMap.map(function (_ref) {
|
||||
var index = _ref.index,
|
||||
amount = _ref.amount;
|
||||
return new _fastColor.FastColor(opts.backgroundColor || '#141414').mix(patterns[index], amount).toHexString();
|
||||
});
|
||||
}
|
||||
return patterns.map(function (c) {
|
||||
return c.toHexString();
|
||||
});
|
||||
}
|
||||
4
node_modules/@ant-design/colors/lib/index.d.ts
generated
vendored
Normal file
4
node_modules/@ant-design/colors/lib/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
export { default as generate } from './generate';
|
||||
export * from './presets';
|
||||
export type * from './types';
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
1
node_modules/@ant-design/colors/lib/index.d.ts.map
generated
vendored
Normal file
1
node_modules/@ant-design/colors/lib/index.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,cAAc,WAAW,CAAA;AACzB,mBAAmB,SAAS,CAAA"}
|
||||
28
node_modules/@ant-design/colors/lib/index.js
generated
vendored
Normal file
28
node_modules/@ant-design/colors/lib/index.js
generated
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
var _exportNames = {
|
||||
generate: true
|
||||
};
|
||||
Object.defineProperty(exports, "generate", {
|
||||
enumerable: true,
|
||||
get: function get() {
|
||||
return _generate.default;
|
||||
}
|
||||
});
|
||||
var _generate = _interopRequireDefault(require("./generate"));
|
||||
var _presets = require("./presets");
|
||||
Object.keys(_presets).forEach(function (key) {
|
||||
if (key === "default" || key === "__esModule") return;
|
||||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
||||
if (key in exports && exports[key] === _presets[key]) return;
|
||||
Object.defineProperty(exports, key, {
|
||||
enumerable: true,
|
||||
get: function get() {
|
||||
return _presets[key];
|
||||
}
|
||||
});
|
||||
});
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||
32
node_modules/@ant-design/colors/lib/presets.d.ts
generated
vendored
Normal file
32
node_modules/@ant-design/colors/lib/presets.d.ts
generated
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
import type { Palette, PalettesProps } from './types';
|
||||
export declare const presetPrimaryColors: Record<string, string>;
|
||||
export declare const red: Palette;
|
||||
export declare const volcano: Palette;
|
||||
export declare const orange: Palette;
|
||||
export declare const gold: Palette;
|
||||
export declare const yellow: Palette;
|
||||
export declare const lime: Palette;
|
||||
export declare const green: Palette;
|
||||
export declare const cyan: Palette;
|
||||
export declare const blue: Palette;
|
||||
export declare const geekblue: Palette;
|
||||
export declare const purple: Palette;
|
||||
export declare const magenta: Palette;
|
||||
export declare const grey: Palette;
|
||||
export declare const gray: Palette;
|
||||
export declare const presetPalettes: PalettesProps;
|
||||
export declare const redDark: Palette;
|
||||
export declare const volcanoDark: Palette;
|
||||
export declare const orangeDark: Palette;
|
||||
export declare const goldDark: Palette;
|
||||
export declare const yellowDark: Palette;
|
||||
export declare const limeDark: Palette;
|
||||
export declare const greenDark: Palette;
|
||||
export declare const cyanDark: Palette;
|
||||
export declare const blueDark: Palette;
|
||||
export declare const geekblueDark: Palette;
|
||||
export declare const purpleDark: Palette;
|
||||
export declare const magentaDark: Palette;
|
||||
export declare const greyDark: Palette;
|
||||
export declare const presetDarkPalettes: PalettesProps;
|
||||
//# sourceMappingURL=presets.d.ts.map
|
||||
1
node_modules/@ant-design/colors/lib/presets.d.ts.map
generated
vendored
Normal file
1
node_modules/@ant-design/colors/lib/presets.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"presets.d.ts","sourceRoot":"","sources":["presets.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAEtD,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CActD,CAAC;AAEF,eAAO,MAAM,GAAG,EAAE,OAWjB,CAAC;AAGF,eAAO,MAAM,OAAO,EAAE,OAWrB,CAAC;AAGF,eAAO,MAAM,MAAM,EAAE,OAWpB,CAAC;AAGF,eAAO,MAAM,IAAI,EAAE,OAWlB,CAAC;AAGF,eAAO,MAAM,MAAM,EAAE,OAWpB,CAAC;AAGF,eAAO,MAAM,IAAI,EAAE,OAWlB,CAAC;AAGF,eAAO,MAAM,KAAK,EAAE,OAWnB,CAAC;AAGF,eAAO,MAAM,IAAI,EAAE,OAWlB,CAAC;AAGF,eAAO,MAAM,IAAI,EAAE,OAWlB,CAAC;AAGF,eAAO,MAAM,QAAQ,EAAE,OAWtB,CAAC;AAGF,eAAO,MAAM,MAAM,EAAE,OAWpB,CAAC;AAGF,eAAO,MAAM,OAAO,EAAE,OAWrB,CAAC;AAGF,eAAO,MAAM,IAAI,EAAE,OAWlB,CAAC;AAGF,eAAO,MAAM,IAAI,SAAO,CAAC;AAEzB,eAAO,MAAM,cAAc,EAAE,aAc5B,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,OAWrB,CAAC;AAGF,eAAO,MAAM,WAAW,EAAE,OAWzB,CAAC;AAGF,eAAO,MAAM,UAAU,EAAE,OAWxB,CAAC;AAGF,eAAO,MAAM,QAAQ,EAAE,OAWtB,CAAC;AAGF,eAAO,MAAM,UAAU,EAAE,OAWxB,CAAC;AAGF,eAAO,MAAM,QAAQ,EAAE,OAWtB,CAAC;AAGF,eAAO,MAAM,SAAS,EAAE,OAWvB,CAAC;AAGF,eAAO,MAAM,QAAQ,EAAE,OAWtB,CAAC;AAGF,eAAO,MAAM,QAAQ,EAAE,OAWtB,CAAC;AAGF,eAAO,MAAM,YAAY,EAAE,OAW1B,CAAC;AAGF,eAAO,MAAM,UAAU,EAAE,OAWxB,CAAC;AAGF,eAAO,MAAM,WAAW,EAAE,OAWzB,CAAC;AAGF,eAAO,MAAM,QAAQ,EAAE,OAWtB,CAAC;AAGF,eAAO,MAAM,kBAAkB,EAAE,aAchC,CAAC"}
|
||||
106
node_modules/@ant-design/colors/lib/presets.js
generated
vendored
Normal file
106
node_modules/@ant-design/colors/lib/presets.js
generated
vendored
Normal file
@@ -0,0 +1,106 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.yellowDark = exports.yellow = exports.volcanoDark = exports.volcano = exports.redDark = exports.red = exports.purpleDark = exports.purple = exports.presetPrimaryColors = exports.presetPalettes = exports.presetDarkPalettes = exports.orangeDark = exports.orange = exports.magentaDark = exports.magenta = exports.limeDark = exports.lime = exports.greyDark = exports.grey = exports.greenDark = exports.green = exports.gray = exports.goldDark = exports.gold = exports.geekblueDark = exports.geekblue = exports.cyanDark = exports.cyan = exports.blueDark = exports.blue = void 0;
|
||||
// Generated by script. Do NOT modify!
|
||||
|
||||
var presetPrimaryColors = exports.presetPrimaryColors = {
|
||||
"red": "#F5222D",
|
||||
"volcano": "#FA541C",
|
||||
"orange": "#FA8C16",
|
||||
"gold": "#FAAD14",
|
||||
"yellow": "#FADB14",
|
||||
"lime": "#A0D911",
|
||||
"green": "#52C41A",
|
||||
"cyan": "#13C2C2",
|
||||
"blue": "#1677FF",
|
||||
"geekblue": "#2F54EB",
|
||||
"purple": "#722ED1",
|
||||
"magenta": "#EB2F96",
|
||||
"grey": "#666666"
|
||||
};
|
||||
var red = exports.red = ["#fff1f0", "#ffccc7", "#ffa39e", "#ff7875", "#ff4d4f", "#f5222d", "#cf1322", "#a8071a", "#820014", "#5c0011"];
|
||||
red.primary = red[5];
|
||||
var volcano = exports.volcano = ["#fff2e8", "#ffd8bf", "#ffbb96", "#ff9c6e", "#ff7a45", "#fa541c", "#d4380d", "#ad2102", "#871400", "#610b00"];
|
||||
volcano.primary = volcano[5];
|
||||
var orange = exports.orange = ["#fff7e6", "#ffe7ba", "#ffd591", "#ffc069", "#ffa940", "#fa8c16", "#d46b08", "#ad4e00", "#873800", "#612500"];
|
||||
orange.primary = orange[5];
|
||||
var gold = exports.gold = ["#fffbe6", "#fff1b8", "#ffe58f", "#ffd666", "#ffc53d", "#faad14", "#d48806", "#ad6800", "#874d00", "#613400"];
|
||||
gold.primary = gold[5];
|
||||
var yellow = exports.yellow = ["#feffe6", "#ffffb8", "#fffb8f", "#fff566", "#ffec3d", "#fadb14", "#d4b106", "#ad8b00", "#876800", "#614700"];
|
||||
yellow.primary = yellow[5];
|
||||
var lime = exports.lime = ["#fcffe6", "#f4ffb8", "#eaff8f", "#d3f261", "#bae637", "#a0d911", "#7cb305", "#5b8c00", "#3f6600", "#254000"];
|
||||
lime.primary = lime[5];
|
||||
var green = exports.green = ["#f6ffed", "#d9f7be", "#b7eb8f", "#95de64", "#73d13d", "#52c41a", "#389e0d", "#237804", "#135200", "#092b00"];
|
||||
green.primary = green[5];
|
||||
var cyan = exports.cyan = ["#e6fffb", "#b5f5ec", "#87e8de", "#5cdbd3", "#36cfc9", "#13c2c2", "#08979c", "#006d75", "#00474f", "#002329"];
|
||||
cyan.primary = cyan[5];
|
||||
var blue = exports.blue = ["#e6f4ff", "#bae0ff", "#91caff", "#69b1ff", "#4096ff", "#1677ff", "#0958d9", "#003eb3", "#002c8c", "#001d66"];
|
||||
blue.primary = blue[5];
|
||||
var geekblue = exports.geekblue = ["#f0f5ff", "#d6e4ff", "#adc6ff", "#85a5ff", "#597ef7", "#2f54eb", "#1d39c4", "#10239e", "#061178", "#030852"];
|
||||
geekblue.primary = geekblue[5];
|
||||
var purple = exports.purple = ["#f9f0ff", "#efdbff", "#d3adf7", "#b37feb", "#9254de", "#722ed1", "#531dab", "#391085", "#22075e", "#120338"];
|
||||
purple.primary = purple[5];
|
||||
var magenta = exports.magenta = ["#fff0f6", "#ffd6e7", "#ffadd2", "#ff85c0", "#f759ab", "#eb2f96", "#c41d7f", "#9e1068", "#780650", "#520339"];
|
||||
magenta.primary = magenta[5];
|
||||
var grey = exports.grey = ["#a6a6a6", "#999999", "#8c8c8c", "#808080", "#737373", "#666666", "#404040", "#1a1a1a", "#000000", "#000000"];
|
||||
grey.primary = grey[5];
|
||||
var gray = exports.gray = grey;
|
||||
var presetPalettes = exports.presetPalettes = {
|
||||
red: red,
|
||||
volcano: volcano,
|
||||
orange: orange,
|
||||
gold: gold,
|
||||
yellow: yellow,
|
||||
lime: lime,
|
||||
green: green,
|
||||
cyan: cyan,
|
||||
blue: blue,
|
||||
geekblue: geekblue,
|
||||
purple: purple,
|
||||
magenta: magenta,
|
||||
grey: grey
|
||||
};
|
||||
var redDark = exports.redDark = ["#2a1215", "#431418", "#58181c", "#791a1f", "#a61d24", "#d32029", "#e84749", "#f37370", "#f89f9a", "#fac8c3"];
|
||||
redDark.primary = redDark[5];
|
||||
var volcanoDark = exports.volcanoDark = ["#2b1611", "#441d12", "#592716", "#7c3118", "#aa3e19", "#d84a1b", "#e87040", "#f3956a", "#f8b692", "#fad4bc"];
|
||||
volcanoDark.primary = volcanoDark[5];
|
||||
var orangeDark = exports.orangeDark = ["#2b1d11", "#442a11", "#593815", "#7c4a15", "#aa6215", "#d87a16", "#e89a3c", "#f3b765", "#f8cf8d", "#fae3b7"];
|
||||
orangeDark.primary = orangeDark[5];
|
||||
var goldDark = exports.goldDark = ["#2b2111", "#443111", "#594214", "#7c5914", "#aa7714", "#d89614", "#e8b339", "#f3cc62", "#f8df8b", "#faedb5"];
|
||||
goldDark.primary = goldDark[5];
|
||||
var yellowDark = exports.yellowDark = ["#2b2611", "#443b11", "#595014", "#7c6e14", "#aa9514", "#d8bd14", "#e8d639", "#f3ea62", "#f8f48b", "#fafab5"];
|
||||
yellowDark.primary = yellowDark[5];
|
||||
var limeDark = exports.limeDark = ["#1f2611", "#2e3c10", "#3e4f13", "#536d13", "#6f9412", "#8bbb11", "#a9d134", "#c9e75d", "#e4f88b", "#f0fab5"];
|
||||
limeDark.primary = limeDark[5];
|
||||
var greenDark = exports.greenDark = ["#162312", "#1d3712", "#274916", "#306317", "#3c8618", "#49aa19", "#6abe39", "#8fd460", "#b2e58b", "#d5f2bb"];
|
||||
greenDark.primary = greenDark[5];
|
||||
var cyanDark = exports.cyanDark = ["#112123", "#113536", "#144848", "#146262", "#138585", "#13a8a8", "#33bcb7", "#58d1c9", "#84e2d8", "#b2f1e8"];
|
||||
cyanDark.primary = cyanDark[5];
|
||||
var blueDark = exports.blueDark = ["#111a2c", "#112545", "#15325b", "#15417e", "#1554ad", "#1668dc", "#3c89e8", "#65a9f3", "#8dc5f8", "#b7dcfa"];
|
||||
blueDark.primary = blueDark[5];
|
||||
var geekblueDark = exports.geekblueDark = ["#131629", "#161d40", "#1c2755", "#203175", "#263ea0", "#2b4acb", "#5273e0", "#7f9ef3", "#a8c1f8", "#d2e0fa"];
|
||||
geekblueDark.primary = geekblueDark[5];
|
||||
var purpleDark = exports.purpleDark = ["#1a1325", "#24163a", "#301c4d", "#3e2069", "#51258f", "#642ab5", "#854eca", "#ab7ae0", "#cda8f0", "#ebd7fa"];
|
||||
purpleDark.primary = purpleDark[5];
|
||||
var magentaDark = exports.magentaDark = ["#291321", "#40162f", "#551c3b", "#75204f", "#a02669", "#cb2b83", "#e0529c", "#f37fb7", "#f8a8cc", "#fad2e3"];
|
||||
magentaDark.primary = magentaDark[5];
|
||||
var greyDark = exports.greyDark = ["#151515", "#1f1f1f", "#2d2d2d", "#393939", "#494949", "#5a5a5a", "#6a6a6a", "#7b7b7b", "#888888", "#969696"];
|
||||
greyDark.primary = greyDark[5];
|
||||
var presetDarkPalettes = exports.presetDarkPalettes = {
|
||||
red: redDark,
|
||||
volcano: volcanoDark,
|
||||
orange: orangeDark,
|
||||
gold: goldDark,
|
||||
yellow: yellowDark,
|
||||
lime: limeDark,
|
||||
green: greenDark,
|
||||
cyan: cyanDark,
|
||||
blue: blueDark,
|
||||
geekblue: geekblueDark,
|
||||
purple: purpleDark,
|
||||
magenta: magentaDark,
|
||||
grey: greyDark
|
||||
};
|
||||
5
node_modules/@ant-design/colors/lib/types.d.ts
generated
vendored
Normal file
5
node_modules/@ant-design/colors/lib/types.d.ts
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
export type Palette = string[] & {
|
||||
primary?: string;
|
||||
};
|
||||
export type PalettesProps = Record<string, Palette>;
|
||||
//# sourceMappingURL=types.d.ts.map
|
||||
1
node_modules/@ant-design/colors/lib/types.d.ts.map
generated
vendored
Normal file
1
node_modules/@ant-design/colors/lib/types.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,OAAO,GAAG,MAAM,EAAE,GAAG;IAAE,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAEtD,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC"}
|
||||
5
node_modules/@ant-design/colors/lib/types.js
generated
vendored
Normal file
5
node_modules/@ant-design/colors/lib/types.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
50
node_modules/@ant-design/colors/package.json
generated
vendored
Normal file
50
node_modules/@ant-design/colors/package.json
generated
vendored
Normal file
@@ -0,0 +1,50 @@
|
||||
{
|
||||
"name": "@ant-design/colors",
|
||||
"version": "7.2.1",
|
||||
"description": "Color palettes calculator of Ant Design",
|
||||
"homepage": "https://github.com/ant-design/ant-design-colors#readme",
|
||||
"bugs": {
|
||||
"url": "https://github.com/ant-design/ant-design-colors/issues"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/ant-design/ant-design-colors.git"
|
||||
},
|
||||
"license": "MIT",
|
||||
"author": "afc163 <afc163@gmail.com>",
|
||||
"main": "./lib/index",
|
||||
"module": "./es/index",
|
||||
"typings": "es/index.d.ts",
|
||||
"files": [
|
||||
"lib",
|
||||
"es"
|
||||
],
|
||||
"scripts": {
|
||||
"bench": "vitest bench",
|
||||
"coverage": "npm test -- --coverage",
|
||||
"compile": "father build",
|
||||
"lint": "eslint src --ext .ts",
|
||||
"prepare": "tsx generate-presets",
|
||||
"prepublishOnly": "npm run compile && np --no-cleanup --no-publish --branch=antd-5.x",
|
||||
"prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"",
|
||||
"test": "jest"
|
||||
},
|
||||
"dependencies": {
|
||||
"@ant-design/fast-color": "^2.0.6"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@ctrl/tinycolor": "^3.6.1",
|
||||
"@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.1",
|
||||
"typescript": "~5.8.2",
|
||||
"vitest": "^1.6.0"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user