@kolkrabbi/kol-component 0.333.1 → 0.333.2
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 +3 -3
- package/src/atoms/Button.jsx +3 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kolkrabbi/kol-component",
|
|
3
|
-
"version": "0.333.
|
|
3
|
+
"version": "0.333.2",
|
|
4
4
|
"description": "The core component library",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"pdfjs-dist": "^6.3.289",
|
|
31
31
|
"react-syntax-highlighter": "^16.1.1",
|
|
32
32
|
"@kolkrabbi/kol-growth": "^0.5.0",
|
|
33
|
-
"@kolkrabbi/kol-
|
|
34
|
-
"@kolkrabbi/kol-
|
|
33
|
+
"@kolkrabbi/kol-search": "^0.3.0",
|
|
34
|
+
"@kolkrabbi/kol-markdown": "^0.2.0"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"@kolkrabbi/kol-icons": ">=0.22.0",
|
package/src/atoms/Button.jsx
CHANGED
|
@@ -67,9 +67,10 @@ const Button = ({
|
|
|
67
67
|
}) => {
|
|
68
68
|
/* `variant="bare"` (MetricRebuild, 2026-10-31): a pressable SURFACE — a stat tile, a bar row, a column head — that
|
|
69
69
|
* draws itself. No kol-btn chrome (ground, size, type, radius); the button keeps its type, the KOL focus ring
|
|
70
|
-
* (`kol-menu-btn`, as MenuItem's rows) and `disabled
|
|
70
|
+
* (`kol-menu-btn`, as MenuItem's rows) and `disabled`;
|
|
71
|
+
* `kol-menu-btn--bare` keeps it out of the touch rung, so its type holds on every pointer. For a control that looks like a button, use any other variant. */
|
|
71
72
|
if (variant === 'bare') {
|
|
72
|
-
return <button type={type} onClick={onClick} disabled={disabled} className={`kol-menu-btn ${className}`.trim()} style={style} {...props}>{children}</button>
|
|
73
|
+
return <button type={type} onClick={onClick} disabled={disabled} className={`kol-menu-btn kol-menu-btn--bare ${className}`.trim()} style={style} {...props}>{children}</button>
|
|
73
74
|
}
|
|
74
75
|
// Two ladders, split on whether a label sits beside the glyph. An icon-only
|
|
75
76
|
// button is a solo glyph in a pinned square, so it takes SOLO (16/20/24) —
|