@kolkrabbi/kol-component 0.104.0 → 0.104.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kolkrabbi/kol-component",
3
- "version": "0.104.0",
3
+ "version": "0.104.1",
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",
@@ -42,8 +42,8 @@ import IconFrame from '../atoms/IconFrame.jsx'
42
42
  * @param {boolean} props.titleUppercase — cases the title (default false)
43
43
  * @param {string} props.labelClassName — filter-group label type/ink
44
44
  * @param {boolean} props.labelUppercase — cases the group label (default true)
45
- * groups: `{ label, key, values, stack?, className?, wrapClassName? }` — a group with 6 values stacks by
46
- * default (`stack: false` opts out); `className` / `wrapClassName` are per-group seams
45
+ * groups: `{ label, key, values, stack?, className?, wrapClassName? }` — columns are equal width by default;
46
+ * `stack: true` makes a group hug its chips; `className` / `wrapClassName` are per-group seams
47
47
  * @param {string} props.tagVariant — filter chip variant ('primary' grey fill)
48
48
  * @param {string} props.tagSize — filter chip size
49
49
  * @param {string} props.tagActiveClassName — chip ink, selected
@@ -243,10 +243,12 @@ const ContentFilters = ({
243
243
  ) : null
244
244
 
245
245
  const renderFilterGroup = (group) => {
246
- /* a SHORT group (≤ 6 values) stacks by default (WorkListingRowsAndFilters, 2026-08-27 —
247
- * user: "why do I have to say it every time? why do you default to 50/50?");
248
- * `stack: false` opts out, `stack: true` forces */
249
- const stacked = group.stack ?? (group.values?.length ?? 0) <= 6
246
+ /* GROUP COLUMNS ARE EQUAL by default (ContentFiltersEqualColumns, kol-fxr
247
+ * 2026-08-27 "only the first column is narrow it's content filters
248
+ * everywhere"); `stack: true` is the opt-in for a group that hugs its chips.
249
+ * The 0.101 short-group default was a per-page ruling written into the
250
+ * organism — reverted. */
251
+ const stacked = group.stack === true
250
252
  return (
251
253
  <div key={group.key} className={`flex flex-col gap-3 ${stacked ? 'shrink-0' : 'min-w-0 flex-1'} ${group.className ?? ''}`.trim()}>
252
254
  {/* THE CATEGORY LABEL IS THE ACTIVE INK — `kol-helper-12` at `text-fg-96`,