maquina-components 0.6.0 → 0.6.1
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 +21 -1
- data/lib/maquina_components/doctor.rb +1 -1
- data/lib/maquina_components/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0a445c4fe008c07069fd7d0e9fd4249c9a169410e9a53fa6cdaa6c2455351b92
|
|
4
|
+
data.tar.gz: c0964a27ecfdbd92797ee8c03a24d7c9e6db2b5e41147d2d81bf18ff2e38540d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7c59d1819376a7242cbac12758ceffdb6e221184a29150b6f70364b275545f84d8da7c3235a5d9bdc3a1044e08622dba5b379615e2bc7053e8647506f83b6b7c
|
|
7
|
+
data.tar.gz: 340d7fcd15e476d17e2244cb7e7b29563b27e7fff360c09f9427d2ccc0491379b4dc5c412e4b8be9447159bbb75fd9d47bade573fbfb9497284d3d9ada629931
|
data/README.md
CHANGED
|
@@ -2,6 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
UI components for Ruby on Rails, built with ERB, TailwindCSS 4.0, and Stimulus.
|
|
4
4
|
|
|
5
|
+
> [!IMPORTANT]
|
|
6
|
+
> **0.6.0 has breaking changes.** Engine CSS moved into `@layer components`,
|
|
7
|
+
> which changes what wins in your app. Most notably, the `* { border-color }`
|
|
8
|
+
> shim in the `theme.css` you already installed must be wrapped in
|
|
9
|
+
> `@layer base` — unlayered, it now outranks every engine rule and flattens
|
|
10
|
+
> the tinted alert, toast and badge borders. That one affects every existing
|
|
11
|
+
> app and fails silently.
|
|
12
|
+
>
|
|
13
|
+
> Before upgrading, read [docs/upgrading.md](docs/upgrading.md). After
|
|
14
|
+
> upgrading, run `bin/rails maquina:doctor` — it prints file:line for every
|
|
15
|
+
> pattern the release changes and never edits anything. An appendix in the
|
|
16
|
+
> upgrading guide restores the 0.5.1 look with one token block.
|
|
17
|
+
|
|
5
18
|
---
|
|
6
19
|
|
|
7
20
|
## Why This Exists
|
|
@@ -135,7 +148,14 @@ generates views built with maquina_components. Customize the templates as needed
|
|
|
135
148
|
|
|
136
149
|
**Prerequisite:** [tailwindcss-rails](https://github.com/rails/tailwindcss-rails) must be installed first.
|
|
137
150
|
|
|
138
|
-
|
|
151
|
+
---
|
|
152
|
+
|
|
153
|
+
## Upgrading
|
|
154
|
+
|
|
155
|
+
**0.5.1 → 0.6.0 is a breaking upgrade** — see the note at the top of this
|
|
156
|
+
README and [docs/upgrading.md](docs/upgrading.md) for the seven changes, each
|
|
157
|
+
with measurements, plus an appendix that reverts every visual change with one
|
|
158
|
+
token block.
|
|
139
159
|
|
|
140
160
|
Re-running the install generator is safe — it is idempotent and never rewrites
|
|
141
161
|
your palette. After upgrading, run the doctor:
|
|
@@ -115,7 +115,7 @@ module MaquinaComponents
|
|
|
115
115
|
def each_file(globs)
|
|
116
116
|
globs.flat_map { |glob| Dir.glob(File.join(root, glob)) }
|
|
117
117
|
.uniq
|
|
118
|
-
.reject { |path| path =~ EXCLUDED }
|
|
118
|
+
.reject { |path| "/#{relative(path)}" =~ EXCLUDED }
|
|
119
119
|
.select { |path| File.file?(path) }
|
|
120
120
|
.sort
|
|
121
121
|
.each do |path|
|