@kolkrabbi/kol-component 0.57.1 → 0.58.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.
|
|
3
|
+
"version": "0.58.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",
|
|
@@ -79,7 +79,12 @@ export default function SearchInput({
|
|
|
79
79
|
if (expanding) {
|
|
80
80
|
return (
|
|
81
81
|
<div
|
|
82
|
-
|
|
82
|
+
/* THE FILL BELONGS TO THE FIELD, NOT THE TRIGGER. At rest this is a
|
|
83
|
+
glyph you click, and it must read as one — bare, exactly like the
|
|
84
|
+
filter icon it sits beside. `bg-fg-04` was unconditional, so the
|
|
85
|
+
collapsed pill rendered as a filled circle next to a bare glyph and
|
|
86
|
+
the pair looked like two different kinds of control. */
|
|
87
|
+
className={`kol-expand flex items-center rounded-full h-9 ${isOpen ? 'bg-fg-04' : ''} ${className}`.trim()}
|
|
83
88
|
/* motion is `.kol-expand` in kol-theme; only the WIDTH is per-instance */
|
|
84
89
|
style={{ width: isOpen ? expandedWidth : 36 }}
|
|
85
90
|
>
|
|
@@ -90,7 +95,9 @@ export default function SearchInput({
|
|
|
90
95
|
aria-label={triggerLabel}
|
|
91
96
|
aria-expanded={isOpen}
|
|
92
97
|
>
|
|
93
|
-
|
|
98
|
+
{/* SOLO ladder, md rung — a 36px trigger is the md square and takes
|
|
99
|
+
a 20px glyph, not the sm rung's 16 */}
|
|
100
|
+
<Icon name="search" size={20} className="text-fg-80" />
|
|
94
101
|
</button>
|
|
95
102
|
{isOpen && (
|
|
96
103
|
<input
|