@kolkrabbi/kol-component 0.55.0 → 0.56.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kolkrabbi/kol-component",
3
- "version": "0.55.0",
3
+ "version": "0.56.0",
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",
@@ -172,8 +172,13 @@ const ContentFilters = ({
172
172
  * as the component tier's ONE documented exception to the no-casing law,
173
173
  * because a filter value is data with no authoring site. Consumers must not
174
174
  * uppercase these themselves. */
175
+ /* A group either STACKS its values in a narrow column or WRAPS them across
176
+ * the room it is given (`group.stack`). Both shapes are live on kol-website's
177
+ * /work: a short closed set like Type reads as a column you scan down, while
178
+ * ~45 tags must wrap or they run off the page. One shape for both meant the
179
+ * short group ate a full row it did not need. */
175
180
  const renderFilterGroup = (group) => (
176
- <div key={group.key} className="flex flex-col gap-3">
181
+ <div key={group.key} className={`flex flex-col gap-3 ${group.stack ? 'shrink-0' : 'min-w-0 flex-1'}`}>
177
182
  {/* THE CATEGORY LABEL IS THE ACTIVE INK — `kol-helper-12` at `text-fg-96`,
178
183
  * the same full opacity a SELECTED layout item wears (user ruling
179
184
  * 2026-08-15: "TAGS and other categories are ACTIVE state full opacity").
@@ -187,7 +192,7 @@ const ContentFilters = ({
187
192
  <h4 className={labelClassName} style={labelUppercase ? { textTransform: 'uppercase' } : undefined}>
188
193
  {group.label}
189
194
  </h4>
190
- <div className="flex flex-wrap gap-4">
195
+ <div className={group.stack ? 'flex flex-col items-start gap-2' : 'flex flex-wrap gap-2'}>
191
196
  {group.values.map((value) => (
192
197
  <Tag
193
198
  key={value}