@kolkrabbi/kol-component 0.176.0 → 0.177.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.176.0",
3
+ "version": "0.177.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",
@@ -18,7 +18,7 @@ import { glyphSize } from '../hooks/glyphLadders.js'
18
18
  * @param {string} props.iconRight - Icon name to display on the right
19
19
  * @param {string} props.iconLeftHover - Icon to show on hover (left position)
20
20
  * @param {string} props.iconRightHover - Icon to show on hover (right position)
21
- * @param {'primary'|'secondary'|'outline'|'ghost'|'grey'|'sunken'} props.tone - the ground (tone-is-the-ground-axis, 2026-09-03) — wins over `variant` on the same element; unset = inherit the wrapper's. `sunken` = the control set's dark well + fg-96 ink (ControlToneSunken); `inverse` aliased
21
+ * @param {'primary'|'secondary'|'inverted'|'outline'|'ghost'|'grey'|'sunken'} props.tone - the ground (`secondary` = the page surface, `inverted` = the text colour as fill — what `variant="secondary"` paints) (tone-is-the-ground-axis, 2026-09-03) — wins over `variant` on the same element; unset = inherit the wrapper's. `sunken` = the control set's dark well + fg-96 ink (ControlToneSunken); `inverse` aliased
22
22
  * @param {string} props.iconOnly - Icon name for icon-only button
23
23
  * @param {string} props.iconOnlyHover - Icon to show on hover (icon-only)
24
24
  * @param {boolean} props.animateIcon - Disable default hover states to focus on icon animation
@@ -265,7 +265,8 @@ const ContentFilters = ({
265
265
  /* THE LAW (user ruling 2026-08-27, said "for the 10th time" — ContentFiltersFirstGroupHugs,
266
266
  * its WIDTH overruled the same day — ContentFiltersFirstGroupFixedWidth, kol-monitor: "nope
267
267
  * not hug, fix a size … if columns, maybe just use one?"): THE FIRST FILTER GROUP IS ONE
268
- * CATALOG COLUMN WIDE — `.kol-filters-first` (kol-theme): `(100cqw 120px) / 6`, the `1fr`
268
+ * CATALOG COLUMN WIDE — `.kol-filters-first` (kol-theme): one track of the catalog grid AT THE
269
+ * COUNT IT RENDERS (theme ≥0.137.0 — was `(100cqw − 120px) / 6`, true only at six tracks), the `1fr`
269
270
  * of the catalog's `repeat(6, 1fr)` gap 24, measured on the header row as a container so
270
271
  * the count/strip beside the groups never narrows it. It sits over the first card; EVERY
271
272
  * GROUP AFTER IT FLOWS across the rest of the row, starting over the second. By POSITION,
@@ -2,7 +2,12 @@
2
2
  * toneClass — the control set's TONE, six values (tone-is-the-ground-axis,
3
3
  * kol-client-olina 2026-09-03; the six-tone list is the user's).
4
4
  *
5
- * primary · secondary · outline · ghost · grey · sunken
5
+ * primary · secondary · inverted · outline · ghost · grey · sunken
6
+ *
7
+ * `secondary` paints the PAGE SURFACE and `inverted` the text colour as fill
8
+ * (tone-secondary-is-inverse, 2026-09-03; user: "that tone should be called
9
+ * secondary. What is currently secondary should be called inverted") — 0.134.0
10
+ * had lifted `secondary` from Button's variant, which was already an inverse.
6
11
  *
7
12
  * A tone is a ground-and-ink bundle — `--kol-tone-*` custom properties in
8
13
  * kol-theme (kol-components-molecules.css, TONE) that every control paints
@@ -13,9 +18,10 @@
13
18
  *
14
19
  * `inverse` is `sunken`'s alias (0.117.0's name — ControlToneSunken,
15
20
  * kol-website 2026-08-28; user ruling: the control does not invert anything,
16
- * it sits BELOW the plane it is on).
21
+ * it sits BELOW the plane it is on) — NOT `inverted`; one kol-website call
22
+ * still passes it, and it drops when that moves.
17
23
  */
18
- export const TONES = ['primary', 'secondary', 'outline', 'ghost', 'grey', 'sunken']
24
+ export const TONES = ['primary', 'secondary', 'inverted', 'outline', 'ghost', 'grey', 'sunken']
19
25
 
20
26
  export const toneClass = (tone) =>
21
27
  tone === 'inverse' ? 'kol-tone-sunken' : TONES.includes(tone) ? `kol-tone-${tone}` : ''