@kolkrabbi/kol-component 0.12.9 → 0.12.11

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.12.9",
3
+ "version": "0.12.11",
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",
@@ -20,6 +20,7 @@ import { Icon } from '@kolkrabbi/kol-icons'
20
20
  * value; the SECOND is "on".
21
21
  */
22
22
  const ViewToggle = ({
23
+ size = 'sm',
23
24
  viewMode,
24
25
  onViewChange,
25
26
  variant = 'text',
@@ -75,8 +76,8 @@ const ViewToggle = ({
75
76
  * border-reveal hover. (Earlier ghost variant revealed an outline on
76
77
  * hover; that's deliberately gone.) */
77
78
  return isActive
78
- ? 'kol-control kol-control--filled kol-control-sm kol-mono-12'
79
- : 'kol-control kol-control-sm kol-mono-12 text-meta hover:text-emphasis'
79
+ ? `kol-control kol-control--filled kol-control-${size} kol-mono-${size === 'md' ? '14' : '12'}`
80
+ : `kol-control kol-control-${size} kol-mono-${size === 'md' ? '14' : '12'} text-meta hover:text-emphasis`
80
81
  }
81
82
 
82
83
  return (
@@ -27,6 +27,7 @@ const ContentFilters = ({
27
27
  items,
28
28
  title,
29
29
  totalCount,
30
+ titleIcon,
30
31
  filterGroups = [],
31
32
  renderItem,
32
33
  viewModeOptions,
@@ -134,7 +135,8 @@ const ContentFilters = ({
134
135
  <div className="w-full" style={{ display: 'flex', flexDirection: 'column', flex: 1 }}>
135
136
  <div className="flex items-center justify-between mb-4">
136
137
  <div className="flex items-center gap-6">
137
- <h2 className="kol-helper-14">{title}</h2>
138
+ <h2 className="kol-helper-16 flex items-center gap-3">{titleIcon && <Icon name={titleIcon} size={20} />}{title}</h2>
139
+ <Divider variant="vertical" className="h-5" />
138
140
  <div className="flex items-center gap-1">
139
141
  <button
140
142
  type="button"
@@ -143,7 +145,7 @@ const ContentFilters = ({
143
145
  aria-label="Toggle filters"
144
146
  style={{ background: 'transparent', border: 'none', cursor: 'pointer', color: 'inherit' }}
145
147
  >
146
- <Icon name="filter" size={16} />
148
+ <Icon name="filter" size={20} />
147
149
  </button>
148
150
  <div
149
151
  className="flex items-center rounded-full cursor-pointer"
@@ -169,7 +171,7 @@ const ContentFilters = ({
169
171
  position: searchOpen ? 'absolute' : 'relative',
170
172
  }}
171
173
  >
172
- <Icon name="search" size={16} />
174
+ <Icon name="search" size={20} />
173
175
  </span>
174
176
  {searchOpen && (
175
177
  <input
@@ -209,6 +211,7 @@ const ContentFilters = ({
209
211
  * that pattern (kol-control--filled active / bare inactive). */}
210
212
  {viewModeOptions && (
211
213
  <ViewToggle
214
+ size="md"
212
215
  viewMode={viewMode}
213
216
  onViewChange={handleViewModeChange}
214
217
  options={viewModeOptions}