3698 Commits

Author SHA1 Message Date
Robin Malfait
bfc61625d9
[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-04-30 10:58:40 -04:00
Ayrton De Craene
54aa5be7ce
Return rgb values if the opacity core plugins are disabled (#3984) 2021-04-30 09:45:50 -04:00
Axel Hernández Ferrera
fbc0f2fca0
Improve @apply performance (#3718)
* Split the buildUtilityMap function to memoize the static part

* fix tests
2021-04-30 09:34:18 -04:00
Adam Wathan
f9d54f0382 Refactor preserving rgb/hsl when adding alpha channel 2021-04-30 09:27:56 -04:00
Federico Ciardi
92bb81e647
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-04-30 09:09:58 -04:00
Nurettin Kaya
b80b5bb1a3
[JIT] Support CSS Variables in arbitrary calc (#4147) 2021-04-30 09:00:36 -04:00
Brad Cornes
44eddadf18
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-04-30 08:59:04 -04:00
depfu[bot]
3843700470 Update chalk to version 4.1.1 2021-04-29 04:43:17 +00:00
depfu[bot]
0c19e409f7 Update postcss-selector-parser to version 6.0.5 2021-04-28 08:08:49 +00:00
depfu[bot]
c820770996 Update all of babel7 to version 7.13.16 2021-04-28 06:20:39 +00:00
depfu[bot]
9b1e843b70 Update eslint to version 7.24.0 2021-04-23 21:18:04 +00:00
Adam Wathan
db8434116e Fix typo 2021-04-23 14:30:19 -04:00
Adam Wathan
23b71a9a36 Update changelog 2021-04-23 14:29:26 -04:00
Adam Wathan
cfe038c503 Rebuild test fixtures 2021-04-23 14:28:22 -04:00
Adam Wathan
83ef3e7b74 Update changelog 2021-04-23 14:27:29 -04:00
David Luhr
01f80702ad 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-04-23 14:27:29 -04:00
Adam Wathan
f32884ca79 2.1.2 2021-04-23 14:27:29 -04:00
Brad Cornes
2e01cd81ab always clone rule when applying variants 2021-04-23 14:17:12 -04:00
Jan Schär
5a6a3f11e2 Fix media queries with jit and postcss7 (#4034) (#4078) 2021-04-23 14:17:12 -04:00
depfu[bot]
6e70edc70c Update eslint-plugin-prettier to version 3.4.0 2021-04-23 14:17:12 -04:00
Simon Vrachliotis
1b8f8e2312 rebuilding fixtures to update Tailwind version (#4091) 2021-04-23 14:17:12 -04:00
Simon Vrachliotis
921e359e05
Update 1.bug_report.yml 2021-04-20 22:23:52 +10:00
Simon Vrachliotis
36f1602445
Update 1.bug_report.yml 2021-04-20 22:23:21 +10:00
Simon Vrachliotis
121b1d80d3
Update 1.bug_report.yml 2021-04-20 22:21:58 +10:00
Adam Wathan
e5c41bb779
Update 1.bug_report.yml 2021-04-10 09:24:58 -04:00
Adam Wathan
e721acef0b
Update 1.bug_report.yml 2021-04-08 19:35:38 -04:00
Robin Malfait
59f3f53cbb
2.1.1 v2.1.1 2021-04-06 00:13:49 +02:00
Robin Malfait
6ed835cb71
Fix invalid arg type (#3978)
* default to `tailwind.css` file when no input is given

* skip undefined files

* update forgotten test fixtures
2021-04-06 00:12:52 +02:00
Adam Wathan
8bce53b9ca 2.1.0 v2.1.0 2021-04-05 14:42:19 -04:00
Adam Wathan
37519186b6 Bundle jit folder 2021-04-05 13:32:16 -04:00
Adam Wathan
db3f97a21b Escape commas in native escapeClassName and nameClass functions 2021-04-05 11:03:54 -04:00
Adam Wathan
46c6829700 Update changelog 2021-04-05 07:36:01 -04:00
Adam Wathan
60a06788fe
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-04-04 19:09:34 -04:00
Adam Wathan
38661c3a4f Update changelog 2021-04-04 06:54:59 -04:00
Peter Neupauer
0b5f5e932a
Add list-item display utility (#3929)
Signed-off-by: Peter Neupauer <peter@neupauer.sk>
2021-04-04 06:53:41 -04:00
Adam Wathan
1cb060d34e
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-04-04 06:50:05 -04:00
Adam Wathan
21a96af143 Derive JIT display utilities from AOT display plugin 2021-04-03 06:52:20 -04:00
Erik Verbeek
48d7648938
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-04-03 06:45:52 -04:00
Adam Wathan
9e705dbb99 Remove justify-auto and place-items-auto
These CSS values don't even exist.
2021-04-03 06:41:44 -04:00
Adam Wathan
d76c6a998c Update changelog 2021-04-02 16:33:04 -04:00
Adam Wathan
e1e66e3848
Add isolation utilities (#3914) 2021-04-02 16:32:25 -04:00
depfu[bot]
b1aac5199f Update postcss-nested to version 5.0.5 2021-04-02 20:12:54 +00:00
Adam Wathan
e9a720c489 Update changelog 2021-04-02 16:05:47 -04:00
Adam Wathan
8c07172726
Add box-decoration-break utilities (#3911) 2021-04-02 16:04:52 -04:00
Adam Wathan
e75c5e7e6d Update changelog 2021-04-02 15:22:10 -04:00
Robin Malfait
784af4313a 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-04-02 15:13:21 -04:00
Robin Malfait
da2e0da3eb pin postcss-nested to 5.0.1 2021-04-02 15:13:21 -04:00
Robin Malfait
789b0452b5 swap yarn.lock for package-lock.json 2021-04-02 15:13:21 -04:00
Robin Malfait
1bda5f5dab use package-lock.json in CI 2021-04-02 15:13:21 -04:00
Adam Wathan
fea75a0c8d Don't crash if failing to remove a touch file (race condition) 2021-04-02 14:34:50 -04:00