Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@salutejs/core-themes

Package Overview
Dependencies
Maintainers
0
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@salutejs/core-themes - npm Package Compare versions

Comparing version 0.15.0-canary.1487.11365064527.0 to 0.15.0-canary.1488.11387414081.0

build/cjs/creators/createViewContainerTokens.d.ts

1

build/cjs/creators/index.d.ts

@@ -6,1 +6,2 @@ export { createColorTokens } from './createColorTokens';

export { createTypographyTokens } from './createTypographyTokens';
export { createViewContainerTokens } from './createViewContainerTokens';

4

build/cjs/creators/index.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createTypographyTokens = exports.createShapeTokens = exports.createShadowTokens = exports.createGradientTokens = exports.createColorTokens = void 0;
exports.createViewContainerTokens = exports.createTypographyTokens = exports.createShapeTokens = exports.createShadowTokens = exports.createGradientTokens = exports.createColorTokens = void 0;
var createColorTokens_1 = require("./createColorTokens");

@@ -14,2 +14,4 @@ Object.defineProperty(exports, "createColorTokens", { enumerable: true, get: function () { return createColorTokens_1.createColorTokens; } });

Object.defineProperty(exports, "createTypographyTokens", { enumerable: true, get: function () { return createTypographyTokens_1.createTypographyTokens; } });
var createViewContainerTokens_1 = require("./createViewContainerTokens");
Object.defineProperty(exports, "createViewContainerTokens", { enumerable: true, get: function () { return createViewContainerTokens_1.createViewContainerTokens; } });
//# sourceMappingURL=index.js.map

@@ -48,3 +48,3 @@ "use strict";

var generate = function (themes) { return __awaiter(void 0, void 0, void 0, function () {
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;
var themeDir, isJS, _i, themes_1, theme, themeSource, meta, variations, metaGrouped, colorCSSVariables, colorJSVariables, gradientCSSVariables, gradientJSVariables, shapeCSSVariables, shapeJSVariables, shadowCSSVariables, shadowJSVariables, typographyCSSVariables, typographyJSVariables, viewContainerVariables, cssVariables, themeDefault, metaGroupedDefault, colorDefaultJSVariables, gradientDefaultJSVariables, shapeDefaultJSVariables, shadowDefaultJSVariables, typographyDefaultJSVariables;
return __generator(this, function (_a) {

@@ -76,2 +76,3 @@ switch (_a.label) {

typographyJSVariables = creators_1.createTypographyTokens(variations.typography, variations.fontFamily, metaGrouped.typography, true);
viewContainerVariables = creators_1.createViewContainerTokens(metaGrouped.color, metaGrouped.gradient);
cssVariables = {

@@ -102,2 +103,3 @@ dark: {

typographyTokens: typographyJSVariables.dark,
viewContainerTokens: viewContainerVariables,
});

@@ -104,0 +106,0 @@ _a.label = 3;

@@ -23,4 +23,4 @@ "use strict";

var lightContent = [
utils_1.getSelector(themeContent.dark.colorTokens, lightSelector),
utils_1.getSelector(themeContent.dark.gradientTokens, lightSelector),
utils_1.getSelector(themeContent.light.colorTokens, lightSelector),
utils_1.getSelector(themeContent.light.gradientTokens, lightSelector),
].join('\n');

@@ -27,0 +27,0 @@ var breakpointContent = [

@@ -21,2 +21,3 @@ "use strict";

themeContent.typographyTokens.screenS,
themeContent.viewContainerTokens,
].join('\n');

@@ -23,0 +24,0 @@ plasma_tokens_utils_1.writeGeneratedToFS(themeDir, [generateFile_1.generateCommonFile('index', 'ts', content)]);

@@ -43,2 +43,3 @@ export declare type MetaGrouped = Partial<Record<TokenType['type'], Array<TokenType>>>;

};
viewContainerTokens?: string;
}

@@ -45,0 +46,0 @@ export interface ThemeContent {

@@ -6,2 +6,3 @@ export { createColorTokens } from './createColorTokens';

export { createTypographyTokens } from './createTypographyTokens';
export { createViewContainerTokens } from './createViewContainerTokens';
//# sourceMappingURL=index.js.map

@@ -38,7 +38,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

import fs from 'fs';
import { createColorTokens, createGradientTokens, createShadowTokens, createShapeTokens, createTypographyTokens, } from './creators';
import { createColorTokens, createGradientTokens, createShadowTokens, createShapeTokens, createTypographyTokens, createViewContainerTokens, } from './creators';
import { generateCSSThemes, generateCSSModuleThemes, generateDefaultTokens, generateRootIndex, generateThemes, generateTokens, } from './generators';
import { getMetaGrouped, readTheme, fallbackCreateColorTokensWrapper } from './utils';
export var generate = function (themes) { return __awaiter(void 0, void 0, void 0, function () {
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;
var themeDir, isJS, _i, themes_1, theme, themeSource, meta, variations, metaGrouped, colorCSSVariables, colorJSVariables, gradientCSSVariables, gradientJSVariables, shapeCSSVariables, shapeJSVariables, shadowCSSVariables, shadowJSVariables, typographyCSSVariables, typographyJSVariables, viewContainerVariables, cssVariables, themeDefault, metaGroupedDefault, colorDefaultJSVariables, gradientDefaultJSVariables, shapeDefaultJSVariables, shadowDefaultJSVariables, typographyDefaultJSVariables;
return __generator(this, function (_a) {

@@ -70,2 +70,3 @@ switch (_a.label) {

typographyJSVariables = createTypographyTokens(variations.typography, variations.fontFamily, metaGrouped.typography, true);
viewContainerVariables = createViewContainerTokens(metaGrouped.color, metaGrouped.gradient);
cssVariables = {

@@ -96,2 +97,3 @@ dark: {

typographyTokens: typographyJSVariables.dark,
viewContainerTokens: viewContainerVariables,
});

@@ -98,0 +100,0 @@ _a.label = 3;

@@ -17,4 +17,4 @@ import path from 'path';

var lightContent = [
getSelector(themeContent.dark.colorTokens, lightSelector),
getSelector(themeContent.dark.gradientTokens, lightSelector),
getSelector(themeContent.light.colorTokens, lightSelector),
getSelector(themeContent.light.gradientTokens, lightSelector),
].join('\n');

@@ -21,0 +21,0 @@ var breakpointContent = [

@@ -15,2 +15,3 @@ import path from 'path';

themeContent.typographyTokens.screenS,
themeContent.viewContainerTokens,
].join('\n');

@@ -17,0 +18,0 @@ writeGeneratedToFS(themeDir, [generateCommonFile('index', 'ts', content)]);

{
"name": "@salutejs/core-themes",
"version": "0.15.0-canary.1487.11365064527.0",
"version": "0.15.0-canary.1488.11387414081.0",
"description": "Core-themes package",

@@ -25,3 +25,3 @@ "author": "Salute Frontend Team <salute.developers@gmail.com>",

"devDependencies": {
"@salutejs/plasma-tokens-utils": "0.45.0-canary.1487.11365064527.0",
"@salutejs/plasma-tokens-utils": "0.44.0",
"@types/node": "16.7.13",

@@ -38,3 +38,3 @@ "jszip": "3.10.1",

"sideEffects": false,
"gitHead": "bea63a56721a06c754251a0163761eb56e1a2d65"
"gitHead": "ec5fc577f54f08798fb54a656f568539470563e8"
}

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc