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

@aesthetic/addon-mixins

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aesthetic/addon-mixins - npm Package Compare versions

Comparing version 0.1.5 to 0.1.6

36

esm/index.js

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

import { PALETTE_TYPES, SHADE_RANGES, BORDER_SIZES, BREAKPOINT_SIZES, SHADOW_SIZES, TEXT_SIZES } from '@aesthetic/system';
import { isObject } from '@aesthetic/utils';
import { SHADE_RANGES } from '@aesthetic/system';
import { objectLoop, isObject } from '@aesthetic/utils';

@@ -16,3 +16,3 @@ function checkList(name, value, items) {

if ("production" !== process.env.NODE_ENV) {
checkList('palette', palette, PALETTE_TYPES);
checkList('palette', palette, Object.keys(this.tokens.palette));
}

@@ -37,5 +37,5 @@

if ("production" !== process.env.NODE_ENV) {
checkList('palette', palette, PALETTE_TYPES);
checkList('palette', palette, Object.keys(this.tokens.palette));
checkList('shade', shade, SHADE_RANGES);
checkList('size', size, BORDER_SIZES);
checkList('size', size, Object.keys(this.tokens.border));
}

@@ -96,3 +96,3 @@

if ("production" !== process.env.NODE_ENV) {
checkList('palette', palette, PALETTE_TYPES);
checkList('palette', palette, Object.keys(this.tokens.palette));
}

@@ -111,3 +111,5 @@

if ("production" !== process.env.NODE_ENV) {
checkList('level', level, [1, 2, 3, 4, 5, 6]);
checkList('level', level, Object.keys(this.tokens.heading).map(function (l) {
return Number(l.slice(1));
}));
}

@@ -196,4 +198,4 @@

};
BREAKPOINT_SIZES.forEach(function (size) {
declaration['@media'][String(_this.token("breakpoint-" + size + "-query"))] = {
objectLoop(this.tokens.breakpoint, function (bp, size) {
declaration['@media'][bp.query] = {
fontSize: _this.var("breakpoint-" + size + "-root-text-size"),

@@ -216,5 +218,5 @@ lineHeight: _this.var("breakpoint-" + size + "-root-line-height")

if ("production" !== process.env.NODE_ENV) {
checkList('palette', palette, PALETTE_TYPES);
checkList('palette', palette, Object.keys(this.tokens.palette));
checkList('shade', shade, SHADE_RANGES);
checkList('size', size, SHADOW_SIZES);
checkList('size', size, Object.keys(this.tokens.shadow));
}

@@ -233,3 +235,3 @@

if ("production" !== process.env.NODE_ENV) {
checkList('size', size, TEXT_SIZES);
checkList('size', size, Object.keys(this.tokens.text));
}

@@ -291,2 +293,7 @@

shadow = _ref$shadow === void 0 ? true : _ref$shadow;
if ("production" !== process.env.NODE_ENV) {
checkList('palette', palette, Object.keys(this.tokens.palette));
}
var rule = this.mixin.background({

@@ -311,2 +318,7 @@ palette: palette

palette = _ref2$palette === void 0 ? 'neutral' : _ref2$palette;
if ("production" !== process.env.NODE_ENV) {
checkList('palette', palette, Object.keys(this.tokens.palette));
}
return {

@@ -313,0 +325,0 @@ color: this.var("palette-" + palette + "-color-00"),

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

if ("production" !== process.env.NODE_ENV) {
checkList('palette', palette, system.PALETTE_TYPES);
checkList('palette', palette, Object.keys(this.tokens.palette));
}

@@ -39,5 +39,5 @@

if ("production" !== process.env.NODE_ENV) {
checkList('palette', palette, system.PALETTE_TYPES);
checkList('palette', palette, Object.keys(this.tokens.palette));
checkList('shade', shade, system.SHADE_RANGES);
checkList('size', size, system.BORDER_SIZES);
checkList('size', size, Object.keys(this.tokens.border));
}

@@ -98,3 +98,3 @@

if ("production" !== process.env.NODE_ENV) {
checkList('palette', palette, system.PALETTE_TYPES);
checkList('palette', palette, Object.keys(this.tokens.palette));
}

@@ -113,3 +113,5 @@

if ("production" !== process.env.NODE_ENV) {
checkList('level', level, [1, 2, 3, 4, 5, 6]);
checkList('level', level, Object.keys(this.tokens.heading).map(function (l) {
return Number(l.slice(1));
}));
}

@@ -198,4 +200,4 @@

};
system.BREAKPOINT_SIZES.forEach(function (size) {
declaration['@media'][String(_this.token("breakpoint-" + size + "-query"))] = {
utils.objectLoop(this.tokens.breakpoint, function (bp, size) {
declaration['@media'][bp.query] = {
fontSize: _this.var("breakpoint-" + size + "-root-text-size"),

@@ -218,5 +220,5 @@ lineHeight: _this.var("breakpoint-" + size + "-root-line-height")

if ("production" !== process.env.NODE_ENV) {
checkList('palette', palette, system.PALETTE_TYPES);
checkList('palette', palette, Object.keys(this.tokens.palette));
checkList('shade', shade, system.SHADE_RANGES);
checkList('size', size, system.SHADOW_SIZES);
checkList('size', size, Object.keys(this.tokens.shadow));
}

@@ -235,3 +237,3 @@

if ("production" !== process.env.NODE_ENV) {
checkList('size', size, system.TEXT_SIZES);
checkList('size', size, Object.keys(this.tokens.text));
}

@@ -293,2 +295,7 @@

shadow = _ref$shadow === void 0 ? true : _ref$shadow;
if ("production" !== process.env.NODE_ENV) {
checkList('palette', palette, Object.keys(this.tokens.palette));
}
var rule = this.mixin.background({

@@ -313,2 +320,7 @@ palette: palette

palette = _ref2$palette === void 0 ? 'neutral' : _ref2$palette;
if ("production" !== process.env.NODE_ENV) {
checkList('palette', palette, Object.keys(this.tokens.palette));
}
return {

@@ -315,0 +327,0 @@ color: this.var("palette-" + palette + "-color-00"),

@@ -37,2 +37,3 @@ import { Rule } from '@aesthetic/types';

}
export declare type MixinType = 'background' | 'border' | 'foreground' | 'heading' | 'hide-completely' | 'hide-offscreen' | 'hide-visually' | 'reset-button' | 'reset-input' | 'reset-list' | 'reset-media' | 'reset-typography' | 'root' | 'shadow' | 'text' | 'text-break' | 'text-truncate' | 'text-wrap' | 'ui-box' | 'ui-interactive';
declare module '@aesthetic/system' {

@@ -62,3 +63,2 @@ interface MixinUtil<T extends object = Rule, O extends object = object> {

}
export declare type MixinType = 'background' | 'border' | 'foreground' | 'heading' | 'hide-completely' | 'hide-offscreen' | 'hide-visually' | 'reset-button' | 'reset-input' | 'reset-list' | 'reset-media' | 'reset-typography' | 'root' | 'shadow' | 'text' | 'text-break' | 'text-truncate' | 'text-wrap' | 'ui-box' | 'ui-interactive';
//# sourceMappingURL=types.d.ts.map
{
"name": "@aesthetic/addon-mixins",
"version": "0.1.5",
"version": "0.1.6",
"description": "CSS-in-JS mixins for the Aesthetic design system.",

@@ -23,7 +23,7 @@ "keywords": [

"peerDependencies": {
"@aesthetic/sss": "^0.4.0",
"@aesthetic/system": "^0.3.0"
"@aesthetic/sss": "*",
"@aesthetic/system": "*"
},
"dependencies": {
"@aesthetic/utils": "^0.4.4"
"@aesthetic/utils": "^0.4.5"
},

@@ -34,3 +34,3 @@ "funding": {

},
"gitHead": "9bae5a0e88a3727367cd289b5174cb2ecb42a91f"
"gitHead": "ae0de0b1a4e87ec62e8c519ac5aea0261317994e"
}

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

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