tailwind_merge 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/tailwind_merge/config.rb +8 -8
- data/lib/tailwind_merge/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: acd2f51e2649b7431dee68c8dfcc32d173ff034b9781234be67017f2c6631017
|
|
4
|
+
data.tar.gz: f029d5b0d2c31cfa0e93f8f5bcbd1b9b2846194c4489d03d9698f0ff034d4e42
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0d5f11f2a351bd3ce9d042a82cceb0d13784ec1ed2355e93f6dd281c7d7ee6fa5859c227c77da5077cb9c8cb03d54bede87045b4924baf52c11c8fc2c512b81c
|
|
7
|
+
data.tar.gz: acb2e759fa33bbf36a1161f40ca0ffdf396812a6597366a518e06a9b78ae6212e2fb4077555a0b12d503d34d2adc29b2effa31c5918a370d0b2ad91ef552c18b
|
data/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Utility function to efficiently merge [Tailwind CSS](https://tailwindcss.com/) classes without style conflicts. Essentially, a Ruby port of [tailwind-merge](https://github.com/dcastil/tailwind-merge).
|
|
4
4
|
|
|
5
|
-
Supports Tailwind v3.0
|
|
5
|
+
Supports Tailwind v3.0 up to v3.2.
|
|
6
6
|
|
|
7
7
|
## Installation
|
|
8
8
|
|
|
@@ -300,7 +300,7 @@ module TailwindMerge
|
|
|
300
300
|
# Visibility
|
|
301
301
|
# @see https://tailwindcss.com/docs/visibility
|
|
302
302
|
##
|
|
303
|
-
"visibility" => ["visible", "invisible"],
|
|
303
|
+
"visibility" => ["visible", "invisible", "collapse"],
|
|
304
304
|
##
|
|
305
305
|
# Z-Index
|
|
306
306
|
# @see https://tailwindcss.com/docs/z-index
|
|
@@ -431,7 +431,7 @@ module TailwindMerge
|
|
|
431
431
|
# Align Content
|
|
432
432
|
# @see https://tailwindcss.com/docs/align-content
|
|
433
433
|
##
|
|
434
|
-
"align-content" => [{
|
|
434
|
+
"align-content" => [{ content: [*ALIGN.call, "baseline"] }],
|
|
435
435
|
##
|
|
436
436
|
# Align Items
|
|
437
437
|
# @see https://tailwindcss.com/docs/align-items
|
|
@@ -446,12 +446,12 @@ module TailwindMerge
|
|
|
446
446
|
# Place Content
|
|
447
447
|
# @see https://tailwindcss.com/docs/place-content
|
|
448
448
|
##
|
|
449
|
-
"place-content" => [{ "place-content" => [*ALIGN.call, "stretch"] }],
|
|
449
|
+
"place-content" => [{ "place-content" => [*ALIGN.call, "baseline", "stretch"] }],
|
|
450
450
|
##
|
|
451
451
|
# Place Items
|
|
452
452
|
# @see https://tailwindcss.com/docs/place-items
|
|
453
453
|
##
|
|
454
|
-
"place-items" => [{ "place-items" => ["start", "end", "center", "stretch"] }],
|
|
454
|
+
"place-items" => [{ "place-items" => ["start", "end", "center", "baseline", "stretch"] }],
|
|
455
455
|
##
|
|
456
456
|
# Place Self
|
|
457
457
|
# @see https://tailwindcss.com/docs/place-self
|
|
@@ -793,7 +793,7 @@ module TailwindMerge
|
|
|
793
793
|
# Word Break
|
|
794
794
|
# @see https://tailwindcss.com/docs/word-break
|
|
795
795
|
##
|
|
796
|
-
"break" => [{ "break" => ["normal", "words", "all"] }],
|
|
796
|
+
"break" => [{ "break" => ["normal", "words", "all", "keep"] }],
|
|
797
797
|
##
|
|
798
798
|
# Content
|
|
799
799
|
# @see https://tailwindcss.com/docs/content
|
|
@@ -1034,7 +1034,7 @@ module TailwindMerge
|
|
|
1034
1034
|
# Outline Style
|
|
1035
1035
|
# @see https://tailwindcss.com/docs/outline-style
|
|
1036
1036
|
##
|
|
1037
|
-
"outline-style" => [{ "outline" => ["", *LINE_STYLES.call
|
|
1037
|
+
"outline-style" => [{ "outline" => ["", *LINE_STYLES.call] }],
|
|
1038
1038
|
##
|
|
1039
1039
|
# Outline Offset
|
|
1040
1040
|
# @see https://tailwindcss.com/docs/outline-offset
|
|
@@ -1540,7 +1540,7 @@ module TailwindMerge
|
|
|
1540
1540
|
# Fill
|
|
1541
1541
|
# @see https://tailwindcss.com/docs/fill
|
|
1542
1542
|
##
|
|
1543
|
-
"fill" => [{ "fill" => [COLORS] }],
|
|
1543
|
+
"fill" => [{ "fill" => [COLORS, "none"] }],
|
|
1544
1544
|
##
|
|
1545
1545
|
# Stroke Width
|
|
1546
1546
|
# @see https://tailwindcss.com/docs/stroke-width
|
|
@@ -1550,7 +1550,7 @@ module TailwindMerge
|
|
|
1550
1550
|
# Stroke
|
|
1551
1551
|
# @see https://tailwindcss.com/docs/stroke
|
|
1552
1552
|
##
|
|
1553
|
-
"stroke" => [{ "stroke" => [COLORS] }],
|
|
1553
|
+
"stroke" => [{ "stroke" => [COLORS, "none"] }],
|
|
1554
1554
|
# Accessibility
|
|
1555
1555
|
##
|
|
1556
1556
|
# Screen Readers
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tailwind_merge
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Garen J. Torikian
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-10-
|
|
11
|
+
date: 2022-10-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: lru_redux
|
|
@@ -167,7 +167,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
167
167
|
- !ruby/object:Gem::Version
|
|
168
168
|
version: '0'
|
|
169
169
|
requirements: []
|
|
170
|
-
rubygems_version: 3.3.
|
|
170
|
+
rubygems_version: 3.3.22
|
|
171
171
|
signing_key:
|
|
172
172
|
specification_version: 4
|
|
173
173
|
summary: Utility function to efficiently merge Tailwind CSS classes without style
|