@salutejs/plasma-typo
Advanced tools
Comparing version 0.39.1-canary.869.6968366217.0 to 0.39.1-canary.870.6969384195.0
@@ -521,3 +521,3 @@ "use strict"; | ||
}; | ||
var typoCommonProps = function (displayFontFamily, textFontFamily) { return ({ | ||
exports.typoCommonProps = function (displayFontFamily, textFontFamily) { return ({ | ||
'dspl-l': { | ||
@@ -694,3 +694,2 @@ 'font-family': displayFontFamily, | ||
}); }; | ||
exports.typoCommonProps = typoCommonProps; | ||
var displayFontFamily = 'SB Sans Display'; | ||
@@ -697,0 +696,0 @@ var textFontFamily = 'SB Sans Text'; |
@@ -349,3 +349,3 @@ "use strict"; | ||
}; | ||
var typoCommonProps = function (displayFontFamily, textFontFamily) { return ({ | ||
exports.typoCommonProps = function (displayFontFamily, textFontFamily) { return ({ | ||
'dspl-l': { | ||
@@ -522,3 +522,2 @@ 'font-family': displayFontFamily, | ||
}); }; | ||
exports.typoCommonProps = typoCommonProps; | ||
var displayFontFamily = 'SB Sans Display'; | ||
@@ -525,0 +524,0 @@ var textFontFamily = 'SB Sans Display'; |
@@ -28,6 +28,8 @@ "use strict"; | ||
}; | ||
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; | ||
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; | ||
}; | ||
@@ -37,3 +39,3 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
var styled_components_1 = require("styled-components"); | ||
var prepareStandardBreakpointTypo = function (typo) { | ||
exports.prepareStandardBreakpointTypo = function (typo) { | ||
return Object.entries(typo).reduce(function (acc, _a) { | ||
@@ -48,5 +50,4 @@ var typoKey = _a[0], typoProps = _a[1]; | ||
}; | ||
exports.prepareStandardBreakpointTypo = prepareStandardBreakpointTypo; | ||
var compatProps = ['font-family', 'font-size', 'font-style', 'font-weight', 'letter-spacing', 'line-height']; | ||
var prepareCompatibleTypo = function (typoMap, oldDesignPrefix, newDesignPrefix) { | ||
exports.prepareCompatibleTypo = function (typoMap, oldDesignPrefix, newDesignPrefix) { | ||
if (oldDesignPrefix === void 0) { oldDesignPrefix = ''; } | ||
@@ -68,4 +69,3 @@ if (newDesignPrefix === void 0) { newDesignPrefix = ''; } | ||
}; | ||
exports.prepareCompatibleTypo = prepareCompatibleTypo; | ||
var mergeTypoProps = function () { | ||
exports.mergeTypoProps = function () { | ||
var obj = []; | ||
@@ -75,3 +75,3 @@ for (var _i = 0; _i < arguments.length; _i++) { | ||
} | ||
return __spreadArray([], obj).reduce(function (resultObj, currentObj) { | ||
return __spreadArrays(obj).reduce(function (resultObj, currentObj) { | ||
return Object.entries(currentObj).reduce(function (acc, _a) { | ||
@@ -84,4 +84,3 @@ var _b; | ||
}; | ||
exports.mergeTypoProps = mergeTypoProps; | ||
var createVariablesByArcheType = function (_a) { | ||
exports.createVariablesByArcheType = function (_a) { | ||
var displayFontFamily = _a.displayFontFamily, textFontFamily = _a.textFontFamily, typoS = _a.typoS, typoM = _a.typoM, typoL = _a.typoL; | ||
@@ -99,4 +98,3 @@ 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"); | ||
var applyHyphens = function (_a) { | ||
exports.applyHyphens = function (_a) { | ||
var breakWord = _a.breakWord; | ||
@@ -18,4 +18,3 @@ 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"; | ||
*/ | ||
var applySpacing = function (props) { | ||
exports.applySpacing = function (props) { | ||
return spacingFnsList.reduce(function (styles, _a) { | ||
@@ -64,3 +64,2 @@ var fnName = _a[0], fn = _a[1]; | ||
}; | ||
exports.applySpacing = applySpacing; | ||
//# sourceMappingURL=applySpacing.js.map |
@@ -27,6 +27,8 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) { | ||
}; | ||
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; | ||
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; | ||
}; | ||
@@ -67,3 +69,3 @@ import { css } from 'styled-components'; | ||
} | ||
return __spreadArray([], obj).reduce(function (resultObj, currentObj) { | ||
return __spreadArrays(obj).reduce(function (resultObj, currentObj) { | ||
return Object.entries(currentObj).reduce(function (acc, _a) { | ||
@@ -70,0 +72,0 @@ var _b; |
{ | ||
"name": "@salutejs/plasma-typo", | ||
"version": "0.39.1-canary.869.6968366217.0", | ||
"version": "0.39.1-canary.870.6969384195.0", | ||
"description": "Plasma Typography System's tokens", | ||
@@ -30,5 +30,4 @@ "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.2.4" | ||
"typescript": "4.0.8" | ||
}, | ||
@@ -42,3 +41,3 @@ "publishConfig": { | ||
"sideEffects": false, | ||
"gitHead": "abd32a0c9cbc836b3f731b9bfdd4cc154b3027a5" | ||
"gitHead": "4cd2c65a467897b7e522e14b34e31ebf2be968d3" | ||
} |
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
8
307088
5773