Commit graph

5331 commits

Author SHA1 Message Date
depfu[bot]
a8ab341f1e Update vite to version 4.5.0 2023-11-02 08:43:21 +00:00
Jordan Pittman
b7bafaaf85 Update changelog 2023-10-30 14:48:26 -04:00
Jordan Pittman
cf97c2274a
Don’t output @config in CSS file after a rebuild (#12327) 2023-10-30 14:37:49 -04:00
Jordan Pittman
0985d26a54
Don’t add spaces to negative numbers following a comma (#12324)
* Don’t add spaces to negative numbers following a comma

* Update changelog
2023-10-30 10:47:24 -04:00
Jordan Pittman
8f788e27b0 Tweak comment 2023-10-30 09:09:00 -04:00
Adam Wathan
3c08490c96 Organize classic engine vs. Oxide engine entries in CHANGELOG 2023-10-30 07:58:36 -04:00
Adam Wathan
28e96baf3a Add Oxide parser to the changelog 2023-10-29 14:23:14 -04:00
Nikita Gaidakov
02da2b82a1
Improve resolveConfig return type: merge themes (#12272)
* Generate types: do not intersect with Config theme type when generating DefaultTheme

* Merge default theme in ResolvedConfig

* UnwrapResolvables on theme.extend as well

* Apply extend to overrides and default theme

* Omit extend from DefaultTheme

* Relax generic constraints, better generic variable names

* Fall back to ThemeConfig if key not in DefaultTheme

* Split out ThemeConfigCustomizable to avoid anys in ThemeConfigResolved

* Allow custom theme properties

* handle TypeScript error

* apply prettier formatting

* update changelog

* change type name

---------

Co-authored-by: Nikita Gaidakov <ngaidakov@podfather.com>
Co-authored-by: Robin Malfait <malfait.robin@gmail.com>
2023-10-27 15:46:02 +02:00
Jordan Pittman
782c733b90
Add spacing scale to min-width, min-height, and max-width (#12300)
* Add spacing scale to `min-width`, `min-height`, and `max-width`

* Update snapshots

* Update changelog
2023-10-26 14:14:43 -04:00
Jordan Pittman
97e89d76a5
Disable tap highlights on iOS (#12299)
* Disable tap highlights on iOS

* Update changelog

* Update snapshots

* Update changelog
2023-10-26 13:09:38 -04:00
Adam Wathan
662905e5e3
Add subgrid utilities (#12298)
* Add subgrid utilities

* Update CHANGELOG

---------

Co-authored-by: Adam Wathan <4323180+adamwathan@users.noreply.github.com>
2023-10-26 12:52:39 -04:00
depfu[bot]
e13ae7b725
Update rollup to version 4.1.4 (#12295)
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
2023-10-26 09:15:27 -04:00
Ahmed Abdelbaset
c92596f549
Fix typo in size-* tests (#12289)
* Update size.test.js

* Fix test

---------

Co-authored-by: Jordan Pittman <jordan@cryptica.me>
2023-10-25 13:54:28 -04:00
Jordan Pittman
e4b32a7a32
Add size-* shorthand (#12287)
* Add `size-*` shorthand

Add plugin tests

Adjust options

wip

* Update changelog
2023-10-25 11:54:37 -04:00
Robin Malfait
9d83400a51
update CHANGELOG 2023-10-25 15:40:05 +02:00
Robin Malfait
761717cb4c
Fix incorrect spaces around - in calc() expression (#12283)
* sync package-lock.json

* prevent formatting inside `env()` when formatting `calc` function

* prevent formatting keywords in `calc`

* add dedicated normalization tests

* `calc()` in `env()` should be formatted

* update changelog
2023-10-25 15:20:49 +02:00
Jordan Pittman
d1317d5a8c Sync changelog 2023-10-24 14:11:56 -04:00
Robin Malfait
90047b4532
update changelog 2023-10-24 14:11:33 +02:00
Robin Malfait
89ec6fbe67
Improve automatic var injection (#12236)
* prevent automatic var injection for properties that accept `<dashed-ident>` for the value

* add test

* add `font-palette`

* improve readability
2023-10-24 14:08:46 +02:00
Jordan Pittman
4a8f584176
Add types for the nesting plugin (#12269)
* Add types for the nesting plugin

* Update changelog
2023-10-23 15:03:28 -04:00
Marco Carvalho
bcfb38d5f9
Refactor length function to utilize a pre-compiled RegExp (#12251)
* Refactor length function to utilize a pre-compiled RegExp

* Update dataTypes.js
2023-10-20 13:50:42 +02:00
depfu[bot]
4e1a26aad0 Update sass to version 1.69.4 2023-10-20 01:59:33 +00:00
depfu[bot]
d26a51fae8 Update parcel to version 2.10.0 2023-10-18 07:15:32 +00:00
depfu[bot]
56d8a0b598 Update resolve to version 1.22.8 2023-10-18 01:19:00 +00:00
2hu
a1bcfa2479
Allow plugins from a parent document to be used in an iframe (#12208)
* Fix cross iframe isPlainObject check

* Update changelog

---------

Co-authored-by: Jordan Pittman <jordan@cryptica.me>
2023-10-17 10:41:53 -04:00
Jordan Pittman
0b0862b20c
Fix crash when watching renamed files on FreeBSD (#12193)
* Fix file watching bug when renaming files on FreeBSD

* Update changelog

* Add delay to test

* Bump delay

* Update test
2023-10-17 09:50:35 -04:00
Simon He
e9ca7ab453
Speed up CSS math function check (#12215)
* perf(cssMathFnRE): Dynamically create regular rules

* Cleanup code

---------

Co-authored-by: Jordan Pittman <jordan@cryptica.me>
2023-10-16 20:18:17 -04:00
depfu[bot]
44fb67b98d Update eslint to version 8.51.0 2023-10-13 21:49:58 +00:00
depfu[bot]
e8a50fb120 Update turbo to version 1.10.15 2023-10-13 20:34:40 +00:00
depfu[bot]
27b6530599 Update @swc/core to version 1.3.92 2023-10-12 09:49:09 +00:00
Adam Wathan
0170662c3c Update CHANGELOG 2023-10-11 21:01:50 -04:00
bandogora
41abd500f5
Equal number of grid columns and rows (#12180)
Update test snapshots
2023-10-11 21:00:22 -04:00
Robin Malfait
fa9be73c15
Ensure variants with arbitrary values and a modifier are correctly matched in the RegEx based parser (#12179)
* add failing test

* ensure variants can have modifiers in regex

* update changelog
2023-10-11 16:38:30 +02:00
Jordan Pittman
51ac627491 Fix spelling 2023-10-10 16:17:08 -04:00
depfu[bot]
edfb51c5ed Update vite to version 4.4.11 2023-10-10 19:00:57 +00:00
Jordan Pittman
ad66635c15
Fix sorting of utilities that share multiple candidates (#12173)
* Fix sorting of utilities that share multiple candidates

* Update changelog
2023-10-10 13:50:46 -04:00
Robin Malfait
31a80b1794
Reduce quickPluginTest and quickVariantPluginTest snapshot size (#12170)
* sync package-lock.json

* reduce generated examples

By default we use the default config when creating the quick tests for a
given plugin. However, this can result in _a lot_ of changes. For
example, when you update the opacity values, then these values will be
generated for each color, and for each plugin that uses that color.

You can see that behaviour in Adam's PR (https://github.com/tailwindlabs/tailwindcss/pull/11832).
He added 6 values to the opacity configuration. This resulted in a diff
that looked like this:
```
+219,436 −9
```

This reduces the amount of examples for plugins that generate _a lot_ of
output otherwise.

* use `toMatchSnapshot`

This way all the `quickPluginTest` and `quickVariantPluginTest`
implementations are the same. This also allows us to update tests after
config changes in an easier way because they use snapshot tests right
now.

* use real colors for reduced red

This will make it a tiny bit easier to debug what's going on if we need
it in the future since it's using the same values as the real colors.
2023-10-09 16:49:20 +02:00
depfu[bot]
5f00c18bd9 Update rollup to version 3.29.4 2023-10-08 06:20:06 +00:00
depfu[bot]
614c7e2a36 Update browserslist to version 4.22.1 2023-10-04 00:36:35 +00:00
Jordan Pittman
09369d27ec Enable error recovery in Lightning CSS 2023-10-03 13:04:17 -04:00
depfu[bot]
0d205f9376 Update postcss to version 8.4.31 2023-10-03 16:26:45 +00:00
Robin Malfait
82e0acebe0 move failing test to dedicated failing test 2023-10-02 15:12:09 +00:00
Robin Malfait
1879130f45 nit improvement: remove unnecessary spaces 2023-10-02 15:12:09 +00:00
Robin Malfait
9f73b9a33c add missing placeholder-transparent/0 2023-10-02 15:12:09 +00:00
Robin Malfait
a14f6bcf6d update tests to reflect Lightning CSS update
The main things I'm seeing right now are:
1. Some selectors are broken up into multiple selectors, especially when
   there are pseudo classes involved where the output is unknown. For
   example `::ng-deep, ::v-deep {}` will be split into `::ng-deep {},
   ::v-deep {}`
2. It looks like a lot of selectors were dropped, however after looking
   at them in more detail I noticed that they were _duplicated_ before.
   This means that now the output will be smaller in these cases!
2023-10-02 15:12:09 +00:00
Robin Malfait
91fb37cbe3 adjust Lightning CSS API 2023-10-02 15:12:09 +00:00
Robin Malfait
20856edaa1 sync package-lock.json file 2023-10-02 15:12:09 +00:00
depfu[bot]
aa1be48d39 Update lightningcss to version 1.22.0 2023-10-02 15:12:09 +00:00
Robin Malfait
0af88b1494
Improve RegEx parser, reduce possibilities as the key for arbitrary properties (#12121)
* optimize handling of RegEx parser results

Previous:
- Copy `results`, for every subsequent result of other `patterns`
- Loop over results to filter out `undefined` values
- Loop over results to map to `clipAtBalancedParens`

Current:
- For each candidate, push the `clipAtBalancedParens(candidate)` into
  the `results`

This way we are not copying existing results, and we are also avoiding
additional loops over the entire array to filter out `undefined` values
and map to `clipAtBalancedParens`.

* do not allow `]` in the first part of arbitrary properties

```
[foo:bar]
 ─┬─
  └── This part cannot contain `]`
```

This is also a very targeted fix for when the arbitrary properties seem
to match a large piece of text, but shouldn't

* add real world tests for parsing candidate strings

* sync package-lock.json

* update changelog
2023-10-02 16:19:23 +02:00
Jordan Pittman
5542340a75
Eliminate irrelevant rules when applying variants (#12113)
* Eliminate irrelevant rules when applying variants

* Update changelog
2023-09-29 16:31:43 -04:00