Skip to content

Commit

Permalink
(split)Sheets management for css() (cssinjs#1137)
Browse files Browse the repository at this point in the history
* initial verion of css innterface

* use string based cache, which can be optimized later with a babel plugin

* merge labels

* support arrays

* check cache early

* implement composition

* add flow types [ci skip]

* fix tests, export types

* Update packages/css-jss/src/index.js

use createCss directly

Co-Authored-By: Henri <henribeck.dev@gmail.com>

* cr changes

* dedupe labels

* changelog

* revert browsers.json changes

* create new sheets when rules amount is too high

* changelog
  • Loading branch information
kof committed Jun 21, 2019
1 parent d30b6d4 commit 42402f7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions .size-snapshot.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"dist/react-jss.js": {
"bundled": 167824,
"minified": 58073,
"gzipped": 18921
"bundled": 168182,
"minified": 58162,
"gzipped": 18963
},
"dist/react-jss.min.js": {
"bundled": 111099,
"minified": 41427,
"gzipped": 13983
"bundled": 111457,
"minified": 41516,
"gzipped": 14027
},
"dist/react-jss.cjs.js": {
"bundled": 26174,
Expand Down
4 changes: 2 additions & 2 deletions src/jsx.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ const jsx = (...args) => currJsx(...args)

describe('React-JSS: jsx', () => {
beforeEach(() => {
const sheet = createJss({createGenerateId}).createStyleSheet()
const css = createCss(sheet)
const jss = createJss({createGenerateId})
const css = createCss(jss)
currJsx = createJsx(css)
})

Expand Down

0 comments on commit 42402f7

Please sign in to comment.