@kolkrabbi/kol-component 0.100.0 → 0.100.1

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.100.0",
3
+ "version": "0.100.1",
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,5 +1,4 @@
1
1
  import Button from '../atoms/Button.jsx'
2
- import Tag from '../atoms/Tag.jsx'
3
2
  import SegmentedToggle from '../atoms/SegmentedToggle.jsx'
4
3
  import ToggleSwitch from '../atoms/ToggleSwitch.jsx'
5
4
  import ShellDrawer from '../molecules/ShellDrawer.jsx'
@@ -137,10 +136,11 @@ export function SettingsChoice({ options = [], value, onChange, ariaLabel }) {
137
136
  return <SegmentedToggle size="sm" value={value} onChange={onChange} options={opts} ariaLabel={ariaLabel} />
138
137
  }
139
138
 
140
- /* The chips are the DS `Tag` ("the tag ticket" SettingsPanelChromeAndColumnPreview,
141
- * user 2026-08-27: same chrome as Tag everywhere else, not a third look): `md`
142
- * (helper-12), `inverse` when on, `secondary` when off, as a button. The old
143
- * `.kol-control` string stays exported for consumers that typed it. */
139
+ /* THE CONTROL CHIP (SettingsPanelCompliance, user 2026-08-27: "WROOOONG" on the
140
+ * 0.98.0 Tag pills): `.kol-control` sm on kol-mono-12, filled when on, meta ink
141
+ * when off, the count in meta after the label the SAME string ContentFilters'
142
+ * kind chips, ViewToggle's text variant and the SELECT / FLAT strip wear. No
143
+ * Tag, no uppercase, no inverse. */
144
144
  export const CHIP_CLS = 'kol-control kol-control-sm kol-mono-12'
145
145
  export const chipCls = (on) => `${CHIP_CLS} ${on ? 'kol-control--filled' : 'text-meta hover:text-emphasis'}`
146
146
 
@@ -156,18 +156,16 @@ export function SettingsChipRow({ options = [], selected = [], onToggle }) {
156
156
  return (
157
157
  <div className="flex flex-wrap gap-1">
158
158
  {options.map((o) => (
159
- <Tag
159
+ <button
160
160
  key={String(o.value)}
161
- size="md"
162
- hash={false}
163
- variant={on.has(o.value) ? 'inverse' : 'secondary'}
164
- active={on.has(o.value)}
161
+ type="button"
165
162
  aria-pressed={on.has(o.value)}
166
163
  onClick={() => onToggle?.(o.value)}
164
+ className={chipCls(on.has(o.value))}
167
165
  >
168
166
  {o.label ?? String(o.value)}
169
167
  {o.count > 0 && <span className="text-meta"> {o.count}</span>}
170
- </Tag>
168
+ </button>
171
169
  ))}
172
170
  </div>
173
171
  )