@blueprintjs/colors
Advanced tools
Comparing version 4.0.0-beta.2 to 4.0.0-beta.3
@@ -1,5 +0,12 @@ | ||
/** | ||
* Blueprint 4.x "modernized" colors | ||
*/ | ||
export declare const Colors: { | ||
/** @deprecated use CERULEAN1 */ | ||
COBALT1: string; | ||
/** @deprecated use CERULEAN2 */ | ||
COBALT2: string; | ||
/** @deprecated use CERULEAN3 */ | ||
COBALT3: string; | ||
/** @deprecated use CERULEAN4 */ | ||
COBALT4: string; | ||
/** @deprecated use CERULEAN5 */ | ||
COBALT5: string; | ||
CERULEAN1: string; | ||
@@ -6,0 +13,0 @@ CERULEAN2: string; |
@@ -112,6 +112,22 @@ "use strict"; | ||
}; | ||
/* eslint-disable deprecation/deprecation */ | ||
/** | ||
* Blueprint 4.x "modernized" colors | ||
* Blueprint v3.x legacy color names, provided as aliases for their new names in v4.x. | ||
* These symbols allow references to the "cobalt" identifiers (not color hex values) | ||
* to continue working with the new color palette. They will be removed in v5.0. | ||
*/ | ||
exports.Colors = Object.assign(Object.assign(Object.assign({}, grayScale), coreColors), extendedColors); | ||
const legacyColors = { | ||
/** @deprecated use CERULEAN1 */ | ||
COBALT1: extendedColors.CERULEAN1, | ||
/** @deprecated use CERULEAN2 */ | ||
COBALT2: extendedColors.CERULEAN2, | ||
/** @deprecated use CERULEAN3 */ | ||
COBALT3: extendedColors.CERULEAN3, | ||
/** @deprecated use CERULEAN4 */ | ||
COBALT4: extendedColors.CERULEAN4, | ||
/** @deprecated use CERULEAN5 */ | ||
COBALT5: extendedColors.CERULEAN5, | ||
}; | ||
/* eslint-enable deprecation/deprecation */ | ||
exports.Colors = Object.assign(Object.assign(Object.assign(Object.assign({}, grayScale), coreColors), extendedColors), legacyColors); | ||
//# sourceMappingURL=colors.js.map |
{ | ||
"name": "@blueprintjs/colors", | ||
"version": "4.0.0-beta.2", | ||
"version": "4.0.0-beta.3", | ||
"description": "Blueprint color definitions", | ||
@@ -17,3 +17,2 @@ "main": "lib/index.js", | ||
"lint-fix": "es-lint --fix && sass-lint --fix", | ||
"test": "mocha test/index.js", | ||
"verify": "npm-run-all compile -p dist lint" | ||
@@ -20,0 +19,0 @@ }, |
@@ -129,5 +129,22 @@ /* | ||
/* eslint-disable deprecation/deprecation */ | ||
/** | ||
* Blueprint 4.x "modernized" colors | ||
* Blueprint v3.x legacy color names, provided as aliases for their new names in v4.x. | ||
* These symbols allow references to the "cobalt" identifiers (not color hex values) | ||
* to continue working with the new color palette. They will be removed in v5.0. | ||
*/ | ||
const legacyColors = { | ||
/** @deprecated use CERULEAN1 */ | ||
COBALT1: extendedColors.CERULEAN1, | ||
/** @deprecated use CERULEAN2 */ | ||
COBALT2: extendedColors.CERULEAN2, | ||
/** @deprecated use CERULEAN3 */ | ||
COBALT3: extendedColors.CERULEAN3, | ||
/** @deprecated use CERULEAN4 */ | ||
COBALT4: extendedColors.CERULEAN4, | ||
/** @deprecated use CERULEAN5 */ | ||
COBALT5: extendedColors.CERULEAN5, | ||
}; | ||
/* eslint-enable deprecation/deprecation */ | ||
export const Colors = { | ||
@@ -137,2 +154,3 @@ ...grayScale, | ||
...extendedColors, | ||
...legacyColors, | ||
}; |
Sorry, the diff of this file is not supported yet
41923
722