3707 Commits

Author SHA1 Message Date
Adam Wathan
82f4eaa683 Ignore unknown types when hashing config 2021-05-06 13:16:32 -04:00
Adam Wathan
52e08306ea Update CHANGELOG 2021-05-06 10:06:34 -04:00
Robin Malfait
73877aef44
simplify animation tests and improve stability (#4250)
This will make sure that we tackle a few additional edge cases:

- When the `name` is the same as a reserved keyword, then it will be
  used as a `name` as well. E.g.: 1s ease ease infinite; Will result in
  a name of `ease` as well.
- We take care of trimming and multiple spaces.
- We don't generate 8k tests anymore, which means that these specific
  tests only take a second instead of 10 seconds.
2021-05-06 09:40:06 -04:00
Robin Malfait
6628eb00ca
Improve matchUtilities API and make it work with the AOT engine (#4232)
* implement matchUtilities2

* ensure animation names without keyframes are not prefixed

* remove matchBase

* call addUtilities for each group individually

* WIP: Write plugins using matchUtilities2

* MORE

* Fix arbitrary value support for fontSize

* Fixes, update fixtures

* Rebuild fixtures

* Don't generate `divide` class with no modifier

* Fixes, rebuild fixtures

* Rename matchUtilities2 to matchUtilities

* Delete bad tests

* Remove temp files GROSS

* Clean stuff up

* Support no return in matchUtilities

Co-authored-by: Adam Wathan <adam.wathan@gmail.com>
2021-05-05 15:23:32 +02:00
depfu[bot]
d76c55afc6 Update postcss to version 8.2.13 2021-05-03 12:47:04 +00:00
Adam Wathan
8f5903f873 Note new matchUtilities API design 2021-04-30 12:26:16 -04:00
Adam Wathan
1a1fc1c5c6 Refactor fontVariantNumeric to remove mode condition 2021-04-30 12:04:23 -04:00
Adam Wathan
61e2872fbc Remove support for returning an array of functions in matchUtilities
Can add again if we need it?
2021-04-30 11:38:23 -04:00
Adam Wathan
82942e7083 Very basic AOT matchUtilities support 2021-04-30 11:21:43 -04:00
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