@cryptic-css/core
Advanced tools
Comparing version 5.0.0 to 5.0.1
@@ -20,2 +20,3 @@ - new Map structure => performance | ||
- unit option removed | ||
- automatic react runtime support | ||
@@ -22,0 +23,0 @@ babel-plugin: |
@@ -6,2 +6,10 @@ # Change Log | ||
## [5.0.1](https://github.com/wintercounter/ccss/compare/v5.0.0...v5.0.1) (2021-01-03) | ||
**Note:** Version bump only for package @cryptic-css/core | ||
# [5.0.0](https://github.com/wintercounter/ccss/compare/v5.0.0-alpha.3...v5.0.0) (2021-01-02) | ||
@@ -8,0 +16,0 @@ |
@@ -243,3 +243,11 @@ // @ts-nocheck | ||
}); | ||
it('can handle true/false maps', () => { | ||
expect(ccss({ | ||
op: true | ||
})).toBe(`opacity: 1;`); | ||
expect(ccss({ | ||
op: false | ||
})).toBe(`opacity: 0;`); | ||
}); | ||
}); | ||
}); |
@@ -236,3 +236,11 @@ "use strict"; | ||
}); | ||
it('can handle true/false maps', () => { | ||
expect(ccss({ | ||
op: true | ||
})).toBe("opacity: 1;"); | ||
expect(ccss({ | ||
op: false | ||
})).toBe("opacity: 0;"); | ||
}); | ||
}); | ||
}); |
@@ -1,3 +0,3 @@ | ||
import { CCSSOutputTransformer } from '@/types'; | ||
import { CCSSOutputTransformer } from './types'; | ||
export declare const objectOutputTransformer: CCSSOutputTransformer; | ||
export declare const stringOutputTransformer: CCSSOutputTransformer; |
@@ -1,2 +0,2 @@ | ||
import { CCSSParser } from '@/types'; | ||
import { CCSSParser } from './types'; | ||
export declare const parseSingle: CCSSParser; | ||
@@ -3,0 +3,0 @@ export declare const parseArray: CCSSParser; |
@@ -96,3 +96,3 @@ "use strict"; | ||
w: 'wrap' | ||
}, toCSSRuleHandler], [['fb', 'flex-basis'], nil, fromArrayToCSSRuleHandler], [['ff', 'flex-flow'], nil, toCSSRuleHandler], [['fg', 'flex-grow'], nil, toCSSRuleHandler], [['fs', 'flex-shrink'], nil, toCSSRuleHandler], [['ai', 'align-items'], getAligns(), toCSSRuleHandler], [['ac', 'align-content'], getAligns(), toCSSRuleHandler], [['ji', 'justify-items'], getAligns(), toCSSRuleHandler], [['jc', 'justify-content'], getAligns(), toCSSRuleHandler], [['aS', 'align-self'], nil, toCSSRuleHandler], [['jS', 'justify-self'], nil, toCSSRuleHandler], // Font + text related | ||
}, toCSSRuleHandler], [['fb', 'flex-basis'], nil, fromArrayToCSSRuleHandler], [['ff', 'flex-flow'], nil, toCSSRuleHandler], [['fg', 'flex-grow'], nil, toCSSRuleHandler], [['fs', 'flex-shrink'], nil, toCSSRuleHandler], [['ai', 'align-items'], getAligns(), toCSSRuleHandler], [['ac', 'align-content'], getAligns(), toCSSRuleHandler], [['ji', 'justify-items'], getAligns(), toCSSRuleHandler], [['jc', 'justify-content'], getAligns(), toCSSRuleHandler], [['aS', 'align-self'], getAligns(), toCSSRuleHandler], [['jS', 'justify-self'], getAligns(), toCSSRuleHandler], // Font + text related | ||
[['ft', 'font'], nil, toCSSRuleHandler], [['ftf', 'font-family'], nil, toCSSRuleHandler], [['ftk', 'font-kerning'], nil, toCSSRuleHandler], [['fts', 'font-size'], nil, fromArrayToCSSRuleHandler], [['ftStr', 'font-stretch'], { | ||
@@ -261,3 +261,3 @@ uc: 'ultra-condensed', | ||
// @ts-ignore | ||
[false]: 0 | ||
false: 0 | ||
}, toCSSRuleHandler], [['or', 'order'], nil, toCSSRuleHandler], [['ol', 'outline'], nil, toCSSRuleHandler], [['mbm', 'mix-blend-mode'], { | ||
@@ -264,0 +264,0 @@ n: 'normal', |
@@ -89,3 +89,3 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } | ||
w: 'wrap' | ||
}, toCSSRuleHandler], [['fb', 'flex-basis'], nil, fromArrayToCSSRuleHandler], [['ff', 'flex-flow'], nil, toCSSRuleHandler], [['fg', 'flex-grow'], nil, toCSSRuleHandler], [['fs', 'flex-shrink'], nil, toCSSRuleHandler], [['ai', 'align-items'], getAligns(), toCSSRuleHandler], [['ac', 'align-content'], getAligns(), toCSSRuleHandler], [['ji', 'justify-items'], getAligns(), toCSSRuleHandler], [['jc', 'justify-content'], getAligns(), toCSSRuleHandler], [['aS', 'align-self'], nil, toCSSRuleHandler], [['jS', 'justify-self'], nil, toCSSRuleHandler], // Font + text related | ||
}, toCSSRuleHandler], [['fb', 'flex-basis'], nil, fromArrayToCSSRuleHandler], [['ff', 'flex-flow'], nil, toCSSRuleHandler], [['fg', 'flex-grow'], nil, toCSSRuleHandler], [['fs', 'flex-shrink'], nil, toCSSRuleHandler], [['ai', 'align-items'], getAligns(), toCSSRuleHandler], [['ac', 'align-content'], getAligns(), toCSSRuleHandler], [['ji', 'justify-items'], getAligns(), toCSSRuleHandler], [['jc', 'justify-content'], getAligns(), toCSSRuleHandler], [['aS', 'align-self'], getAligns(), toCSSRuleHandler], [['jS', 'justify-self'], getAligns(), toCSSRuleHandler], // Font + text related | ||
[['ft', 'font'], nil, toCSSRuleHandler], [['ftf', 'font-family'], nil, toCSSRuleHandler], [['ftk', 'font-kerning'], nil, toCSSRuleHandler], [['fts', 'font-size'], nil, fromArrayToCSSRuleHandler], [['ftStr', 'font-stretch'], { | ||
@@ -254,3 +254,3 @@ uc: 'ultra-condensed', | ||
// @ts-ignore | ||
[false]: 0 | ||
false: 0 | ||
}, toCSSRuleHandler], [['or', 'order'], nil, toCSSRuleHandler], [['ol', 'outline'], nil, toCSSRuleHandler], [['mbm', 'mix-blend-mode'], { | ||
@@ -257,0 +257,0 @@ n: 'normal', |
{ | ||
"name": "@cryptic-css/core", | ||
"version": "5.0.0", | ||
"version": "5.0.1", | ||
"description": "> TODO: description", | ||
@@ -81,4 +81,4 @@ "author": "Viktor Vincze <viktor.vincze@doclerholding.com>", | ||
"csstype": "^3.0.5", | ||
"transformed": "^1.1.1" | ||
"transformed": "^1.1.4" | ||
} | ||
} |
@@ -234,3 +234,16 @@ // @ts-nocheck | ||
}) | ||
it('can handle true/false maps', () => { | ||
expect( | ||
ccss({ | ||
op: true | ||
}) | ||
).toBe(`opacity: 1;`) | ||
expect( | ||
ccss({ | ||
op: false | ||
}) | ||
).toBe(`opacity: 0;`) | ||
}) | ||
}) | ||
}) |
@@ -175,4 +175,4 @@ import { Props } from 'transformed' | ||
[['jc', 'justify-content'], getAligns(), toCSSRuleHandler], | ||
[['aS', 'align-self'], nil, toCSSRuleHandler], | ||
[['jS', 'justify-self'], nil, toCSSRuleHandler], | ||
[['aS', 'align-self'], getAligns(), toCSSRuleHandler], | ||
[['jS', 'justify-self'], getAligns(), toCSSRuleHandler], | ||
@@ -617,3 +617,3 @@ // Font + text related | ||
// @ts-ignore | ||
[false]: 0 | ||
false: 0 | ||
}, | ||
@@ -620,0 +620,0 @@ toCSSRuleHandler |
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
8544
1054879
Updatedtransformed@^1.1.4