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

jss-default-unit

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jss-default-unit - npm Package Compare versions

Comparing version 4.1.1 to 4.1.2

4

changelog.md

@@ -0,1 +1,5 @@

## 4.1.2 / 2016-11-12
- support spread, x, y, blur for box-shadow and text-shadow
## 4.1.1 / 2016-11-05

@@ -2,0 +6,0 @@

@@ -186,2 +186,6 @@ (function webpackUniversalModuleDefinition(root, factory) {

bottom: 'px',
'box-shadow-x': 'px', // Not existing property. Used to avoid issues with jss-expand intergration
'box-shadow-y': 'px', // Not existing property. Used to avoid issues with jss-expand intergration
'box-shadow-blur': 'px', // Not existing property. Used to avoid issues with jss-expand intergration
'box-shadow-spread': 'px', // Not existing property. Used to avoid issues with jss-expand intergration
'column-gap': 'px',

@@ -240,2 +244,5 @@ 'column-rule': 'px',

'text-indent': 'px',
'text-shadow-x': 'px', // Not existing property. Used to avoid issues with jss-expand intergration
'text-shadow-y': 'px', // Not existing property. Used to avoid issues with jss-expand intergration
'text-shadow-blur': 'px', // Not existing property. Used to avoid issues with jss-expand intergration
'text-stroke': 'px',

@@ -242,0 +249,0 @@ 'text-stroke-width': 'px',

2

dist/jss-default-unit.min.js

@@ -1,2 +0,2 @@

!function(t,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define([],r):"object"==typeof exports?exports.reactJss=r():t.reactJss=r()}(this,function(){return function(t){function r(i){if(e[i])return e[i].exports;var o=e[i]={exports:{},id:i,loaded:!1};return t[i].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}var e={};return r.m=t,r.c=e,r.p="",r(0)}([function(t,r,e){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function o(t,r,e){if(!r)return r;var i=r;switch(r.constructor){case Object:if("fallbacks"===t){for(var n in r)r[n]=o(n,r[n],e);break}for(var a in r)r[a]=o(t+"-"+a,r[a],e);break;case Array:for(var x=0;x<r.length;x++)r[x]=o(t,r[x],e);break;case Number:i=p(t,r,e)}return i}function p(t,r,e){return"number"==typeof r&&0!==r&&(r+=e[t]||x.default[t]||""),r}function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(r){var e=r.style,i=r.type;if(e&&"regular"===i)for(var p in e)e[p]=o(p,e[p],t)}}Object.defineProperty(r,"__esModule",{value:!0}),r.default=n;var a=e(1),x=i(a)},function(t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default={"animation-delay":"ms","animation-duration":"ms","background-position-x":"px","background-position-y":"px","background-size":"px",border:"px","border-bottom":"px","border-bottom-left-radius":"px","border-bottom-right-radius":"px","border-bottom-width":"px","border-left":"px","border-left-width":"px","border-radius":"px","border-right":"px","border-right-width":"px","border-spacing":"px","border-top":"px","border-top-left-radius":"px","border-top-right-radius":"px","border-top-width":"px","border-width":"px","border-after-width":"px","border-before-width":"px","border-end-width":"px","border-horizontal-spacing":"px","border-start-width":"px","border-vertical-spacing":"px",bottom:"px","column-gap":"px","column-rule":"px","column-rule-width":"px","column-width":"px","flex-basis":"px","font-size":"px","font-size-delta":"px",height:"px",left:"px","letter-spacing":"px","logical-height":"px","logical-width":"px",margin:"px","margin-after":"px","margin-before":"px","margin-bottom":"px","margin-left":"px","margin-right":"px","margin-top":"px","max-height":"px","max-width":"px","margin-end":"px","margin-start":"px","mask-position-x":"px","mask-position-y":"px","mask-size":"px","max-logical-height":"px","max-logical-width":"px","min-height":"px","min-width":"px","min-logical-height":"px","min-logical-width":"px",motion:"px","motion-offset":"px",outline:"px","outline-offset":"px","outline-width":"px",padding:"px","padding-bottom":"px","padding-left":"px","padding-right":"px","padding-top":"px","padding-after":"px","padding-before":"px","padding-end":"px","padding-start":"px","perspective-origin-x":"%","perspective-origin-y":"%",perspective:"px",right:"px","shape-margin":"px",size:"px","text-indent":"px","text-stroke":"px","text-stroke-width":"px",top:"px","transform-origin":"%","transform-origin-x":"%","transform-origin-y":"%","transform-origin-z":"%","transition-delay":"ms","transition-duration":"ms","vertical-align":"px",width:"px","word-spacing":"px"}}])});
!function(t,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define([],r):"object"==typeof exports?exports.reactJss=r():t.reactJss=r()}(this,function(){return function(t){function r(o){if(e[o])return e[o].exports;var i=e[o]={exports:{},id:o,loaded:!1};return t[o].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}var e={};return r.m=t,r.c=e,r.p="",r(0)}([function(t,r,e){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function i(t,r,e){if(!r)return r;var o=r;switch(r.constructor){case Object:if("fallbacks"===t){for(var x in r)r[x]=i(x,r[x],e);break}for(var n in r)r[n]=i(t+"-"+n,r[n],e);break;case Array:for(var a=0;a<r.length;a++)r[a]=i(t,r[a],e);break;case Number:o=p(t,r,e)}return o}function p(t,r,e){return"number"==typeof r&&0!==r&&(r+=e[t]||a.default[t]||""),r}function x(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(r){var e=r.style,o=r.type;if(e&&"regular"===o)for(var p in e)e[p]=i(p,e[p],t)}}Object.defineProperty(r,"__esModule",{value:!0}),r.default=x;var n=e(1),a=o(n)},function(t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default={"animation-delay":"ms","animation-duration":"ms","background-position-x":"px","background-position-y":"px","background-size":"px",border:"px","border-bottom":"px","border-bottom-left-radius":"px","border-bottom-right-radius":"px","border-bottom-width":"px","border-left":"px","border-left-width":"px","border-radius":"px","border-right":"px","border-right-width":"px","border-spacing":"px","border-top":"px","border-top-left-radius":"px","border-top-right-radius":"px","border-top-width":"px","border-width":"px","border-after-width":"px","border-before-width":"px","border-end-width":"px","border-horizontal-spacing":"px","border-start-width":"px","border-vertical-spacing":"px",bottom:"px","box-shadow-x":"px","box-shadow-y":"px","box-shadow-blur":"px","box-shadow-spread":"px","column-gap":"px","column-rule":"px","column-rule-width":"px","column-width":"px","flex-basis":"px","font-size":"px","font-size-delta":"px",height:"px",left:"px","letter-spacing":"px","logical-height":"px","logical-width":"px",margin:"px","margin-after":"px","margin-before":"px","margin-bottom":"px","margin-left":"px","margin-right":"px","margin-top":"px","max-height":"px","max-width":"px","margin-end":"px","margin-start":"px","mask-position-x":"px","mask-position-y":"px","mask-size":"px","max-logical-height":"px","max-logical-width":"px","min-height":"px","min-width":"px","min-logical-height":"px","min-logical-width":"px",motion:"px","motion-offset":"px",outline:"px","outline-offset":"px","outline-width":"px",padding:"px","padding-bottom":"px","padding-left":"px","padding-right":"px","padding-top":"px","padding-after":"px","padding-before":"px","padding-end":"px","padding-start":"px","perspective-origin-x":"%","perspective-origin-y":"%",perspective:"px",right:"px","shape-margin":"px",size:"px","text-indent":"px","text-shadow-x":"px","text-shadow-y":"px","text-shadow-blur":"px","text-stroke":"px","text-stroke-width":"px",top:"px","transform-origin":"%","transform-origin-x":"%","transform-origin-y":"%","transform-origin-z":"%","transition-delay":"ms","transition-duration":"ms","vertical-align":"px",width:"px","word-spacing":"px"}}])});
//# sourceMappingURL=jss-default-unit.min.js.map

@@ -39,2 +39,6 @@ 'use strict';

bottom: 'px',
'box-shadow-x': 'px', // Not existing property. Used to avoid issues with jss-expand intergration
'box-shadow-y': 'px', // Not existing property. Used to avoid issues with jss-expand intergration
'box-shadow-blur': 'px', // Not existing property. Used to avoid issues with jss-expand intergration
'box-shadow-spread': 'px', // Not existing property. Used to avoid issues with jss-expand intergration
'column-gap': 'px',

@@ -93,2 +97,5 @@ 'column-rule': 'px',

'text-indent': 'px',
'text-shadow-x': 'px', // Not existing property. Used to avoid issues with jss-expand intergration
'text-shadow-y': 'px', // Not existing property. Used to avoid issues with jss-expand intergration
'text-shadow-blur': 'px', // Not existing property. Used to avoid issues with jss-expand intergration
'text-stroke': 'px',

@@ -95,0 +102,0 @@ 'text-stroke-width': 'px',

@@ -19,2 +19,8 @@ 'use strict';

var settings = {
generateClassName: function generateClassName(str, rule) {
return rule.name + '-id';
}
};
describe('jss-default-unit', function () {

@@ -24,3 +30,3 @@ var jss = void 0;

beforeEach(function () {
jss = (0, _jss.create)().use((0, _index2['default'])({ 'min-width': 'pc' }));
jss = (0, _jss.create)(settings).use((0, _index2['default'])({ 'min-width': 'pc' }));
});

@@ -36,3 +42,3 @@

}
}, { named: false });
});
});

@@ -45,3 +51,3 @@

it('should generate correct CSS', function () {
(0, _expect2['default'])(sheet.toString()).to.be('a {\n' + ' zoom: 1;\n' + '}');
(0, _expect2['default'])(sheet.toString()).to.be('.a-id {\n' + ' zoom: 1;\n' + '}');
});

@@ -58,3 +64,3 @@ });

}
}, { named: false });
});
});

@@ -67,3 +73,3 @@

it('should generate correct CSS', function () {
(0, _expect2['default'])(sheet.toString()).to.be('a {\n' + ' width: 10px;\n' + '}');
(0, _expect2['default'])(sheet.toString()).to.be('.a-id {\n' + ' width: 10px;\n' + '}');
});

@@ -80,3 +86,3 @@ });

}
}, { named: false });
});
});

@@ -89,3 +95,3 @@

it('should generate correct CSS', function () {
(0, _expect2['default'])(sheet.toString()).to.be('a {\n' + ' animation-duration: 200ms;\n' + '}');
(0, _expect2['default'])(sheet.toString()).to.be('.a-id {\n' + ' animation-duration: 200ms;\n' + '}');
});

@@ -102,3 +108,3 @@ });

}
}, { named: false });
});
});

@@ -111,3 +117,3 @@

it('should generate correct CSS', function () {
(0, _expect2['default'])(sheet.toString()).to.be('a {\n' + ' transform-origin-x: 50%;\n' + '}');
(0, _expect2['default'])(sheet.toString()).to.be('.a-id {\n' + ' transform-origin-x: 50%;\n' + '}');
});

@@ -126,3 +132,3 @@ });

'@media print': {
button: {
a: {
'border-left': 1,

@@ -137,7 +143,7 @@ border: 3

}
}, { named: false });
});
});
it('should generate correct CSS', function () {
(0, _expect2['default'])(sheet.toString()).to.be('@font-face {\n' + ' font-family: MyHelvetica;\n' + ' src: local("Helvetica");\n' + '}\n' + '@media print {\n' + ' button {\n' + ' border-left: 1px;\n' + ' border: 3px;\n' + ' }\n' + '}\n' + '@keyframes id {\n' + ' from {\n' + ' top: 0;\n' + ' }\n' + ' 30% {\n' + ' top: 30px;\n' + ' }\n' + ' 60%, 70% {\n' + ' top: 80px;\n' + ' }\n' + '}');
(0, _expect2['default'])(sheet.toString()).to.be('@font-face {\n' + ' font-family: MyHelvetica;\n' + ' src: local("Helvetica");\n' + '}\n' + '@media print {\n' + ' .a-id {\n' + ' border-left: 1px;\n' + ' border: 3px;\n' + ' }\n' + '}\n' + '@keyframes id {\n' + ' from {\n' + ' top: 0;\n' + ' }\n' + ' 30% {\n' + ' top: 30px;\n' + ' }\n' + ' 60%, 70% {\n' + ' top: 80px;\n' + ' }\n' + '}');
});

@@ -154,3 +160,3 @@ });

}
}, { named: false });
});
});

@@ -163,3 +169,3 @@

it('should generate correct CSS', function () {
(0, _expect2['default'])(sheet.toString()).to.be('a {\n' + ' background-size: 10px, 15px;\n' + '}');
(0, _expect2['default'])(sheet.toString()).to.be('.a-id {\n' + ' background-size: 10px, 15px;\n' + '}');
});

@@ -176,3 +182,3 @@ });

}
}, { named: false });
});
});

@@ -185,3 +191,3 @@

it('should generate correct CSS', function () {
(0, _expect2['default'])(sheet.toString()).to.be('a {\n' + ' background-size: 10px 5px;\n' + '}');
(0, _expect2['default'])(sheet.toString()).to.be('.a-id {\n' + ' background-size: 10px 5px;\n' + '}');
});

@@ -198,3 +204,3 @@ });

}
}, { named: false });
});
});

@@ -207,3 +213,3 @@

it('should generate correct CSS', function () {
(0, _expect2['default'])(sheet.toString()).to.be('a {\n' + ' min-width: 20pc;\n' + '}');
(0, _expect2['default'])(sheet.toString()).to.be('.a-id {\n' + ' min-width: 20pc;\n' + '}');
});

@@ -221,3 +227,3 @@ });

}
}, { named: false });
});
});

@@ -230,3 +236,3 @@

it('should generate correct CSS', function () {
(0, _expect2['default'])(sheet.toString()).to.be('a {\n' + ' padding: 10px;\n' + '}');
(0, _expect2['default'])(sheet.toString()).to.be('.a-id {\n' + ' padding: 10px;\n' + '}');
});

@@ -239,3 +245,3 @@ });

beforeEach(function () {
var localJss = (0, _jss.create)().use((0, _index2['default'])(), (0, _jssExpand2['default'])());
var localJss = (0, _jss.create)(settings).use((0, _index2['default'])(), (0, _jssExpand2['default'])());
sheet = localJss.createStyleSheet({

@@ -252,3 +258,3 @@ a: {

}
}, { named: false });
});
});

@@ -262,3 +268,3 @@

it('should generate correct CSS', function () {
(0, _expect2['default'])(sheet.toString()).to.be('a {\n' + ' padding: 5px;\n' + ' padding: 0;\n' + '}\n' + 'b {\n' + ' padding: 5px;\n' + ' padding: 10px;\n' + ' padding: 0;\n' + '}');
(0, _expect2['default'])(sheet.toString()).to.be('.a-id {\n' + ' padding: 5px;\n' + ' padding: 0;\n' + '}\n' + '.b-id {\n' + ' padding: 5px;\n' + ' padding: 10px;\n' + ' padding: 0;\n' + '}');
});

@@ -271,3 +277,3 @@ });

beforeEach(function () {
var localJss = (0, _jss.create)().use((0, _index2['default'])({ 'padding-top': 'rem' }), (0, _jssExpand2['default'])());
var localJss = (0, _jss.create)(settings).use((0, _index2['default'])({ 'padding-top': 'rem' }), (0, _jssExpand2['default'])());
sheet = localJss.createStyleSheet({

@@ -282,3 +288,3 @@ a: {

}
}, { named: false });
});
});

@@ -291,3 +297,3 @@

it('should generate correct CSS', function () {
(0, _expect2['default'])(sheet.toString()).to.be('a {\n' + ' padding: 5rem 10px 15px 0;\n' + '}');
(0, _expect2['default'])(sheet.toString()).to.be('.a-id {\n' + ' padding: 5rem 10px 15px 0;\n' + '}');
});

@@ -300,3 +306,3 @@ });

beforeEach(function () {
var localJss = (0, _jss.create)().use((0, _index2['default'])(), (0, _jssExpand2['default'])());
var localJss = (0, _jss.create)(settings).use((0, _index2['default'])(), (0, _jssExpand2['default'])());
sheet = localJss.createStyleSheet({

@@ -315,3 +321,3 @@ a: {

}
}, { named: false });
});
});

@@ -324,5 +330,5 @@

it('should generate correct CSS', function () {
(0, _expect2['default'])(sheet.toString()).to.be('a {\n' + ' transition: opacity 200ms linear 100ms, transform 300ms linear;\n' + '}');
(0, _expect2['default'])(sheet.toString()).to.be('.a-id {\n' + ' transition: opacity 200ms linear 100ms, transform 300ms linear;\n' + '}');
});
});
});
{
"name": "jss-default-unit",
"description": "JSS plugin that adds default custom unit to numeric values where needed",
"version": "4.1.1",
"version": "4.1.2",
"author": {

@@ -6,0 +6,0 @@ "name": "Oleg Slobodskoi",

@@ -39,2 +39,6 @@ 'use strict';

bottom: 'px',
'box-shadow-x': 'px', // Not existing property. Used to avoid issues with jss-expand intergration
'box-shadow-y': 'px', // Not existing property. Used to avoid issues with jss-expand intergration
'box-shadow-blur': 'px', // Not existing property. Used to avoid issues with jss-expand intergration
'box-shadow-spread': 'px', // Not existing property. Used to avoid issues with jss-expand intergration
'column-gap': 'px',

@@ -93,2 +97,5 @@ 'column-rule': 'px',

'text-indent': 'px',
'text-shadow-x': 'px', // Not existing property. Used to avoid issues with jss-expand intergration
'text-shadow-y': 'px', // Not existing property. Used to avoid issues with jss-expand intergration
'text-shadow-blur': 'px', // Not existing property. Used to avoid issues with jss-expand intergration
'text-stroke': 'px',

@@ -95,0 +102,0 @@ 'text-stroke-width': 'px',

@@ -19,2 +19,8 @@ 'use strict';

var settings = {
generateClassName: function generateClassName(str, rule) {
return rule.name + '-id';
}
};
describe('jss-default-unit', function () {

@@ -24,3 +30,3 @@ var jss = void 0;

beforeEach(function () {
jss = (0, _jss.create)().use((0, _index2['default'])({ 'min-width': 'pc' }));
jss = (0, _jss.create)(settings).use((0, _index2['default'])({ 'min-width': 'pc' }));
});

@@ -36,3 +42,3 @@

}
}, { named: false });
});
});

@@ -45,3 +51,3 @@

it('should generate correct CSS', function () {
(0, _expect2['default'])(sheet.toString()).to.be('a {\n' + ' zoom: 1;\n' + '}');
(0, _expect2['default'])(sheet.toString()).to.be('.a-id {\n' + ' zoom: 1;\n' + '}');
});

@@ -58,3 +64,3 @@ });

}
}, { named: false });
});
});

@@ -67,3 +73,3 @@

it('should generate correct CSS', function () {
(0, _expect2['default'])(sheet.toString()).to.be('a {\n' + ' width: 10px;\n' + '}');
(0, _expect2['default'])(sheet.toString()).to.be('.a-id {\n' + ' width: 10px;\n' + '}');
});

@@ -80,3 +86,3 @@ });

}
}, { named: false });
});
});

@@ -89,3 +95,3 @@

it('should generate correct CSS', function () {
(0, _expect2['default'])(sheet.toString()).to.be('a {\n' + ' animation-duration: 200ms;\n' + '}');
(0, _expect2['default'])(sheet.toString()).to.be('.a-id {\n' + ' animation-duration: 200ms;\n' + '}');
});

@@ -102,3 +108,3 @@ });

}
}, { named: false });
});
});

@@ -111,3 +117,3 @@

it('should generate correct CSS', function () {
(0, _expect2['default'])(sheet.toString()).to.be('a {\n' + ' transform-origin-x: 50%;\n' + '}');
(0, _expect2['default'])(sheet.toString()).to.be('.a-id {\n' + ' transform-origin-x: 50%;\n' + '}');
});

@@ -126,3 +132,3 @@ });

'@media print': {
button: {
a: {
'border-left': 1,

@@ -137,7 +143,7 @@ border: 3

}
}, { named: false });
});
});
it('should generate correct CSS', function () {
(0, _expect2['default'])(sheet.toString()).to.be('@font-face {\n' + ' font-family: MyHelvetica;\n' + ' src: local("Helvetica");\n' + '}\n' + '@media print {\n' + ' button {\n' + ' border-left: 1px;\n' + ' border: 3px;\n' + ' }\n' + '}\n' + '@keyframes id {\n' + ' from {\n' + ' top: 0;\n' + ' }\n' + ' 30% {\n' + ' top: 30px;\n' + ' }\n' + ' 60%, 70% {\n' + ' top: 80px;\n' + ' }\n' + '}');
(0, _expect2['default'])(sheet.toString()).to.be('@font-face {\n' + ' font-family: MyHelvetica;\n' + ' src: local("Helvetica");\n' + '}\n' + '@media print {\n' + ' .a-id {\n' + ' border-left: 1px;\n' + ' border: 3px;\n' + ' }\n' + '}\n' + '@keyframes id {\n' + ' from {\n' + ' top: 0;\n' + ' }\n' + ' 30% {\n' + ' top: 30px;\n' + ' }\n' + ' 60%, 70% {\n' + ' top: 80px;\n' + ' }\n' + '}');
});

@@ -154,3 +160,3 @@ });

}
}, { named: false });
});
});

@@ -163,3 +169,3 @@

it('should generate correct CSS', function () {
(0, _expect2['default'])(sheet.toString()).to.be('a {\n' + ' background-size: 10px, 15px;\n' + '}');
(0, _expect2['default'])(sheet.toString()).to.be('.a-id {\n' + ' background-size: 10px, 15px;\n' + '}');
});

@@ -176,3 +182,3 @@ });

}
}, { named: false });
});
});

@@ -185,3 +191,3 @@

it('should generate correct CSS', function () {
(0, _expect2['default'])(sheet.toString()).to.be('a {\n' + ' background-size: 10px 5px;\n' + '}');
(0, _expect2['default'])(sheet.toString()).to.be('.a-id {\n' + ' background-size: 10px 5px;\n' + '}');
});

@@ -198,3 +204,3 @@ });

}
}, { named: false });
});
});

@@ -207,3 +213,3 @@

it('should generate correct CSS', function () {
(0, _expect2['default'])(sheet.toString()).to.be('a {\n' + ' min-width: 20pc;\n' + '}');
(0, _expect2['default'])(sheet.toString()).to.be('.a-id {\n' + ' min-width: 20pc;\n' + '}');
});

@@ -221,3 +227,3 @@ });

}
}, { named: false });
});
});

@@ -230,3 +236,3 @@

it('should generate correct CSS', function () {
(0, _expect2['default'])(sheet.toString()).to.be('a {\n' + ' padding: 10px;\n' + '}');
(0, _expect2['default'])(sheet.toString()).to.be('.a-id {\n' + ' padding: 10px;\n' + '}');
});

@@ -239,3 +245,3 @@ });

beforeEach(function () {
var localJss = (0, _jss.create)().use((0, _index2['default'])(), (0, _jssExpand2['default'])());
var localJss = (0, _jss.create)(settings).use((0, _index2['default'])(), (0, _jssExpand2['default'])());
sheet = localJss.createStyleSheet({

@@ -252,3 +258,3 @@ a: {

}
}, { named: false });
});
});

@@ -262,3 +268,3 @@

it('should generate correct CSS', function () {
(0, _expect2['default'])(sheet.toString()).to.be('a {\n' + ' padding: 5px;\n' + ' padding: 0;\n' + '}\n' + 'b {\n' + ' padding: 5px;\n' + ' padding: 10px;\n' + ' padding: 0;\n' + '}');
(0, _expect2['default'])(sheet.toString()).to.be('.a-id {\n' + ' padding: 5px;\n' + ' padding: 0;\n' + '}\n' + '.b-id {\n' + ' padding: 5px;\n' + ' padding: 10px;\n' + ' padding: 0;\n' + '}');
});

@@ -271,3 +277,3 @@ });

beforeEach(function () {
var localJss = (0, _jss.create)().use((0, _index2['default'])({ 'padding-top': 'rem' }), (0, _jssExpand2['default'])());
var localJss = (0, _jss.create)(settings).use((0, _index2['default'])({ 'padding-top': 'rem' }), (0, _jssExpand2['default'])());
sheet = localJss.createStyleSheet({

@@ -282,3 +288,3 @@ a: {

}
}, { named: false });
});
});

@@ -291,3 +297,3 @@

it('should generate correct CSS', function () {
(0, _expect2['default'])(sheet.toString()).to.be('a {\n' + ' padding: 5rem 10px 15px 0;\n' + '}');
(0, _expect2['default'])(sheet.toString()).to.be('.a-id {\n' + ' padding: 5rem 10px 15px 0;\n' + '}');
});

@@ -300,3 +306,3 @@ });

beforeEach(function () {
var localJss = (0, _jss.create)().use((0, _index2['default'])(), (0, _jssExpand2['default'])());
var localJss = (0, _jss.create)(settings).use((0, _index2['default'])(), (0, _jssExpand2['default'])());
sheet = localJss.createStyleSheet({

@@ -315,3 +321,3 @@ a: {

}
}, { named: false });
});
});

@@ -324,5 +330,5 @@

it('should generate correct CSS', function () {
(0, _expect2['default'])(sheet.toString()).to.be('a {\n' + ' transition: opacity 200ms linear 100ms, transform 300ms linear;\n' + '}');
(0, _expect2['default'])(sheet.toString()).to.be('.a-id {\n' + ' transition: opacity 200ms linear 100ms, transform 300ms linear;\n' + '}');
});
});
});

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