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

design-token-editor

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

design-token-editor - npm Package Compare versions

Comparing version 0.5.0 to 0.5.1

3

lib/cjs/ColorPreview.js

@@ -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

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