Comparing version 0.3.2 to 0.3.3
@@ -84,3 +84,4 @@ declare type GwenTheme = { | ||
nthChild: (n: string | number, delta: (t: this) => this) => this; | ||
if: (condition: any, delta: (t: this) => this) => this; | ||
} | ||
export {}; |
@@ -114,2 +114,7 @@ "use strict"; | ||
this.nthChild = function (n, delta) { return _this.pseudo("&:nth-child(" + n + ")", delta); }; | ||
this.if = function (condition, delta) { | ||
if (condition) | ||
return delta(_this); | ||
return _this; | ||
}; | ||
this.className = emotion_1.css({}); | ||
@@ -116,0 +121,0 @@ this.finalTheme = __assign(__assign({}, this.defaultTheme), this.theme); |
{ | ||
"name": "gwen", | ||
"version": "0.3.2", | ||
"version": "0.3.3", | ||
"description": "A utility-first CSS library designed for brevity", | ||
@@ -5,0 +5,0 @@ "main": "./lib/src/index.js", |
Sorry, the diff of this file is not supported yet
704587
13258