@kolkrabbi/kol-component 0.12.12 → 0.12.14
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 +1 -1
- package/src/organisms/ContentFilters.jsx +10 -11
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kolkrabbi/kol-component",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.14",
|
|
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",
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { useState, useMemo, useRef, useEffect } from 'react'
|
|
2
2
|
import Tag from '../atoms/Tag.jsx'
|
|
3
3
|
import Divider from '../atoms/Divider.jsx'
|
|
4
|
+
import Button from '../atoms/Button.jsx'
|
|
4
5
|
import { Icon } from '@kolkrabbi/kol-icons'
|
|
5
6
|
import ViewToggle from '../atoms/ViewToggle'
|
|
6
7
|
|
|
@@ -138,20 +139,19 @@ const ContentFilters = ({
|
|
|
138
139
|
<h2 className="kol-helper-16 flex items-center gap-3">{titleIcon && <Icon name={titleIcon} size={20} />}{title}</h2>
|
|
139
140
|
<Divider variant="vertical" className="self-stretch py-1" />
|
|
140
141
|
<div className="flex items-center gap-1">
|
|
141
|
-
<
|
|
142
|
-
|
|
142
|
+
<Button
|
|
143
|
+
iconOnly="filter"
|
|
144
|
+
iconSize={20}
|
|
145
|
+
size="md"
|
|
146
|
+
variant="ghost"
|
|
143
147
|
onClick={() => setIsExpanded(!isExpanded)}
|
|
144
|
-
className="w-7 h-7 flex items-center justify-center rounded-sm hover:bg-fg-04 transition-colors"
|
|
145
148
|
aria-label="Toggle filters"
|
|
146
|
-
|
|
147
|
-
>
|
|
148
|
-
<Icon name="filter" size={20} />
|
|
149
|
-
</button>
|
|
149
|
+
/>
|
|
150
150
|
<div
|
|
151
151
|
className="flex items-center justify-center rounded-sm cursor-pointer hover:bg-fg-04 transition-colors"
|
|
152
152
|
style={{
|
|
153
|
-
height:
|
|
154
|
-
width: searchOpen ? 200 :
|
|
153
|
+
height: 32,
|
|
154
|
+
width: searchOpen ? 200 : 32,
|
|
155
155
|
background: searchOpen ? 'var(--kol-fg-04)' : 'transparent',
|
|
156
156
|
border: searchOpen ? '1px solid var(--kol-fg-08)' : '1px solid transparent',
|
|
157
157
|
transition: 'width 600ms cubic-bezier(0.16, 1, 0.3, 1), background 400ms cubic-bezier(0.16, 1, 0.3, 1)',
|
|
@@ -163,9 +163,8 @@ const ContentFilters = ({
|
|
|
163
163
|
}}
|
|
164
164
|
>
|
|
165
165
|
<span
|
|
166
|
-
className="flex items-center justify-center flex-shrink-0"
|
|
166
|
+
className="kol-btn kol-btn-ghost kol-btn-md kol-btn-icon flex items-center justify-center flex-shrink-0"
|
|
167
167
|
style={{
|
|
168
|
-
width: 28, height: 28,
|
|
169
168
|
opacity: searchOpen ? 0 : 1,
|
|
170
169
|
transition: 'opacity 300ms cubic-bezier(0.16, 1, 0.3, 1)',
|
|
171
170
|
position: searchOpen ? 'absolute' : 'relative',
|