pro-design-vue 1.2.5 → 1.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.full.js +18 -4
- package/dist/index.full.min.js +7 -7
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +7 -7
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +18 -4
- package/es/packages/components/config-provider/src/useCssVariables.mjs +1 -0
- package/es/packages/components/config-provider/src/useCssVariables.mjs.map +1 -1
- package/es/packages/utils/color/generator.mjs +15 -2
- package/es/packages/utils/color/generator.mjs.map +1 -1
- package/es/utils/color/generator.d.ts +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/packages/components/config-provider/src/useCssVariables.js +1 -0
- package/lib/packages/components/config-provider/src/useCssVariables.js.map +1 -1
- package/lib/packages/utils/color/generator.js +15 -2
- package/lib/packages/utils/color/generator.js.map +1 -1
- package/lib/utils/color/generator.d.ts +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +1 -1
package/dist/index.full.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Pro Design Vue v1.2.
|
|
1
|
+
/*! Pro Design Vue v1.2.6 */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('ant-design-vue'), require('vue'), require('ant-design-vue/es/locale/zh_CN.js')) :
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
const DEFAULT_NAMESPACE = "pro";
|
|
33
33
|
const DEFAULT_LOCALE = "zh-CN";
|
|
34
34
|
|
|
35
|
-
const version$1 = "1.2.
|
|
35
|
+
const version$1 = "1.2.6";
|
|
36
36
|
|
|
37
37
|
const makeInstaller = (components = []) => {
|
|
38
38
|
const install = (app) => {
|
|
@@ -3366,7 +3366,20 @@
|
|
|
3366
3366
|
return colors;
|
|
3367
3367
|
}
|
|
3368
3368
|
|
|
3369
|
-
|
|
3369
|
+
const darkColorKeyMap = {
|
|
3370
|
+
50: "950",
|
|
3371
|
+
100: "900",
|
|
3372
|
+
200: "800",
|
|
3373
|
+
300: "700",
|
|
3374
|
+
400: "600",
|
|
3375
|
+
500: "500",
|
|
3376
|
+
600: "400",
|
|
3377
|
+
700: "300",
|
|
3378
|
+
800: "200",
|
|
3379
|
+
900: "100",
|
|
3380
|
+
950: "50"
|
|
3381
|
+
};
|
|
3382
|
+
function generatorColorVariables(colorItems, dark, namespace) {
|
|
3370
3383
|
const colorVariables = {};
|
|
3371
3384
|
colorItems.forEach(({ alias, color, name }) => {
|
|
3372
3385
|
if (color) {
|
|
@@ -3374,7 +3387,7 @@
|
|
|
3374
3387
|
let mainColor = colorsMap["500"];
|
|
3375
3388
|
const colorKeys = Object.keys(colorsMap);
|
|
3376
3389
|
colorKeys.forEach((key) => {
|
|
3377
|
-
const colorValue = colorsMap[key];
|
|
3390
|
+
const colorValue = !dark ? colorsMap[key] : colorsMap[darkColorKeyMap[key]];
|
|
3378
3391
|
if (colorValue) {
|
|
3379
3392
|
const hslColor = convertToHslCssVar(colorValue);
|
|
3380
3393
|
colorVariables[`--${namespace}-${name}-${key}`] = hslColor;
|
|
@@ -8307,6 +8320,7 @@
|
|
|
8307
8320
|
const oldColor = (oldToken == null ? void 0 : oldToken[item.key]) || defaultColor;
|
|
8308
8321
|
return newToken[item.key] !== defaultColor || newToken[item.key] === defaultColor && oldColor !== defaultColor;
|
|
8309
8322
|
}),
|
|
8323
|
+
dark,
|
|
8310
8324
|
DEFAULT_NAMESPACE
|
|
8311
8325
|
);
|
|
8312
8326
|
const colorMappings = {
|