tailwind-merge
Advanced tools
Comparing version 2.5.0 to 2.5.1-dev.056b2a31bf7d9244aa97cc859e110bdbae6723e5
{ | ||
"name": "tailwind-merge", | ||
"version": "2.5.0", | ||
"version": "2.5.1-dev.056b2a31bf7d9244aa97cc859e110bdbae6723e5", | ||
"description": "Merge Tailwind CSS classes without style conflicts", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -6,3 +6,3 @@ <!-- This file is autogenerated. If you want to change this content, please do the changes in `./docs/README.md` instead. --> | ||
<a href="https://github.com/dcastil/tailwind-merge"> | ||
<img src="https://github.com/dcastil/tailwind-merge/raw/v2.5.0/assets/logo.svg" alt="tailwind-merge" height="150px" /> | ||
<img src="https://github.com/dcastil/tailwind-merge/raw/056b2a31bf7d9244aa97cc859e110bdbae6723e5/assets/logo.svg" alt="tailwind-merge" height="150px" /> | ||
</a> | ||
@@ -29,12 +29,12 @@ </div> | ||
- [What is it for](https://github.com/dcastil/tailwind-merge/tree/v2.5.0/docs/what-is-it-for.md) | ||
- [When and how to use it](https://github.com/dcastil/tailwind-merge/tree/v2.5.0/docs/when-and-how-to-use-it.md) | ||
- [Features](https://github.com/dcastil/tailwind-merge/tree/v2.5.0/docs/features.md) | ||
- [Limitations](https://github.com/dcastil/tailwind-merge/tree/v2.5.0/docs/limitations.md) | ||
- [Configuration](https://github.com/dcastil/tailwind-merge/tree/v2.5.0/docs/configuration.md) | ||
- [Recipes](https://github.com/dcastil/tailwind-merge/tree/v2.5.0/docs/recipes.md) | ||
- [API reference](https://github.com/dcastil/tailwind-merge/tree/v2.5.0/docs/api-reference.md) | ||
- [Writing plugins](https://github.com/dcastil/tailwind-merge/tree/v2.5.0/docs/writing-plugins.md) | ||
- [Versioning](https://github.com/dcastil/tailwind-merge/tree/v2.5.0/docs/versioning.md) | ||
- [Contributing](https://github.com/dcastil/tailwind-merge/tree/v2.5.0/docs/contributing.md) | ||
- [Similar packages](https://github.com/dcastil/tailwind-merge/tree/v2.5.0/docs/similar-packages.md) | ||
- [What is it for](https://github.com/dcastil/tailwind-merge/tree/056b2a31bf7d9244aa97cc859e110bdbae6723e5/docs/what-is-it-for.md) | ||
- [When and how to use it](https://github.com/dcastil/tailwind-merge/tree/056b2a31bf7d9244aa97cc859e110bdbae6723e5/docs/when-and-how-to-use-it.md) | ||
- [Features](https://github.com/dcastil/tailwind-merge/tree/056b2a31bf7d9244aa97cc859e110bdbae6723e5/docs/features.md) | ||
- [Limitations](https://github.com/dcastil/tailwind-merge/tree/056b2a31bf7d9244aa97cc859e110bdbae6723e5/docs/limitations.md) | ||
- [Configuration](https://github.com/dcastil/tailwind-merge/tree/056b2a31bf7d9244aa97cc859e110bdbae6723e5/docs/configuration.md) | ||
- [Recipes](https://github.com/dcastil/tailwind-merge/tree/056b2a31bf7d9244aa97cc859e110bdbae6723e5/docs/recipes.md) | ||
- [API reference](https://github.com/dcastil/tailwind-merge/tree/056b2a31bf7d9244aa97cc859e110bdbae6723e5/docs/api-reference.md) | ||
- [Writing plugins](https://github.com/dcastil/tailwind-merge/tree/056b2a31bf7d9244aa97cc859e110bdbae6723e5/docs/writing-plugins.md) | ||
- [Versioning](https://github.com/dcastil/tailwind-merge/tree/056b2a31bf7d9244aa97cc859e110bdbae6723e5/docs/versioning.md) | ||
- [Contributing](https://github.com/dcastil/tailwind-merge/tree/056b2a31bf7d9244aa97cc859e110bdbae6723e5/docs/contributing.md) | ||
- [Similar packages](https://github.com/dcastil/tailwind-merge/tree/056b2a31bf7d9244aa97cc859e110bdbae6723e5/docs/similar-packages.md) |
@@ -17,11 +17,18 @@ import { ConfigUtils } from './config-utils' | ||
let result = '' | ||
let index = classList.length - 1 | ||
for (let i = classList.length - 1; i >= 0; ) { | ||
while (classList[i] === ' ') { | ||
--i | ||
while (index >= 0) { | ||
while (classList[index] === ' ') { | ||
index -= 1 | ||
} | ||
const nextI = classList.lastIndexOf(' ', i) | ||
const originalClassName = classList.slice(nextI === -1 ? 0 : nextI + 1, i + 1) | ||
i = nextI | ||
if (index < 0) { | ||
break | ||
} | ||
const nextIndex = classList.lastIndexOf(' ', index) | ||
const originalClassName = classList.slice(nextIndex + 1, index + 1) | ||
index = nextIndex | ||
const { modifiers, hasImportantModifier, baseClassName, maybePostfixModifierPosition } = | ||
@@ -28,0 +35,0 @@ parseClassName(originalClassName) |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
709315
15527
1