@stylable/custom-value
Advanced tools
Comparing version 2.3.3-alpha.0 to 2.3.3-alpha.1
"use strict"; | ||
var __read = (this && this.__read) || function (o, n) { | ||
var m = typeof Symbol === "function" && o[Symbol.iterator]; | ||
if (!m) return o; | ||
var i = m.call(o), r, ar = [], e; | ||
try { | ||
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); | ||
} | ||
catch (error) { e = { error: error }; } | ||
finally { | ||
try { | ||
if (r && !r.done && (m = i["return"])) m.call(i); | ||
} | ||
finally { if (e) throw e.error; } | ||
} | ||
return ar; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var core_1 = require("@stylable/core"); | ||
const core_1 = require("@stylable/core"); | ||
exports.stBorder = core_1.createCustomValue({ | ||
processArgs: function (node, customTypes) { | ||
processArgs: (node, customTypes) => { | ||
return core_1.CustomValueStrategy.args(node, customTypes); | ||
}, | ||
createValue: function (_a) { | ||
var _b = __read(_a, 3), size = _b[0], style = _b[1], color = _b[2]; | ||
createValue: ([size, style, color]) => { | ||
return { | ||
size: size, | ||
style: style, | ||
color: color | ||
size, | ||
style, | ||
color | ||
}; | ||
}, | ||
getValue: function (value, index) { | ||
getValue: (value, index) => { | ||
return value[index]; | ||
}, | ||
flattenValue: function (_a) { | ||
var _b = _a.value, size = _b.size, style = _b.style, color = _b.color; | ||
flattenValue: ({ value: { size, style, color } }) => { | ||
return { | ||
@@ -38,0 +20,0 @@ delimiter: ' ', |
{ | ||
"name": "@stylable/custom-value", | ||
"version": "2.3.3-alpha.0", | ||
"version": "2.3.3-alpha.1", | ||
"description": "Custom values (variables) for Stylable", | ||
@@ -14,3 +14,3 @@ "main": "./cjs/index.js", | ||
"dependencies": { | ||
"@stylable/core": "^2.3.3-alpha.0" | ||
"@stylable/core": "^2.3.3-alpha.1" | ||
}, | ||
@@ -31,3 +31,3 @@ "files": [ | ||
"license": "BSD-3-Clause", | ||
"gitHead": "a8fb880ad95147f02bfe18631167e0e9d6abd942" | ||
"gitHead": "9dfdbda11e88cfd20459ec0e3fbdca24f2e2223b" | ||
} |
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
5934
63