@salutejs/plasma-typo
Advanced tools
Comparing version 0.39.1-canary.870.6969384195.0 to 0.39.1-canary.874.7015369998.0
@@ -521,3 +521,3 @@ "use strict"; | ||
}; | ||
exports.typoCommonProps = function (displayFontFamily, textFontFamily) { return ({ | ||
var typoCommonProps = function (displayFontFamily, textFontFamily) { return ({ | ||
'dspl-l': { | ||
@@ -694,2 +694,3 @@ 'font-family': displayFontFamily, | ||
}); }; | ||
exports.typoCommonProps = typoCommonProps; | ||
var displayFontFamily = 'SB Sans Display'; | ||
@@ -696,0 +697,0 @@ var textFontFamily = 'SB Sans Text'; |
@@ -349,3 +349,3 @@ "use strict"; | ||
}; | ||
exports.typoCommonProps = function (displayFontFamily, textFontFamily) { return ({ | ||
var typoCommonProps = function (displayFontFamily, textFontFamily) { return ({ | ||
'dspl-l': { | ||
@@ -522,2 +522,3 @@ 'font-family': displayFontFamily, | ||
}); }; | ||
exports.typoCommonProps = typoCommonProps; | ||
var displayFontFamily = 'SB Sans Display'; | ||
@@ -524,0 +525,0 @@ var textFontFamily = 'SB Sans Display'; |
@@ -28,8 +28,6 @@ "use strict"; | ||
}; | ||
var __spreadArrays = (this && this.__spreadArrays) || function () { | ||
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; | ||
for (var r = Array(s), k = 0, i = 0; i < il; i++) | ||
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) | ||
r[k] = a[j]; | ||
return r; | ||
var __spreadArray = (this && this.__spreadArray) || function (to, from) { | ||
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) | ||
to[j] = from[i]; | ||
return to; | ||
}; | ||
@@ -39,3 +37,3 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
var styled_components_1 = require("styled-components"); | ||
exports.prepareStandardBreakpointTypo = function (typo) { | ||
var prepareStandardBreakpointTypo = function (typo) { | ||
return Object.entries(typo).reduce(function (acc, _a) { | ||
@@ -50,4 +48,5 @@ var typoKey = _a[0], typoProps = _a[1]; | ||
}; | ||
exports.prepareStandardBreakpointTypo = prepareStandardBreakpointTypo; | ||
var compatProps = ['font-family', 'font-size', 'font-style', 'font-weight', 'letter-spacing', 'line-height']; | ||
exports.prepareCompatibleTypo = function (typoMap, oldDesignPrefix, newDesignPrefix) { | ||
var prepareCompatibleTypo = function (typoMap, oldDesignPrefix, newDesignPrefix) { | ||
if (oldDesignPrefix === void 0) { oldDesignPrefix = ''; } | ||
@@ -69,3 +68,4 @@ if (newDesignPrefix === void 0) { newDesignPrefix = ''; } | ||
}; | ||
exports.mergeTypoProps = function () { | ||
exports.prepareCompatibleTypo = prepareCompatibleTypo; | ||
var mergeTypoProps = function () { | ||
var obj = []; | ||
@@ -75,3 +75,3 @@ for (var _i = 0; _i < arguments.length; _i++) { | ||
} | ||
return __spreadArrays(obj).reduce(function (resultObj, currentObj) { | ||
return __spreadArray([], obj).reduce(function (resultObj, currentObj) { | ||
return Object.entries(currentObj).reduce(function (acc, _a) { | ||
@@ -84,3 +84,4 @@ var _b; | ||
}; | ||
exports.createVariablesByArcheType = function (_a) { | ||
exports.mergeTypoProps = mergeTypoProps; | ||
var createVariablesByArcheType = function (_a) { | ||
var displayFontFamily = _a.displayFontFamily, textFontFamily = _a.textFontFamily, typoS = _a.typoS, typoM = _a.typoM, typoL = _a.typoL; | ||
@@ -98,3 +99,4 @@ return function (_a) { | ||
}; | ||
exports.createVariablesByArcheType = createVariablesByArcheType; | ||
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5; | ||
//# sourceMappingURL=helpers.js.map |
@@ -9,3 +9,3 @@ "use strict"; | ||
var styled_components_1 = require("styled-components"); | ||
exports.applyHyphens = function (_a) { | ||
var applyHyphens = function (_a) { | ||
var breakWord = _a.breakWord; | ||
@@ -18,3 +18,4 @@ return styled_components_1.css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", "\n\n ", "\n\n overflow-wrap: var(--plasma-typo-overflow-wrap, var(--typo-overflow-wrap));\n hyphens: var(--plasma-typo-hyphens, var(--typo-hyphens));\n"], ["\n ", | ||
}; | ||
exports.applyHyphens = applyHyphens; | ||
var templateObject_1; | ||
//# sourceMappingURL=applyHyphens.js.map |
@@ -54,3 +54,3 @@ "use strict"; | ||
*/ | ||
exports.applySpacing = function (props) { | ||
var applySpacing = function (props) { | ||
return spacingFnsList.reduce(function (styles, _a) { | ||
@@ -64,2 +64,3 @@ var fnName = _a[0], fn = _a[1]; | ||
}; | ||
exports.applySpacing = applySpacing; | ||
//# sourceMappingURL=applySpacing.js.map |
@@ -27,8 +27,6 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) { | ||
}; | ||
var __spreadArrays = (this && this.__spreadArrays) || function () { | ||
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; | ||
for (var r = Array(s), k = 0, i = 0; i < il; i++) | ||
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) | ||
r[k] = a[j]; | ||
return r; | ||
var __spreadArray = (this && this.__spreadArray) || function (to, from) { | ||
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) | ||
to[j] = from[i]; | ||
return to; | ||
}; | ||
@@ -69,3 +67,3 @@ import { css } from 'styled-components'; | ||
} | ||
return __spreadArrays(obj).reduce(function (resultObj, currentObj) { | ||
return __spreadArray([], obj).reduce(function (resultObj, currentObj) { | ||
return Object.entries(currentObj).reduce(function (acc, _a) { | ||
@@ -72,0 +70,0 @@ var _b; |
{ | ||
"name": "@salutejs/plasma-typo", | ||
"version": "0.39.1-canary.870.6969384195.0", | ||
"version": "0.39.1-canary.874.7015369998.0", | ||
"description": "Plasma Typography System's tokens", | ||
@@ -30,4 +30,5 @@ "author": "Salute Frontend Team <salute.developers@gmail.com>", | ||
"react-dom": "18.2.0", | ||
"react-scripts": "3.4.4", | ||
"styled-components": "5.3.1", | ||
"typescript": "4.0.8" | ||
"typescript": "4.2.4" | ||
}, | ||
@@ -41,3 +42,3 @@ "publishConfig": { | ||
"sideEffects": false, | ||
"gitHead": "4cd2c65a467897b7e522e14b34e31ebf2be968d3" | ||
"gitHead": "39b01a4d57878b22fbbad3c175dd20fa51353ac1" | ||
} |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
307411
5777
9