Socket
Socket
Sign inDemoInstall

@storybook/theming

Package Overview
Dependencies
Maintainers
10
Versions
1721
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@storybook/theming - npm Package Compare versions

Comparing version 5.1.0-alpha.34 to 5.1.0-alpha.35

2

dist/base.d.ts

@@ -26,2 +26,3 @@ import { easing, animation } from './animation';

warning: string;
critical: string;
defaultText: string;

@@ -39,2 +40,3 @@ inverseText: string;

warning: string;
critical: string;
};

@@ -41,0 +43,0 @@ export declare const typography: {

4

dist/base.js

@@ -41,2 +41,3 @@ "use strict";

warning: '#E69D00',
critical: '#FFFFFF',
defaultText: '#333333',

@@ -56,3 +57,4 @@ inverseText: '#FFFFFF'

negative: '#FEDED2',
warning: '#FFF5CF'
warning: '#FFF5CF',
critical: '#FF4400'
};

@@ -59,0 +61,0 @@ exports.background = background;

@@ -79,2 +79,3 @@ "use strict";

warning: _base.color.warning,
critical: _base.color.critical,
defaultText: vars.textColor || _base.color.darkest,

@@ -163,3 +164,4 @@ inverseText: vars.textInverseColor || _base.color.lightest

negative: _base.background.negative,
warning: _base.background.warning
warning: _base.background.warning,
critical: _base.background.critical
},

@@ -166,0 +168,0 @@ typography: {

@@ -49,13 +49,13 @@ "use strict";

return (0, _create.convert)(_light["default"]);
} else {
var missing = (0, _deepObjectDiff.deletedDiff)(_light["default"], input);
}
if (Object.keys(missing).length) {
_clientLogger.logger.warn((0, _commonTags.stripIndent)(_templateObject()), missing);
}
var missing = (0, _deepObjectDiff.deletedDiff)(_light["default"], input);
return (0, _create.convert)(input);
if (Object.keys(missing).length) {
_clientLogger.logger.warn((0, _commonTags.stripIndent)(_templateObject()), missing);
}
return (0, _create.convert)(input);
};
exports.ensure = ensure;

@@ -57,2 +57,3 @@ declare type Value = string | number;

warning: string;
critical: string;
defaultText: string;

@@ -70,2 +71,3 @@ inverseText: string;

warning: string;
critical: string;
};

@@ -72,0 +74,0 @@ typography: {

{
"name": "@storybook/theming",
"version": "5.1.0-alpha.34",
"version": "5.1.0-alpha.35",
"description": "Core Storybook Components",

@@ -26,3 +26,3 @@ "keywords": [

"@emotion/styled": "^10.0.7",
"@storybook/client-logger": "5.1.0-alpha.34",
"@storybook/client-logger": "5.1.0-alpha.35",
"common-tags": "^1.8.0",

@@ -47,3 +47,3 @@ "core-js": "^2.6.5",

},
"gitHead": "694460c087326477e6a71d8f1570196739c23f22"
"gitHead": "e20d20a2635b442f47b95a4ce0f436491c0effe1"
}

@@ -36,2 +36,3 @@ import { easing, animation } from './animation';

warning: '#E69D00',
critical: '#FFFFFF',

@@ -53,2 +54,3 @@ defaultText: '#333333',

warning: '#FFF5CF',
critical: '#FF4400',
};

@@ -55,0 +57,0 @@

@@ -54,2 +54,3 @@ // This generates theme variables in the correct shape for the UI

warning: color.warning,
critical: color.critical,

@@ -143,2 +144,3 @@ defaultText: vars.textColor || color.darkest,

warning: background.warning,
critical: background.critical,
},

@@ -145,0 +147,0 @@ typography: {

@@ -13,7 +13,7 @@ import { logger } from '@storybook/client-logger';

return convert(light);
} else {
const missing = deletedDiff(light, input);
if (Object.keys(missing).length) {
logger.warn(
stripIndent`
}
const missing = deletedDiff(light, input);
if (Object.keys(missing).length) {
logger.warn(
stripIndent`
Your theme is missing properties, you should update your theme!

@@ -23,8 +23,7 @@

`,
missing
);
}
missing
);
}
return convert(input);
}
return convert(input);
};

@@ -0,3 +1,3 @@

import memoize from 'memoizerific';
import { Color, Background, Typography } from './base';
import memoize from 'memoizerific';

@@ -4,0 +4,0 @@ type Value = string | number;

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