@salutejs/core-themes
Advanced tools
Comparing version 0.12.0 to 0.12.1-canary.1362.10420936930.0
@@ -65,4 +65,4 @@ "use strict"; | ||
metaGrouped = utils_1.getMetaGrouped(themeSource.meta); | ||
colorCSSVariables = creators_1.createColorTokens(variations.color, metaGrouped.color); | ||
colorJSVariables = creators_1.createColorTokens(variations.color, metaGrouped.color, isJS); | ||
colorCSSVariables = utils_1.fallbackCreateColorTokensWrapper(theme.name, variations.color, metaGrouped.color); | ||
colorJSVariables = utils_1.fallbackCreateColorTokensWrapper(theme.name, variations.color, metaGrouped.color, isJS); | ||
gradientCSSVariables = creators_1.createGradientTokens(variations.gradient, metaGrouped.gradient); | ||
@@ -69,0 +69,0 @@ gradientJSVariables = creators_1.createGradientTokens(variations.gradient, metaGrouped.gradient, isJS); |
export * from './meta'; | ||
export * from './theme'; | ||
export * from './other'; | ||
export * from './fallbackTokens'; |
@@ -16,2 +16,3 @@ "use strict"; | ||
__exportStar(require("./other"), exports); | ||
__exportStar(require("./fallbackTokens"), exports); | ||
//# sourceMappingURL=index.js.map |
export declare const kebabToCamel: (str: string) => string; | ||
export declare const camelToKebab: (str: string) => string; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.kebabToCamel = void 0; | ||
exports.camelToKebab = exports.kebabToCamel = void 0; | ||
var kebabToCamel = function (str) { | ||
@@ -8,2 +8,4 @@ return str.replace(/-([a-z])/g, function (_, group) { return group.toUpperCase(); }).replace(/^./, function (char) { return char.toLowerCase(); }); | ||
exports.kebabToCamel = kebabToCamel; | ||
var camelToKebab = function (str) { return str.replace(/[A-Z]/g, function (match) { return "-" + match.toLowerCase(); }); }; | ||
exports.camelToKebab = camelToKebab; | ||
//# sourceMappingURL=other.js.map |
@@ -40,3 +40,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
import { generateCSSThemes, generateCSSModuleThemes, generateDefaultTokens, generateRootIndex, generateThemes, generateTokens, } from './generators'; | ||
import { getMetaGrouped, readTheme } from './utils'; | ||
import { getMetaGrouped, readTheme, fallbackCreateColorTokensWrapper } from './utils'; | ||
export var generate = function (themes) { return __awaiter(void 0, void 0, void 0, function () { | ||
@@ -60,4 +60,4 @@ var themeDir, isJS, _i, themes_1, theme, themeSource, meta, variations, metaGrouped, colorCSSVariables, colorJSVariables, gradientCSSVariables, gradientJSVariables, shapeCSSVariables, shapeJSVariables, shadowCSSVariables, shadowJSVariables, typographyCSSVariables, typographyJSVariables, cssVariables, themeDefault, metaGroupedDefault, colorDefaultJSVariables, gradientDefaultJSVariables, shapeDefaultJSVariables, shadowDefaultJSVariables, typographyDefaultJSVariables; | ||
metaGrouped = getMetaGrouped(themeSource.meta); | ||
colorCSSVariables = createColorTokens(variations.color, metaGrouped.color); | ||
colorJSVariables = createColorTokens(variations.color, metaGrouped.color, isJS); | ||
colorCSSVariables = fallbackCreateColorTokensWrapper(theme.name, variations.color, metaGrouped.color); | ||
colorJSVariables = fallbackCreateColorTokensWrapper(theme.name, variations.color, metaGrouped.color, isJS); | ||
gradientCSSVariables = createGradientTokens(variations.gradient, metaGrouped.gradient); | ||
@@ -64,0 +64,0 @@ gradientJSVariables = createGradientTokens(variations.gradient, metaGrouped.gradient, isJS); |
export * from './meta'; | ||
export * from './theme'; | ||
export * from './other'; | ||
export * from './fallbackTokens'; | ||
//# sourceMappingURL=index.js.map |
export var kebabToCamel = function (str) { | ||
return str.replace(/-([a-z])/g, function (_, group) { return group.toUpperCase(); }).replace(/^./, function (char) { return char.toLowerCase(); }); | ||
}; | ||
export var camelToKebab = function (str) { return str.replace(/[A-Z]/g, function (match) { return "-" + match.toLowerCase(); }); }; | ||
//# sourceMappingURL=other.js.map |
{ | ||
"name": "@salutejs/core-themes", | ||
"version": "0.12.0", | ||
"version": "0.12.1-canary.1362.10420936930.0", | ||
"description": "Core-themes package", | ||
@@ -37,3 +37,3 @@ "author": "Salute Frontend Team <salute.developers@gmail.com>", | ||
"sideEffects": false, | ||
"gitHead": "a71a5e514e3332d1393a4a43821e2f579abf23f1" | ||
"gitHead": "db0e6d80dc43898df7a024bb1a858d3a2bb449e6" | ||
} |
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
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
157655
118
1914