New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@aesthetic/system

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aesthetic/system - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

18

esm/index.js

@@ -64,3 +64,3 @@ import { deepMerge, isObject, toArray, objectLoop, hyphenate } from '@aesthetic/utils';

function box(vars, size) {
return _extends({
return Object.assign({
backgroundColor: vars("palette-neutral-color-" + LAYOUT_SHADES.box)

@@ -149,3 +149,3 @@ }, border(vars, size));

function heading(vars, level) {
return _extends({}, resetTypography(), {
return Object.assign(resetTypography(), {
color: vars("palette-neutral-color-" + LAYOUT_SHADES.text),

@@ -166,3 +166,3 @@ letterSpacing: vars("heading-" + level + "-letter-spacing"),

function text(vars, level) {
return _extends({}, resetTypography(), {
return Object.assign(resetTypography(), {
color: vars("palette-neutral-color-" + LAYOUT_SHADES.text),

@@ -251,2 +251,3 @@ fontFamily: vars('typography-font-text'),

this.tokens = void 0;
this.cachedTokens = void 0;
this.design = void 0;

@@ -334,3 +335,7 @@

_proto.toTokens = function toTokens() {
return _extends({}, this.design.tokens, {}, this.tokens);
if (!this.cachedTokens) {
this.cachedTokens = _extends({}, this.design.tokens, {}, this.tokens);
}
return this.cachedTokens;
};

@@ -376,5 +381,4 @@

this.name = name;
this.tokens = _extends({}, tokens, {
depth: DEPTHS
});
this.tokens = tokens;
this.tokens.depth = DEPTHS;
this.rootLineHeight = tokens.typography.rootLineHeight;

@@ -381,0 +385,0 @@ this.rootTextSize = Number.parseFloat(tokens.typography.rootTextSize);

@@ -68,3 +68,3 @@ 'use strict';

function box(vars, size) {
return _extends({
return Object.assign({
backgroundColor: vars("palette-neutral-color-" + LAYOUT_SHADES.box)

@@ -153,3 +153,3 @@ }, border(vars, size));

function heading(vars, level) {
return _extends({}, resetTypography(), {
return Object.assign(resetTypography(), {
color: vars("palette-neutral-color-" + LAYOUT_SHADES.text),

@@ -170,3 +170,3 @@ letterSpacing: vars("heading-" + level + "-letter-spacing"),

function text(vars, level) {
return _extends({}, resetTypography(), {
return Object.assign(resetTypography(), {
color: vars("palette-neutral-color-" + LAYOUT_SHADES.text),

@@ -255,2 +255,3 @@ fontFamily: vars('typography-font-text'),

this.tokens = void 0;
this.cachedTokens = void 0;
this.design = void 0;

@@ -338,3 +339,7 @@

_proto.toTokens = function toTokens() {
return _extends({}, this.design.tokens, {}, this.tokens);
if (!this.cachedTokens) {
this.cachedTokens = _extends({}, this.design.tokens, {}, this.tokens);
}
return this.cachedTokens;
};

@@ -380,5 +385,4 @@

this.name = name;
this.tokens = _extends({}, tokens, {
depth: DEPTHS
});
this.tokens = tokens;
this.tokens.depth = DEPTHS;
this.rootLineHeight = tokens.typography.rootLineHeight;

@@ -385,0 +389,0 @@ this.rootTextSize = Number.parseFloat(tokens.typography.rootTextSize);

@@ -10,2 +10,3 @@ import { DeclarationBlock } from '@aesthetic/sss';

readonly tokens: ThemeTokens;
private cachedTokens?;
private design;

@@ -12,0 +13,0 @@ constructor(options: ThemeOptions, tokens: ThemeTokens, design: Design, parentMixins?: Mixins);

{
"name": "@aesthetic/system",
"version": "0.1.0",
"version": "0.1.1",
"description": "Web based building blocks for the Aesthetic design system.",

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

},
"gitHead": "9ec9db033887e32ea1b5d5dfcb4e5c87dad3dfc3"
"gitHead": "775b992281d34634f3942bccf61b73883eaa276e"
}

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

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