@kolkrabbi/kol-component 0.44.0 → 0.44.2
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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kolkrabbi/kol-component",
|
|
3
|
-
"version": "0.44.
|
|
3
|
+
"version": "0.44.2",
|
|
4
4
|
"description": "KOL design-system components — atoms through organisms, emitting canonical kol-* classes. Pairs with @kolkrabbi/kol-theme for styling.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -138,8 +138,18 @@ const ContentFilters = ({
|
|
|
138
138
|
* uppercase these themselves. */
|
|
139
139
|
const renderFilterGroup = (group) => (
|
|
140
140
|
<div key={group.key} className="flex flex-col gap-3">
|
|
141
|
-
|
|
142
|
-
|
|
141
|
+
{/* THE CATEGORY LABEL IS THE ACTIVE INK — `kol-helper-12` at `text-fg-96`,
|
|
142
|
+
* the same full opacity a SELECTED layout item wears (user ruling
|
|
143
|
+
* 2026-08-15: "TAGS and other categories are ACTIVE state full opacity").
|
|
144
|
+
*
|
|
145
|
+
* Read the RENDER, not the default: the retired fork defaulted this to
|
|
146
|
+
* `text-fg-32` and kol-monitor overrode it per call site with
|
|
147
|
+
* `labelClassName="kol-helper-12 text-fg-96"` — so the fork's default was
|
|
148
|
+
* never what anyone looked at. No inline letter-spacing: the helper ramp
|
|
149
|
+
* carries its own, and the override the fork added was not in the
|
|
150
|
+
* rendered path either. */}
|
|
151
|
+
<h4 className="kol-helper-12 text-fg-96">{group.label}</h4>
|
|
152
|
+
<div className="flex flex-wrap gap-4">
|
|
143
153
|
{group.values.map((value) => (
|
|
144
154
|
<Tag
|
|
145
155
|
key={value}
|
|
@@ -148,6 +158,7 @@ const ContentFilters = ({
|
|
|
148
158
|
hash={false}
|
|
149
159
|
active={activeFilters.has(`${group.key}:${value}`)}
|
|
150
160
|
onClick={() => toggleFilter(group.key, value)}
|
|
161
|
+
className={activeFilters.has(`${group.key}:${value}`) ? 'text-fg-96' : 'text-fg-48'}
|
|
151
162
|
>
|
|
152
163
|
{value}
|
|
153
164
|
</Tag>
|
|
@@ -276,7 +287,7 @@ const ContentFilters = ({
|
|
|
276
287
|
<button
|
|
277
288
|
type="button"
|
|
278
289
|
onClick={clearAllFilters}
|
|
279
|
-
className="kol-helper-12 transition-colors underline text-fg-48"
|
|
290
|
+
className="kol-helper-12 transition-colors underline text-fg-32 hover:text-fg-48"
|
|
280
291
|
style={{ background: 'transparent', border: 'none', cursor: 'pointer' }}
|
|
281
292
|
>
|
|
282
293
|
Clear all ({activeFilters.size})
|