Commit Graph

221 Commits

Author SHA1 Message Date
Evan Jacobs
7d6308fffa use @emotion/stylis (#2640)
* use @emotion/stylis

Drops the bundle size by a fair amount... the downside is you
can't customize stylis options anymore but still can supply plugins.

This is desirable according to Sultan though as the config interface
will change with the next stylis major.

* reimplement "stylisOptions" as "disableVendorPrefixes"
2019-06-21 14:24:58 -05:00
Evan Jacobs
da58f018f8 update internally to later babel-plugin-styled-components 2019-06-20 00:04:06 -05:00
Evan Jacobs
427c78dc8e add @babel/traverse, update flowtypes 2019-06-20 00:04:06 -05:00
Evan Jacobs
3c7606a272 update prop validator 2019-06-10 22:02:30 -05:00
Evan Jacobs
376d1cbaed fix #2613 2019-06-10 17:42:25 -05:00
Evan Jacobs
4950db7b08 update benchmark examples & rewrite a few with more idiomatic examples 2019-06-10 14:25:11 -05:00
Evan Jacobs
43c5e3b006 peer dependency & globals adjustments for bundle size (#2588)
* add react-is to rollup globals now that it's a peerDep

(cherry picked from commit 84d973b3e1e8d16ba7529ed29966d7f0e90bcb19)

* move prop-types to peerDeps

brings our bundle size down a bit more

* upgrade rollup

* Revert "move prop-types to peerDeps"

This reverts commit 70fbda3e683a5bf7351dc450442e1812d38f7b3d.

* just remove the stylesheet manager proptypes since rollup isn't doing its job

when the TS types get updated intellisense will do its thing in
VSCode, so shouldn't be too big of a deal

* pull up changelog from 4.x
2019-06-05 16:08:37 -05:00
Evan Jacobs
3be9eca255 implement defaultProps folding for v5 2019-06-05 15:52:04 -05:00
Evan Jacobs
8c1cf449e7 update flow to 0.100 2019-06-05 15:52:04 -05:00
Evan Jacobs
1d38fc4573 run all tests except integration ones for now
until jest-styled-components is updated to support v5
2019-06-02 19:51:54 -05:00
Evan Jacobs
3cdb23b5c6 use shallowequal for equivalency checking instead (#2585)
* use shallowequal for equivalency checking instead

* fix yarn.lock
2019-06-02 14:14:44 -05:00
Evan Jacobs
87af0b396c allow dynamic creation & configuration of stylis per stylesheet (#2565)
* [WIP] allow dynamic creation & configuration of stylis per stylesheet

* middlewares -> plugins

* type the stringifier function

* add a test for customized stylis options

* fix impl

* move tests, add test for stylis-rtl plugin

* add comment on stylis context phase
2019-05-30 09:35:32 -05:00
Phil Pluckthun
cad0d2c303 Revert benchmarks to vendored SC v4 2019-05-02 12:15:18 +01:00
Evan Jacobs
35287b3b01 fix local setup I think 2019-05-02 12:15:15 +01:00
Phil Pluckthun
57b0eacf6f Add styled-components v4 to benchmarks 2019-05-02 12:15:15 +01:00
Evan Jacobs
30ff3ba10d update benchmark emotion example to v10 w/ styled syntax (#2525)
to match how we're doing things with styled-components
2019-05-01 20:16:21 -05:00
Phil Plückthun
0ed6f4efa8 Fix benchmarks for canary (#2523)
* Move benchmarks to separate package and upgrade

* Add benchmarks to flow's ignored files

* Limit Sail build task to styled-components pkg
2019-05-01 18:52:16 +01:00
Phil Pluckthun
f0289d1d6e Fix more configs after upgrade 2019-04-19 18:03:53 -04:00
Phil Pluckthun
5503be5689 Upgrade babel to v7 2019-04-19 18:03:53 -04:00
Phil Pluckthun
ca6fe8f16c Clean up package.json and remove lerna (for now?) 2019-04-19 18:03:53 -04:00
Jessica Franco
2bd1070bcf Reimplement StyledComponent using hooks (#2390)
* Migrate Providers to use hooks

* Migrate createGlobalStyle to use hooks

* Minor refactor

* Fix integration tests

* Bump react version

* Add eslint-plugin-react-hooks

* Fist iteration of migrating StyledComponent

* Fix attrs

* Fix sandbox react error

Removes the "Hooks can only be called inside the body of a function component" error

* Temporary skip classNameUsageCheckInjector tests

* Bump eslint-plugin-react-hooks version

* Bump react-is dependency

* Move warnings to the component instance

* Update flow (needed for hook types)

* Refactor StyleSheetContext, fix some Flow errors

* WIP refactoring of StyledComponent

* More WIP

* More progress; flow passes!

* Fix test:web

* Remove useless refs from createGlobalStyle, fix effect, add more DebugValue

* Update react version in integration test
2019-04-18 13:38:20 +01:00
Alexander Nanberg
cbcffa4f77 chore: upgrade sandbox dependencies 2019-01-24 13:56:34 +01:00
Bhargav Ponnapalli
4aa2fdbb3b Move to a mono-repo structure
wip

Add gitignore and edit rollup config

Update gitignore

Wip

WIP

Get rid of older json files and use js files to extend across pkgs later

Make test:native work again, thanks to @SimenB

No haste and get integration test to work

Update husky

Update package.json

Update travis and appveyor

Add lint script

Update sandbox

Update yarn version

Move eslint into sc package

Remove unnecessary files

Update lint-staged

Update CONTRIBUTING.md

Update version in lerna.json

Update contributing

Update scripts

Update contributing

Update contributing

Update contributing.md and publish script

Update contributing

v4.1.4-alpha.0

Update package json

Update lerna version

v4.1.4-alpha.0

v4.1.4-alpha.1

Independent version for sandbox and styled-components

Yarn instead of npm

Add readme to styled-components package to show up on npm

Publish

 - styled-components@4.1.4-alpha.2

Update prepublisOnly and contributing

Update gitignore

Publish

 - styled-components@4.1.4-alpha.3

Test without readme

Remove readme

Publish

 - styled-components@4.1.4-alpha.4

Copy readme prepublishOnly

Publish

 - styled-components@4.1.4-alpha.5
2019-01-18 21:04:15 +05:30
Max Stoiber
8cf278bf4e v4.1.3 (#2290)
* Update changelog

* Upgrade babel plugin dep

* v4.1.3

* fix version # in changelog
2019-01-15 00:30:59 -06:00
gretzky
2d82900867 update memoize-one 2018-12-19 14:23:20 -05:00
luc
9999e904e5 add @babel/helper-module-imports to package.json 2018-12-13 20:38:05 +08:00
Mateusz Burzyński
d45ef9d0ed Update @emotion/is-prop-valid (#2251) 2018-12-04 15:45:53 -05:00
Evan Jacobs
99fc4e0188 update lockfile 2018-11-12 09:55:07 -06:00
Viktor Havrylin
84d49e4003 Merge branch 'master' into add-px-to-unitless 2018-11-12 12:14:58 +02:00
Evan Jacobs
e9baf7200e minor devdependency upgrades 2018-11-12 01:17:46 -06:00
Evan Jacobs
49441eef3f don't do flow through eslint
it makes configuring IDEs a pain
2018-11-10 12:23:39 -06:00
Viktor Havrylin
2dd31f3471 rollback @emotion/is-prop-valid 2018-11-01 10:00:50 +02:00
Viktor Havrylin
512dfcce72 use @emotion/unitless 2018-11-01 09:34:40 +02:00
Evan Jacobs
5899e0fabb add supports-color dependency back
it's used in some of the postcss vendor files for react native
2018-10-29 17:45:30 -05:00
Evan Jacobs
12a8be40fc upgrade react-is, test against react 16.6 2018-10-25 00:15:12 -05:00
Evan Jacobs
1e57f63240 add integrity checks 2018-10-25 00:04:21 -05:00
Evan Scott
d59ebbf0c0 Revert "update is-prop-valid"
Latest release broke support for uppercase aria/data attrs.

This reverts commit af75481eaf.
2018-10-13 10:36:59 -05:00
Evan Scott
af75481eaf update is-prop-valid 2018-10-13 10:09:24 -05:00
Evan Scott
f379b7fa12 update flow 2018-10-09 18:58:07 -05:00
Evan Scott
3241d5666c devdep upgrades 2018-10-09 18:56:06 -05:00
Luc
4e40f85134 Add a babel-macro (#2032)
* create macro

* add sourceType module when using babel.template

* babel.types needs to be passed down to visitors

* add tests

* add pureAnnotation visitor from babel-plugin-styled-components

* add test with require()

* export 'styled-components/macro'

* add css to macro

* add keyframes to macro

* update test snapshots

* allow to import all helpers from src/index.js

* add error when tags are not used with template literals

* add test : should allow all helpers exported from styled-components

* add injectGlobal to taggedTemplateImports

* add missing tests and refactor tests

* add typescript types

* add flow types

* replace injectGlobal by createGlobalStyle

* just use babel-plugin-styled-components and apply to the whole file

* update babel-plugin-styled-components to 1.8.0

* remove typescript files

* add comments and fix styling of code

* generate allowedImports from src/index.js

* Remove unnecessary test to check allowedImports

* move babel-plugin-styled-components to peerDependencies

* fix tests : add babel-plugin-styled-components to devDependencies

* move babel-plugin-styled-components to deps, with a lenient version

* add macro to files

* add changelog entry
2018-10-08 16:37:34 -05:00
Bhargav Ponnapalli
2fa92508f8 As prop in attrs support 2018-10-04 06:58:14 +05:30
Evan Scott
48144f3eb2 react-primitives 0.6x 2018-09-30 16:44:56 -05:00
Evan Scott
5a7ce88ea6 react-native 0.56 2018-09-30 16:44:21 -05:00
Evan Scott
73cd729fa4 react-native v0.54 2018-09-30 15:17:15 -05:00
Evan Scott
8b8f9c0ffa update some rollup stuff 2018-09-30 14:47:33 -05:00
Evan Scott
8f5d1de3da more cleanup 2018-09-30 14:44:49 -05:00
Evan Scott
2d979e8d4b update css-to-react-native 2018-09-30 14:40:55 -05:00
Evan Scott
34eedaa9b0 upgrade testing & linting stuff 2018-09-30 14:38:21 -05:00
Evan Scott
bb09ec2dd9 update flow 2018-09-30 14:19:32 -05:00