@kolkrabbi/kol-component 0.104.2 → 0.104.3
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.
|
|
3
|
+
"version": "0.104.3",
|
|
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,9 @@ 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 (default `kol-eyebrow text-fg-96`)
|
|
44
44
|
* @param {boolean} props.labelUppercase — cases the group label (default true)
|
|
45
|
-
* groups: `{ label, key, values, stack?, className?, wrapClassName? }` —
|
|
46
|
-
*
|
|
45
|
+
* groups: `{ label, key, values, stack?, className?, wrapClassName? }` — THE FIRST GROUP HUGS ITS CHIPS, EVERY
|
|
46
|
+
* GROUP AFTER IT FLOWS (user law 2026-08-27, by position, never by chip count); `stack` is the explicit
|
|
47
|
+
* override; `className` / `wrapClassName` are per-group seams
|
|
47
48
|
* @param {string} props.tagVariant — filter chip variant ('primary' grey fill)
|
|
48
49
|
* @param {string} props.tagSize — filter chip size
|
|
49
50
|
* @param {string} props.tagActiveClassName — chip ink, selected
|
|
@@ -245,12 +246,15 @@ const ContentFilters = ({
|
|
|
245
246
|
</div>
|
|
246
247
|
) : null
|
|
247
248
|
|
|
248
|
-
const renderFilterGroup = (group) => {
|
|
249
|
-
/*
|
|
250
|
-
*
|
|
251
|
-
*
|
|
252
|
-
*
|
|
253
|
-
|
|
249
|
+
const renderFilterGroup = (group, index = 0) => {
|
|
250
|
+
/* THE LAW (user ruling 2026-08-27, said "for the 10th time" — ContentFiltersFirstGroupHugs):
|
|
251
|
+
* THE FIRST FILTER GROUP HUGS ITS CHIPS — IT IS NARROW. EVERY GROUP AFTER IT
|
|
252
|
+
* FLOWS ACROSS THE REST OF THE ROW. By POSITION, never by chip count. The
|
|
253
|
+
* reference is kol-website /prints: CATEGORY hugs at the left, YEAR flows
|
|
254
|
+
* beside it. Not equal columns (0.104.1, a misread — reverted), not "short
|
|
255
|
+
* groups stack" (0.101, one page's ruling — reverted). `stack` stays the
|
|
256
|
+
* explicit override; kol-fxr pins `stack: i === 0`. */
|
|
257
|
+
const stacked = group.stack ?? index === 0
|
|
254
258
|
return (
|
|
255
259
|
<div key={group.key} className={`flex flex-col gap-3 ${stacked ? 'shrink-0' : 'min-w-0 flex-1'} ${group.className ?? ''}`.trim()}>
|
|
256
260
|
{/* THE CATEGORY LABEL IS THE ACTIVE INK — `kol-helper-12` at `text-fg-96`,
|
|
@@ -444,7 +448,7 @@ const ContentFilters = ({
|
|
|
444
448
|
<div className="flex items-start justify-between gap-16">
|
|
445
449
|
<div className="flex min-w-0 flex-1 items-start gap-16">
|
|
446
450
|
{leadingActions}
|
|
447
|
-
{isExpanded && filterGroups.map((group) => renderFilterGroup(group))}
|
|
451
|
+
{isExpanded && filterGroups.map((group, i) => renderFilterGroup(group, i))}
|
|
448
452
|
{isExpanded && activeFilters.size > 0 && (
|
|
449
453
|
<button
|
|
450
454
|
type="button"
|