design-token-editor
Advanced tools
Comparing version 0.5.0 to 0.5.1
@@ -8,2 +8,3 @@ "use strict"; | ||
var react_1 = __importDefault(require("react")); | ||
var UNPARSABLE_COLOR_VALUES = ['inherit', 'initial', 'unset']; | ||
// heuristic based on token name/scope and maybe even the format of the value | ||
@@ -14,3 +15,3 @@ var isColor = function (value) { | ||
s.color = value; | ||
return s.color !== ''; | ||
return s.color !== '' && !UNPARSABLE_COLOR_VALUES.includes(s.color); | ||
}; | ||
@@ -17,0 +18,0 @@ exports.isColor = isColor; |
import React from 'react'; | ||
var UNPARSABLE_COLOR_VALUES = ['inherit', 'initial', 'unset']; | ||
// heuristic based on token name/scope and maybe even the format of the value | ||
@@ -7,3 +8,3 @@ export var isColor = function (value) { | ||
s.color = value; | ||
return s.color !== ''; | ||
return s.color !== '' && !UNPARSABLE_COLOR_VALUES.includes(s.color); | ||
}; | ||
@@ -10,0 +11,0 @@ var ColorPreview = function (_a) { |
/** | ||
* Do not edit directly | ||
* Generated on Wed, 05 Apr 2023 15:38:19 GMT | ||
* Generated on Wed, 29 Nov 2023 11:08:43 GMT | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* Do not edit directly | ||
* Generated on Wed, 05 Apr 2023 15:38:19 GMT | ||
* Generated on Wed, 29 Nov 2023 11:08:43 GMT | ||
*/ | ||
@@ -5,0 +5,0 @@ |
{ | ||
"name": "design-token-editor", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"description": "A react component to view/edit design token values", | ||
@@ -55,3 +55,3 @@ "main": "./lib/cjs/index.js", | ||
"@babel/core": "^7.20.12", | ||
"@open-formulieren/design-tokens": "^0.18.0", | ||
"@open-formulieren/design-tokens": "^0.25.0", | ||
"@storybook/addon-actions": "^6.5.15", | ||
@@ -58,0 +58,0 @@ "@storybook/addon-essentials": "^6.5.15", |
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
110685
2250