Commit graph

4079 commits

Author SHA1 Message Date
Robin Malfait
d497777202 [WIP] Unify JIT and AOT code paths (#4188)
* WIP

* WIP

* Finish combining JIT and AOT plugins

Still lots of clean up that can be done in some of the more complex ones, but at least it's one file per plugin now.

* Remove unused import

* Fix AOT generation bugs

* Move corePlugins/index.js to corePlugins.js

* Convert JIT files to ESM

* Move tests

* Reorder core plugins to match JIT order

* Update AOT apply tests

* Unify utils

* Combine plugin lists to one single source of truth

* Finish resolving merge conflicts, fix tests

Co-authored-by: Adam Wathan <adam.wathan@gmail.com>
2021-05-07 13:56:15 -04:00
Ayrton De Craene
7112e21e0e Return rgb values if the opacity core plugins are disabled (#3984) 2021-05-07 13:56:14 -04:00
Axel Hernández Ferrera
ed1727ab86 Improve @apply performance (#3718)
* Split the buildUtilityMap function to memoize the static part

* fix tests
2021-05-07 13:56:14 -04:00
Adam Wathan
57102aaa5a Refactor preserving rgb/hsl when adding alpha channel 2021-05-07 13:56:14 -04:00
Federico Ciardi
4daf57e543 feat: transform hsl to hsla (#3850)
* feat: transform `hsl` to `hsla`

* feat: update plugins using `toRgba`

* Test `gradientColorStops`

* Add test for `ringWidth`

* Add percentage symbol after Saturation and Lightness
2021-05-07 13:56:14 -04:00
Nurettin Kaya
7c0e4bce4d [JIT] Support CSS Variables in arbitrary calc (#4147) 2021-05-07 13:56:14 -04:00
Brad Cornes
2db2f60393 Account for Svelte class bindings at the start of a line (#4187)
* add failing svelte syntax test case

* account for svelte class bindings at the start of a line
2021-05-07 13:56:14 -04:00
depfu[bot]
1385fa7869 Update chalk to version 4.1.1 2021-05-07 13:56:14 -04:00
depfu[bot]
e0bf3f19b9 Update postcss-selector-parser to version 6.0.5 2021-05-07 13:56:14 -04:00
depfu[bot]
05d1ed3e7e Update all of babel7 to version 7.13.16 2021-05-07 13:56:14 -04:00
depfu[bot]
2ea95522f9 Update eslint to version 7.24.0 2021-05-07 13:56:14 -04:00
Adam Wathan
65983f6836 Fix typo 2021-05-07 13:56:14 -04:00
Adam Wathan
e72356872f Update changelog 2021-05-07 13:56:14 -04:00
Adam Wathan
2fa4476fa0 Rebuild test fixtures 2021-05-07 13:56:14 -04:00
Adam Wathan
1694391d57 Update changelog 2021-05-07 13:56:14 -04:00
David Luhr
6c7f3c8f8c Add background-origin utilities (#4117)
* Add background-origin utilities

* Update fixtures

* Update basic usage test

* Change sort order for background origin

* Move background origin after other background properties
2021-05-07 13:56:14 -04:00
Adam Wathan
96ade27de4 2.1.2 2021-05-07 13:56:14 -04:00
Brad Cornes
ccd5177a19 always clone rule when applying variants 2021-05-07 13:56:14 -04:00
Jan Schär
aa4723f970 Fix media queries with jit and postcss7 (#4034) (#4078) 2021-05-07 13:56:14 -04:00
depfu[bot]
b175b2802e Update eslint-plugin-prettier to version 3.4.0 2021-05-07 13:56:14 -04:00
Simon Vrachliotis
327b3c99e2 rebuilding fixtures to update Tailwind version (#4091) 2021-05-07 13:56:14 -04:00
Simon Vrachliotis
f1f75d7900 Update 1.bug_report.yml 2021-05-07 13:56:14 -04:00
Simon Vrachliotis
0c40f9b10f Update 1.bug_report.yml 2021-05-07 13:56:13 -04:00
Simon Vrachliotis
8cb636f67c Update 1.bug_report.yml 2021-05-07 13:56:13 -04:00
Adam Wathan
acf6e787b4 Update 1.bug_report.yml 2021-05-07 13:56:13 -04:00
Adam Wathan
300d7f3f5a Update 1.bug_report.yml 2021-05-07 13:56:13 -04:00
Robin Malfait
652ab32634 2.1.1 2021-05-07 13:56:13 -04:00
Robin Malfait
9546d337e6 Fix invalid arg type (#3978)
* default to `tailwind.css` file when no input is given

* skip undefined files

* update forgotten test fixtures
2021-05-07 13:56:13 -04:00
Adam Wathan
ca9e40ef67 2.1.0 2021-05-07 13:56:13 -04:00
Adam Wathan
c4ff01cb70 Bundle jit folder 2021-05-07 13:56:13 -04:00
Adam Wathan
59b7396365 Escape commas in native escapeClassName and nameClass functions 2021-05-07 13:56:13 -04:00
Adam Wathan
0f2352c392 Update changelog 2021-05-07 13:56:13 -04:00
Adam Wathan
a05b36996b Add CSS filter support (#3923)
* Implement `filter` helper classes with all methods

* Rename filter plugins/utilities, drop filter opacity, add drop shadow

* Remove non-final default filter values

* Working on default filter values, add basic JIT support

* Working on blur values

* New blur values (these are ~okay)

* Match drop-shadow values to box-shadows by eye as best as possible

* Update tests

* Fix kitchen sink test

* Add filter variants configuration

* Move drop-shadow to end of filters list

Co-Authored-By: Peter Neupauer <peter@neupauer.sk>

* Add invert variants configuration

* Add backdrop-filter utilities

* Update tests

* Transition filters by default

* Alphabetize new config keys

* Optimize filter plugins for JIT + add arbitrary value support

Except for drop-shadow, will add that once we can think it through a bit.

Co-authored-by: Nick Schmidt <nick@kreativgebiet.com>
Co-authored-by: Peter Neupauer <peter@neupauer.sk>
2021-05-07 13:56:13 -04:00
Adam Wathan
359ce6be32 Update changelog 2021-05-07 13:56:13 -04:00
Peter Neupauer
04a1771700 Add list-item display utility (#3929)
Signed-off-by: Peter Neupauer <peter@neupauer.sk>
2021-05-07 13:56:13 -04:00
Adam Wathan
f34214eccc Add mix-blend-mode and background-blend-mode utilities (#3920)
* Add mix-blend-mode utilities

* Rename mix-blend-mode utilities to `mix-blend-*`

Co-Authored-By: Peter Neupauer <peter@neupauer.sk>

* Add `background-blend-mode` utilities

Co-Authored-By: Peter Neupauer <peter@neupauer.sk>

Co-authored-by: Peter Neupauer <peter@neupauer.sk>
2021-05-07 13:56:13 -04:00
Adam Wathan
7a5c73878f Derive JIT display utilities from AOT display plugin 2021-05-07 13:56:13 -04:00
Erik Verbeek
49461d9e7a Added support for display : inline-table (#3563)
* Added support for display : inline-table

* Moved the inline-table class to the suggested spot and updated the tests

Co-authored-by: Erik Verbeek <erik@evidencio.com>
2021-05-07 13:56:12 -04:00
Adam Wathan
ab41845a78 Remove justify-auto and place-items-auto
These CSS values don't even exist.
2021-05-07 13:56:12 -04:00
Adam Wathan
23692d6d25 Update changelog 2021-05-07 13:56:12 -04:00
Adam Wathan
9c454e1d4b Add isolation utilities (#3914) 2021-05-07 13:56:12 -04:00
depfu[bot]
4718fa183c Update postcss-nested to version 5.0.5 2021-05-07 13:56:12 -04:00
Adam Wathan
8c97802b4f Update changelog 2021-05-07 13:56:12 -04:00
Adam Wathan
77ca74bb88 Add box-decoration-break utilities (#3911) 2021-05-07 13:56:12 -04:00
Adam Wathan
5c85c427fc Update changelog 2021-05-07 13:56:12 -04:00
Robin Malfait
c8acc1305d check for different -webkit prefix test
The tests started failing because `-webkit-max-content` is not needed
anymore. So instead we are now checking for `-webkit-background-clip`.

If this happens in the future, we could check for ` -webkit-` (notice
the space in front) so that we dont test for hardcoded
`::-webkit-inner-spin-button`.
2021-05-07 13:56:12 -04:00
Robin Malfait
1c7a848002 pin postcss-nested to 5.0.1 2021-05-07 13:56:12 -04:00
Robin Malfait
5297c83399 swap yarn.lock for package-lock.json 2021-05-07 13:56:12 -04:00
Robin Malfait
ec6d91d68c use package-lock.json in CI 2021-05-07 13:56:12 -04:00
Adam Wathan
0990b83755 Don't crash if failing to remove a touch file (race condition) 2021-05-07 13:56:12 -04:00