@kolkrabbi/kol-component 0.32.3 → 0.32.4
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.32.
|
|
3
|
+
"version": "0.32.4",
|
|
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",
|
|
@@ -52,15 +52,17 @@ export function StatusChip({ value, options = [], onChange, size = 'sm' }) {
|
|
|
52
52
|
const toneCls = activeOpt?.tone ? ` kol-status-chip--${activeOpt.tone}` : ''
|
|
53
53
|
/* BUILT ON THE COVER-FOCUS SPECS (user ruling 2026-08-09: "same component
|
|
54
54
|
* as cover focus"): the chip wears the Dropdown-sm trigger metrics — the
|
|
55
|
-
* kol-btn-sm box (py-1 px-3) and mono-12 type
|
|
56
|
-
*
|
|
57
|
-
*
|
|
55
|
+
* kol-btn-sm box (py-1 px-3) and mono-12 type at its OWN 16px leading, so
|
|
56
|
+
* the pill stands the trigger's 24px (a leading-none had shrunk it to 20;
|
|
57
|
+
* user re-call same day: "like dropdown small in size"). The caret is a
|
|
58
|
+
* direct child of the flex row, centred by items-center; it cannot sit off
|
|
59
|
+
* the label's middle. */
|
|
58
60
|
const chip = (interactive) => (
|
|
59
61
|
<button
|
|
60
62
|
type="button"
|
|
61
63
|
disabled={!interactive || undefined}
|
|
62
64
|
aria-expanded={interactive ? open : undefined}
|
|
63
|
-
className={`kol-status-chip${toneCls} kol-mono-12 inline-flex items-center gap-1 rounded-full border-0 px-
|
|
65
|
+
className={`kol-status-chip${toneCls} kol-mono-12 inline-flex items-center gap-1 rounded-full border-0 px-3 py-1${interactive ? ' cursor-pointer' : ''}`}
|
|
64
66
|
onClick={interactive ? () => setOpen((o) => !o) : undefined}
|
|
65
67
|
>
|
|
66
68
|
{activeOpt?.label ?? value}
|