@kolkrabbi/kol-component 0.379.0 → 0.380.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.
Files changed (65) hide show
  1. package/package.json +4 -4
  2. package/src/atoms/Badge.jsx +1 -5
  3. package/src/atoms/Button.jsx +4 -11
  4. package/src/atoms/Input.jsx +2 -6
  5. package/src/atoms/Pill.jsx +1 -3
  6. package/src/atoms/ProgressBar.jsx +3 -6
  7. package/src/atoms/SectionLabel.jsx +0 -22
  8. package/src/atoms/Tag.jsx +4 -7
  9. package/src/atoms/Textarea.jsx +1 -5
  10. package/src/atoms/ToggleCheckbox.jsx +3 -5
  11. package/src/atoms/ToggleSwitch.jsx +2 -7
  12. package/src/atoms/ViewToggle.jsx +0 -27
  13. package/src/index.js +0 -1
  14. package/src/molecules/AccountMenu.jsx +2 -2
  15. package/src/molecules/ButtonGroup.jsx +5 -14
  16. package/src/molecules/ButtonSplit.jsx +12 -26
  17. package/src/molecules/ContentRow.jsx +1 -29
  18. package/src/molecules/ContextMenu.jsx +0 -1
  19. package/src/molecules/DocsToc.jsx +1 -16
  20. package/src/molecules/Dropdown.jsx +4 -17
  21. package/src/molecules/EmptyState.jsx +1 -15
  22. package/src/molecules/FieldPair.jsx +1 -1
  23. package/src/molecules/Header.jsx +4 -4
  24. package/src/molecules/IndexRow.jsx +1 -1
  25. package/src/molecules/InlineAddRow.jsx +2 -2
  26. package/src/molecules/LabeledControl.jsx +5 -11
  27. package/src/molecules/LayerRow.jsx +1 -1
  28. package/src/molecules/LinkAddRow.jsx +5 -7
  29. package/src/molecules/Menu.jsx +11 -30
  30. package/src/molecules/MenuFloat.jsx +6 -12
  31. package/src/molecules/MenuList.jsx +5 -11
  32. package/src/molecules/Modal.jsx +16 -48
  33. package/src/molecules/ModalHeader.jsx +12 -20
  34. package/src/molecules/ModalShell.jsx +4 -7
  35. package/src/molecules/NoticeBanner.jsx +1 -1
  36. package/src/molecules/PanelsMenu.jsx +2 -2
  37. package/src/molecules/PasswordInput.jsx +1 -1
  38. package/src/molecules/QuantityInput.jsx +2 -18
  39. package/src/molecules/QuickLookFrame.jsx +2 -31
  40. package/src/molecules/RailHeader.jsx +11 -20
  41. package/src/molecules/ReadingActions.jsx +2 -2
  42. package/src/molecules/ReadingNotes.jsx +3 -3
  43. package/src/molecules/ReadingSettings.jsx +8 -8
  44. package/src/molecules/SearchInput.jsx +4 -5
  45. package/src/molecules/SectionText.jsx +2 -9
  46. package/src/molecules/SettingsControls.jsx +23 -23
  47. package/src/molecules/Slider.jsx +3 -54
  48. package/src/molecules/SpecList.jsx +1 -21
  49. package/src/molecules/TabsRow.jsx +6 -50
  50. package/src/molecules/TaskRow.jsx +2 -2
  51. package/src/molecules/TocRow.jsx +1 -1
  52. package/src/molecules/WorkspaceSwitcher.jsx +3 -6
  53. package/src/organisms/CommandOverlay.jsx +16 -116
  54. package/src/organisms/ContentFilters.jsx +4 -12
  55. package/src/organisms/MediaLibrary.jsx +0 -55
  56. package/src/organisms/NavRail.jsx +1 -4
  57. package/src/organisms/ReadingContents.jsx +2 -2
  58. package/src/organisms/ReadingOverview.jsx +5 -5
  59. package/src/organisms/ReadingPanel.jsx +1 -1
  60. package/src/organisms/SettingsPanel.jsx +19 -40
  61. package/src/organisms/Table.jsx +1 -49
  62. package/src/utilities/Popover.jsx +2 -4
  63. package/src/utilities/SelectionOverlay.jsx +1 -45
  64. package/src/molecules/FloatModuleHeader.jsx +0 -11
  65. package/src/organisms/NavRailFloat.jsx +0 -139
@@ -11,13 +11,13 @@ import LabeledControl from './LabeledControl.jsx'
11
11
  /**
12
12
  * The SETTINGS parts — what the generator settings window (`ModalDialog variant="settings"`) draws that is MORE than one
13
13
  * base control (plan-2026-11-12-one-header W6.1; the user, P9: *"whats the point of taking a base, and wrapping it and
14
- * adding nothing"*). A plain row is `LabeledControl variant="float"` around the base itself — `Slider variant="float"
15
- * readout="input"`, `Dropdown variant="float"`, `Input variant="float"`, `TabsRow variant="float"`, a bare float
14
+ * adding nothing"*). A plain row is `LabeledControl` around the base itself — `Slider
15
+ * readout="input"`, `Dropdown`, `Input`, `TabsRow`, a bare float
16
16
  * `ToggleSwitch` in a `horizontal` row — never a Settings* part. What stays here composes several:
17
17
  *
18
18
  * SettingsGrid the two-up grid a group lays its rows in
19
19
  * SettingsPoint an X / Y pair of float Inputs (the prefix names the axis)
20
- * SettingsRamp an A→B row, `LabeledControl variant="float" horizontal`: value A · curve · value B (float Input ·
20
+ * SettingsRamp an A→B row, `LabeledControl horizontal`: value A · curve · value B (float Input ·
21
21
  * float Dropdown · float Input); `SettingsRampHead` the VALUE A · CURVE · VALUE B row over them
22
22
  * SettingsLights a list of points — X · Y · radius · intensity float Inputs · delete — and Add light
23
23
  * SettingsFieldMap the field's gradient strip: FIELD MAP over a 26 strip (`background`) and two captions
@@ -51,7 +51,7 @@ export function SettingsPoint({ value = [0.5, 0.5], onChange, min, max, disabled
51
51
  const [x, y] = value
52
52
  const clamp = (n) => Math.min(max ?? Infinity, Math.max(min ?? -Infinity, n))
53
53
  const field = (axis, v, set) => (
54
- <Input variant="float" size="sm" prefix={axis} value={String(v)} disabled={disabled} aria-label={`${ariaLabel ?? 'Point'} ${axis}`}
54
+ <Input size="sm" prefix={axis} value={String(v)} disabled={disabled} aria-label={`${ariaLabel ?? 'Point'} ${axis}`}
55
55
  onCommit={(s) => set(clamp(num(s, v)))} width="100%" />
56
56
  )
57
57
  return (
@@ -73,16 +73,16 @@ export const SettingsRampHead = () => (
73
73
  export function SettingsRamp({ label, value = { a: 0, b: 1, curve: 'linear' }, onChange, curves = [], disabled, partial, ...rest }) {
74
74
  const set = (k) => (v) => onChange?.({ ...value, [k]: v })
75
75
  const box = (k) => (
76
- <Input variant="float" size="sm" value={String(value[k])} aria-label={`${label} value ${k.toUpperCase()}`} disabled={disabled || partial?.[k]}
76
+ <Input size="sm" value={String(value[k])} aria-label={`${label} value ${k.toUpperCase()}`} disabled={disabled || partial?.[k]}
77
77
  onCommit={(s) => set(k)(num(s, value[k]))} width="100%" className={partial?.[k] ? 'opacity-40' : ''} />
78
78
  )
79
79
  return (
80
80
  <Dim disabled={disabled} {...rest}>
81
- <LabeledControl variant="float" horizontal label={label}>
81
+ <LabeledControl horizontal label={label}>
82
82
  <div className="grid grid-cols-[minmax(0,87fr)_minmax(0,122fr)_minmax(0,87fr)] gap-x-2 items-center">
83
83
  {box('a')}
84
84
  <div className={partial?.curve ? 'opacity-40' : ''}>
85
- <Dropdown variant="float" size="sm" value={value.curve} onChange={set('curve')} options={curves} ariaLabel={`${label} curve`} disabled={disabled || partial?.curve} className={FILL} />
85
+ <Dropdown size="sm" value={value.curve} onChange={set('curve')} options={curves} ariaLabel={`${label} curve`} disabled={disabled || partial?.curve} className={FILL} />
86
86
  </div>
87
87
  {box('b')}
88
88
  </div>
@@ -94,7 +94,7 @@ export function SettingsRamp({ label, value = { a: 0, b: 1, curve: 'linear' }, o
94
94
  export function SettingsLights({ value = [], onChange, disabled }) {
95
95
  const set = (i, k, n) => onChange?.(value.map((l, j) => (j === i ? { ...l, [k]: n } : l)))
96
96
  const cell = (i, k, v, label) => (
97
- <Input variant="float" size="sm" value={String(v)} aria-label={`Light ${i + 1} ${label}`} width="100%"
97
+ <Input size="sm" value={String(v)} aria-label={`Light ${i + 1} ${label}`} width="100%"
98
98
  onCommit={(s) => set(i, k, num(s, v))} />
99
99
  )
100
100
  return (
@@ -106,10 +106,10 @@ export function SettingsLights({ value = [], onChange, disabled }) {
106
106
  {value.map((l, i) => (
107
107
  <div key={i} className="grid grid-cols-[repeat(4,minmax(0,1fr))_28px] gap-x-2 items-center">
108
108
  {cell(i, 'x', l.x, 'X')}{cell(i, 'y', l.y, 'Y')}{cell(i, 'radius', l.radius, 'radius')}{cell(i, 'intensity', l.intensity, 'intensity')}
109
- <Button variant="float" tone="ghost" size="sm" iconOnly="trash" aria-label={`Delete light ${i + 1}`} onClick={() => onChange?.(value.filter((_, j) => j !== i))} />
109
+ <Button tone="ghost" size="sm" iconOnly="trash" aria-label={`Delete light ${i + 1}`} onClick={() => onChange?.(value.filter((_, j) => j !== i))} />
110
110
  </div>
111
111
  ))}
112
- <Button variant="float" tone="ghost" size="sm" className="self-start" onClick={() => onChange?.([...value, { x: 0.5, y: 0.5, radius: 0.3, intensity: 1 }])}>+ Add light</Button>
112
+ <Button tone="ghost" size="sm" className="self-start" onClick={() => onChange?.([...value, { x: 0.5, y: 0.5, radius: 0.3, intensity: 1 }])}>+ Add light</Button>
113
113
  </Dim>
114
114
  )
115
115
  }
@@ -129,18 +129,18 @@ export function SettingsFieldMap({ background, left, right, label = 'Field map'
129
129
 
130
130
  /* ── retired 2026-11-12: each renders its base; on the retirement ledger until no repo imports it ─────────────────── */
131
131
 
132
- /** @deprecated 2026-11-12 — `LabeledControl variant="float"` around the control (`col-span-2` for a wide cell) */
132
+ /** @deprecated 2026-11-12 — `LabeledControl` around the control (`col-span-2` for a wide cell) */
133
133
  export function SettingsCell({ label, span = 1, disabled, className = '', children, ...rest }) {
134
134
  return (
135
135
  <Dim disabled={disabled} className={`${span === 2 ? 'col-span-2' : ''} ${className}`.trim()} {...rest}>
136
- <LabeledControl variant="float" label={label}>{children}</LabeledControl>
136
+ <LabeledControl label={label}>{children}</LabeledControl>
137
137
  </Dim>
138
138
  )
139
139
  }
140
140
 
141
- /** @deprecated 2026-11-12 — `Slider variant="float" readout="input"` (`format` → `formatValue`) */
141
+ /** @deprecated 2026-11-12 — `Slider readout="input"` (`format` → `formatValue`) */
142
142
  export function SettingsSlider({ value, onChange, min = 0, max = 1, step = 0.01, format, disabled, 'aria-label': ariaLabel }) {
143
- return <Slider variant="float" readout="input" value={value} onChange={onChange} min={min} max={max} step={step} formatValue={format} disabled={disabled} aria-label={ariaLabel} />
143
+ return <Slider readout="input" value={value} onChange={onChange} min={min} max={max} step={step} formatValue={format} disabled={disabled} aria-label={ariaLabel} />
144
144
  }
145
145
 
146
146
  /** @deprecated 2026-11-12 — `Slider variant="dual"` (`value` / `value2`, the formatted values as `label1` / `label2`) */
@@ -152,29 +152,29 @@ export function SettingsRange({ value = [0, 1], onChange, min = 0, max = 1, step
152
152
  )
153
153
  }
154
154
 
155
- /** @deprecated 2026-11-12 — `Dropdown variant="float"` */
155
+ /** @deprecated 2026-11-12 — `Dropdown` */
156
156
  export function SettingsSelect({ value, onChange, options = [], disabled, ariaLabel, className = '' }) {
157
- return <Dropdown variant="float" size="sm" value={value} onChange={onChange} options={options} ariaLabel={ariaLabel} disabled={disabled} className={`${FILL} ${className}`.trim()} />
157
+ return <Dropdown size="sm" value={value} onChange={onChange} options={options} ariaLabel={ariaLabel} disabled={disabled} className={`${FILL} ${className}`.trim()} />
158
158
  }
159
159
 
160
- /** @deprecated 2026-11-12 — `TabsRow variant="float"` */
160
+ /** @deprecated 2026-11-12 — `TabsRow` */
161
161
  export function SettingsSegmented({ value, onChange, options = [], ariaLabel }) {
162
- return <TabsRow variant="float" size="xs" tabs={options} value={value} onChange={onChange} ariaLabel={ariaLabel} className="w-full [&>*]:flex-1" />
162
+ return <TabsRow size="xs" tabs={options} value={value} onChange={onChange} ariaLabel={ariaLabel} className="w-full [&>*]:flex-1" />
163
163
  }
164
164
 
165
- /** @deprecated 2026-11-12 — `LabeledControl variant="float" horizontal` around a bare `ToggleSwitch variant="float"` */
165
+ /** @deprecated 2026-11-12 — `LabeledControl horizontal` around a bare `ToggleSwitch` */
166
166
  export function SettingsToggle({ label, checked, onChange, disabled }) {
167
167
  return (
168
- <LabeledControl variant="float" horizontal label={label} labelWidth="fit-content" className={disabled ? 'opacity-40' : ''}>
169
- <ToggleSwitch variant="float" checked={!!checked} onChange={onChange} aria-label={label} disabled={disabled} />
168
+ <LabeledControl horizontal label={label} labelWidth="fit-content" className={disabled ? 'opacity-40' : ''}>
169
+ <ToggleSwitch checked={!!checked} onChange={onChange} aria-label={label} disabled={disabled} />
170
170
  </LabeledControl>
171
171
  )
172
172
  }
173
173
 
174
- /** @deprecated 2026-11-12 — `Input variant="float"` */
174
+ /** @deprecated 2026-11-12 — `Input` */
175
175
  export function SettingsText({ value, onChange, onCommit, type = 'text', placeholder, disabled, 'aria-label': ariaLabel, className = '' }) {
176
176
  return (
177
- <Input variant="float" size="sm" type={type} value={value ?? ''} placeholder={placeholder} aria-label={ariaLabel} disabled={disabled} width="100%" className={className}
177
+ <Input size="sm" type={type} value={value ?? ''} placeholder={placeholder} aria-label={ariaLabel} disabled={disabled} width="100%" className={className}
178
178
  onChange={onChange ? (e) => onChange(type === 'number' ? Number(e.target.value) : e.target.value) : undefined} onCommit={onCommit} />
179
179
  )
180
180
  }
@@ -20,7 +20,7 @@ import LabeledControl from './LabeledControl.jsx'
20
20
  * routes were documented and neither was wired, so consumers were reaching into
21
21
  * `.slider-black` by specificity from their own stylesheets).
22
22
  * `--kol-slider-playhead` works the same way on the dual rail.
23
- * The minimal and float tracks read the shared track tokens (`--kol-track-h` · `-r` · `-bg` · `-run`, kol-theme
23
+ * The minimal track reads the shared track tokens (`--kol-track-h` · `-r` · `-bg` · `-run`, kol-theme
24
24
  * `.kol-track`, 2026-11-07) — ProgressBar draws the same track from them.
25
25
  *
26
26
  * DUAL + PLAYHEAD (SliderDualThumbAndPlayhead, kol-mirror 2026-08-30):
@@ -46,8 +46,8 @@ import LabeledControl from './LabeledControl.jsx'
46
46
  * @param {string} props.fontSize - Font size for label/value (e.g., '11px')
47
47
  * @param {Object} props.style - forwarded to the wrapper; the seam for `--kol-slider-track` / `--kol-slider-playhead`
48
48
  * @param {number} props.defaultValue - alt-click the control resets to this (falls back to `min`). Same contract on Knob
49
- * @param {'input'|'value'|'none'} props.readout - `input` (default) an editable Input · `value` a plain right-aligned span, Knob's own display-only readout · `none`. On `float` unset is `none`; `input` puts the value as an `Input variant="float"` pill at the track's right, sized in `ch` to the widest value (plan-2026-11-12-one-header W6.1 — the settings window's rows; typed values commit on Enter or blur, clamped, Escape reverts)
50
- * @param {'minimal'|'dual'|'scrub'|'panel'|'float'|'kolbox'} props.variant - `kolbox` (W31.2 batch 3): kolbox's track (2px oq-24, the run in the ink to the value, a 12 ink thumb) in a 24 row (`--kol-kolbox-ctl`); `readout` `value` (its default) the mono 12 value beside it, 40 wide, or `input` the track in an oq-16 field and the value in a text field 2 apart; no visible label (`aria-label` names it), `formatValue` defaults to the raw value · `dual` = two thumbs on one rail · `scrub` = a media scrubber: the thin track with the 4 × 28 pill knob (`.kol-playback-scrub`; `PlaybackBar`'s, 2026-10-02) · `panel` = the rack slider (was kol-hardware `Fader`, merged 2026-10-01): a drawn 2px track for a hardware panel; takes `value · onChange · min · max · step · label` plus `onHold` · `float` (float-everything W2 row 23, 2026-11-04; track only since 2026-11-12): the 3px capsule track at the float sm height — the run fg-64 to a 12 thumb (`.kol-slider-float`); a `label` is drawn by `LabeledControl variant="float"`, a `value` readout as its hint, `formatValue` its words (`65%`)
49
+ * @param {'input'|'value'|'none'} props.readout - `input` (default) an editable Input · `value` a plain right-aligned span, Knob's own display-only readout · `none`.
50
+ * @param {'minimal'|'dual'|'scrub'|'panel'|'kolbox'} props.variant - `kolbox` (W31.2 batch 3): kolbox's track (2px oq-24, the run in the ink to the value, a 12 ink thumb) in a 24 row (`--kol-kolbox-ctl`); `readout` `value` (its default) the mono 12 value beside it, 40 wide, or `input` the track in an oq-16 field and the value in a text field 2 apart; no visible label (`aria-label` names it), `formatValue` defaults to the raw value · `dual` = two thumbs on one rail · `scrub` = a media scrubber: the thin track with the 4 × 28 pill knob (`.kol-playback-scrub`; `PlaybackBar`'s, 2026-10-02) · `panel` = the rack slider (was kol-hardware `Fader`, merged 2026-10-01): a drawn 2px track for a hardware panel; takes `value · onChange · min · max · step · label` plus `onHold`
51
51
  * @param {'folio'} props.variant - also `folio` (Folio migration batch A, 2026-11-22): Folio's slider, a 24 row, the 2px track in the rule with the run in the accent to a 12 accent thumb, the value (JetBrains Mono 12 / 16, `formatValue` its words, raw by default) 32 wide at the right, 12 off; no visible label (`aria-label`). Chrome in kol-theme `.kol-slider--folio`
52
52
  * @param {number[]} props.stops - kolbox only: values marked on the track, a 2 mark each under the thumb's centre (a variable font's named weights)
53
53
  * @param {'horizontal'|'vertical'} props.direction - `vertical` stands the track upright at `height`, label above and readout below (2026-10-02 — the volume ranges were hand-drawn for want of it). On `panel`, horizontal takes the row and shows a readout
@@ -371,57 +371,6 @@ const Slider = ({
371
371
  const scrub = variant === 'scrub'
372
372
  const length = vertical ? height ?? 96 : size
373
373
 
374
- /* the float slider: track and thumb only, at the float sm height (plan-2026-11-12-float-system W2.1 — the label head it
375
- * carried went; the user: "SOME IDIOT tried to put label on the slider instead of using a fucking LABELEDCONTROL").
376
- * Its name is a LabeledControl's: a `label` passed here is drawn by `LabeledControl variant="float"`, the `value`
377
- * readout as its hint. The run is the value as a percent on the track. */
378
- if (variant === 'float') {
379
- const pct = max > min ? ((value - min) / (max - min)) * 100 : 0
380
- const track = (
381
- <input
382
- id={sliderId}
383
- type="range"
384
- min={min} max={max} step={step} value={value}
385
- onChange={handleChange}
386
- onClick={onAltReset}
387
- disabled={disabled}
388
- aria-label={ariaLabel ?? (typeof label === 'string' ? label : undefined)}
389
- className={`kol-slider-float block min-w-0 ${readout === 'input' ? 'flex-1 w-full' : label ? 'w-full' : className || 'w-full'}`.trim()}
390
- style={{ '--kol-slider-pct': `${pct}%`, ...(length ? { width: length } : null), ...(label || readout === 'input' ? null : style) }}
391
- />
392
- )
393
- /* the value pill: the float Input, its width the widest value in `ch` (never a fixed px — validate:float F4) */
394
- const box = readout === 'input' && (
395
- <Input
396
- type="text"
397
- inputMode="decimal"
398
- variant="float"
399
- size="sm"
400
- chars={Math.max(2, fmt(min).length, fmt(max).length)}
401
- value={draft}
402
- disabled={disabled}
403
- aria-label={`${ariaLabel ?? (typeof label === 'string' ? label : 'Value')} value`}
404
- /* editing shows the raw number (a `50%` reading is typed as 0.5, the engine's unit) */
405
- onFocus={(e) => { const el = e.target; setEditing(true); setDraft(String(value)); requestAnimationFrame(() => el.select()) }}
406
- onChange={(e) => setDraft(e.target.value)}
407
- onBlur={commit}
408
- onKeyDown={onKeyDown}
409
- className="shrink-0"
410
- inputClassName="text-center"
411
- />
412
- )
413
- const control = box
414
- ? <div className={`flex min-w-0 items-center gap-3 ${label ? 'w-full' : className || 'w-full'}`.trim()} style={label ? undefined : style}>{track}{box}</div>
415
- : track
416
- if (!label) return control
417
- return (
418
- <LabeledControl variant="float" label={label} hint={readout === 'value' ? displayValue : undefined} className={`${disabled ? 'opacity-40' : ''} ${className}`.trim()}>
419
- {control}
420
- </LabeledControl>
421
- )
422
- }
423
-
424
-
425
374
  const range = (
426
375
  <input
427
376
  id={sliderId}
@@ -8,28 +8,8 @@ import Divider from '../atoms/Divider.jsx'
8
8
  *
9
9
  * @param {Array<{label: string, value: ReactNode}>} items rows, keyed by label
10
10
  * @param {boolean} framed wrap the list in leading + trailing Divider
11
- * @param {'float'} [variant] `float` (float-everything W8 row 126, 2026-11-04 — kol-float--style 48:3982): the info
12
- * sheet — `title` in Inter 16 (`kol-float-body-lg`) over key · value rows on the sheet radius
13
- * (`--kol-float-menu-r`, surface-secondary, 24 in), no dividers (the no-borders law): the key in
14
- * `kol-float-hint` on fg-64 in a 126 column, the value beside it in Inter 13 on the emphasis ink, 12 between rows
15
- * @param {ReactNode} [title] float: the sheet's heading (`Book information`)
16
11
  */
17
- export default function SpecList({ items = [], framed = false, variant, title, className = '' }) {
18
- if (variant === 'float') {
19
- return (
20
- <section className={`flex w-full flex-col gap-5 rounded-[var(--kol-float-menu-r)] bg-surface-secondary p-6 ${className}`.trim()}>
21
- {title && <h3 className="kol-float-body-lg m-0 text-fg-emphasis">{title}</h3>}
22
- <dl className="m-0 flex flex-col gap-3">
23
- {items.map((item) => (
24
- <div key={item.label} className="grid grid-cols-[126px_1fr] items-baseline gap-4">
25
- <dt className="kol-float-hint text-fg-64">{item.label}</dt>
26
- <dd className="kol-float-hint m-0 text-fg-emphasis" style={{ fontSize: 13 }}>{item.value}</dd>
27
- </div>
28
- ))}
29
- </dl>
30
- </section>
31
- )
32
- }
12
+ export default function SpecList({ items = [], framed = false, className = '' }) {
33
13
  return (
34
14
  <>
35
15
  {framed && <Divider />}
@@ -34,8 +34,7 @@ import { floatSurfaceClass } from '../utilities/tone.js'
34
34
  * keeps one line that scrolls sideways with no scrollbar, `.kol-scroll-fade--x` fading the clipped edge(s), and the
35
35
  * active tab scrolled into view when it changes — arrow keys included; `wrap` breaks the tabs onto a second line.
36
36
  * Every variant but `stacked`, which has its phone bar
37
- * @param {'underline'|'chip'|'text'|'stacked'|'float'|'kolbox'} [variant='underline'] `kolbox` (W31.2 batch 3): kolbox's tab track, see `TabsKolbox` below; takes `tabs`, `value`, `onChange`, `size` (sm, md) and `className` only. `float` (W16, round 3): `chip`'s row as the floating
38
- * style's capsules — float heights (28/36/44, touch 36/44/52), 4 apart, the selected one oq-16
37
+ * @param {'underline'|'chip'|'text'|'stacked'|'kolbox'} [variant='underline'] `kolbox` (W31.2 batch 3): kolbox's tab track, see `TabsKolbox` below; takes `tabs`, `value`, `onChange`, `size` (sm, md) and `className` only.
39
38
  * @param {string} [look] @deprecated 2026-10-30 — the old spelling of `variant`; `variant` wins when both are passed
40
39
  * @param {'mono'|'sans'|'mono-light'} [type='mono'] `underline` only: the tab's type — `mono-light` is `sans`'s row on JetBrains Mono at 300 (his word, 2026-10-30)
41
40
  * @param {boolean} [filled=false] - `chip` only: every chip shows at rest (Button `tab-filled`), so the row reads as choices
@@ -79,16 +78,7 @@ import { floatSurfaceClass } from '../utilities/tone.js'
79
78
  * (FloatFoldBothSidesGrey, kol-fxr 2026-11-03)
80
79
  * @param {'ground'|'handle'} [foldTone='ground'] the edge tab's look: `ground` is the pill's own; `handle` is the grey edge
81
80
  * handle (iOS's), `--kol-oq-24` with an `--kol-oq-96` chevron, whatever the pill's `surface`
82
- * THE FLOAT ROW'S PARTS (float-everything W5 rows 67 · 78 and W9 row 137, 2026-11-04 — kol-float--style 46:1948, 46:2316,
83
- * 48:4586), `variant="float"` only:
84
- * @param {'xs'|'sm'|'md'|'lg'} [size] `xs` — the inspector's chip tabs: 26 capsules in `kol-float-label`, 10 in, the
85
- * selected one fg-16 (row 67); sm · md · lg are the float button heights
86
- * @param {'mono'} [type] `mono` — text tabs: mono labels (`kol-float-timecode`) at the sm height on the list radius, the
87
- * selected one FILLED fg-16, the rest fg-48 (row 137 — the underline's rule replaced by the fill)
88
- * A float tab takes `icon` (before the label, oq) and `count` (after it, mono, fg-64) — `Tasks 5` (row 78).
89
- * @param {'solid'|'glass-dark'|'glass-light'} [surface] on `float`: the row sits in its own capsule — the float material,
90
- * 6 in, so `size="lg"` tabs make the 56 pill (row 78). Unset, the row is bare as before
91
- * @param {ReactNode} [trailing] inside the pill, after the tabs: the float capsule's (with `surface`) or the stacked
81
+ * @param {ReactNode} [trailing] inside the pill, after the tabs: the stacked
92
82
  * phone pill's — AppFloatNav's transport puts its Timecode here. With `trailing` the phone pill anchors its LEFT
93
83
  * edge where a centred pill without it would start, so every slot stays where it was; it grows to the right
94
84
  * Tabs are `{ id, label }` or `{ value, label }` (either key), plus `icon` for stacked; a stacked tab's `selected`
@@ -156,20 +146,6 @@ export default function TabsRow({ tabs: raw = [], value, onChange, onClose, onMi
156
146
  const tabs = raw.map((t) => ({ ...t, id: t.id ?? t.value }))
157
147
  const look = variant ?? lookLegacy ?? 'underline'
158
148
  const wrap = overflow === 'wrap'
159
- /* `float` (W16, round 3): the chip row as capsules — float heights, pills 4 apart, the selected one oq-16 */
160
- if (look === 'float') {
161
- const row = <ChipTabs tabs={tabs} value={value} onChange={onChange} size={size ?? 'md'} float floatType={type} ariaLabel={ariaLabel} className={`${wrap ? 'flex-wrap ' : ''}${surface ? '' : className ?? ''}`} />
162
- /* the capsule (row 78): the float material, 6 in, the tabs then the trailing slot */
163
- if (surface) {
164
- return (
165
- <div className={`inline-flex max-w-full items-center gap-1 rounded-full p-1.5 ${floatSurfaceClass(surface)} ${className ?? ''}`.trim()}>
166
- <Overflow mode={overflow} value={value}>{row}</Overflow>
167
- {trailing && <div className="flex shrink-0 items-center gap-1">{trailing}</div>}
168
- </div>
169
- )
170
- }
171
- return <Overflow mode={overflow} value={value}>{row}</Overflow>
172
- }
173
149
  if (look === 'chip') return <Overflow mode={overflow} value={value}><ChipTabs tabs={tabs} value={value} onChange={onChange} size={size ?? 'sm'} filled={filled} ariaLabel={ariaLabel} className={`${wrap ? 'flex-wrap ' : ''}${className ?? ''}`} /></Overflow>
174
150
  if (look === 'text') return <Overflow mode={overflow} value={value}><TextTabs tabs={tabs} value={value} onChange={onChange} size={size ?? 14} tracked={tracked} className={`${wrap ? 'flex-wrap gap-y-2 ' : ''}${className ?? 'gap-6'}`} style={style} /></Overflow>
175
151
  if (look === 'stacked') return <StackedTabs trailing={trailing} tabs={tabs} value={value} onChange={onChange} placement={placement} shape={shape} collapsed={collapsed} onExpand={onExpand} edge={edge} border={border} shadow={shadow} dock={dock} active={active} foldable={foldable} folded={folded} onFoldChange={onFoldChange} foldSide={foldSide} foldTone={foldTone} surface={surface} split={split} labels={labels} ariaLabel={ariaLabel} className={className ?? ''} />
@@ -196,34 +172,14 @@ function Overflow({ mode, value, children }) {
196
172
  }
197
173
 
198
174
  /* chip — TabChips verbatim */
199
- function ChipTabs({ tabs, value, onChange, size, filled, float = false, floatType, ariaLabel, className }) {
200
- /* the float's two plain rows — the inspector's 26 chips (xs) and the mono text tabs — are drawn here, not by Button:
201
- * neither is a Button rung (26 is not a float height; a mono label is not the float button's type) */
202
- const plain = float && (size === 'xs' || floatType === 'mono')
175
+ function ChipTabs({ tabs, value, onChange, size, filled, ariaLabel, className }) {
203
176
  return (
204
- <div className={`flex items-center ${filled ? 'gap-2' : 'gap-1'}${float ? ' kol-tabs-float' : ''} ${className}`.trim()} role="tablist" aria-label={ariaLabel}>
177
+ <div className={`flex items-center ${filled ? 'gap-2' : 'gap-1'} ${className}`.trim()} role="tablist" aria-label={ariaLabel}>
205
178
  {tabs.map((t) => {
206
179
  const active = t.id === value
207
- if (plain) {
208
- const mono = floatType === 'mono'
209
- return (
210
- <button key={t.id} type="button" role="tab" aria-selected={active} data-active={active || undefined} onClick={() => onChange?.(t.id)}
211
- className={`inline-flex shrink-0 items-center whitespace-nowrap cursor-pointer focus-visible:outline-none focus-visible:shadow-[var(--kol-float-focus)] ${mono ? 'kol-float-timecode h-[var(--kol-float-h-sm)] rounded-[var(--kol-float-list-r)] px-3' : 'kol-float-label h-[26px] rounded-full px-2.5'} ${active ? 'bg-fg-16 text-fg-emphasis' : `${mono ? 'text-fg-48' : 'text-fg-64'} hover:bg-fg-08 hover:text-fg-emphasis`}`}>
212
- {t.label}
213
- </button>
214
- )
215
- }
216
- if (float && (t.icon || t.count != null)) {
217
- return (
218
- <Button key={t.id} variant="float" size={size} iconLeft={t.icon} pressed={active} role="tab" aria-selected={active} aria-pressed={undefined} data-active={active || undefined} onClick={() => onChange?.(t.id)}>
219
- {t.label}
220
- {t.count != null && <span className="kol-float-ruler ml-0.5 tabular-nums text-fg-64">{t.count}</span>}
221
- </Button>
222
- )
223
- }
224
180
  return (
225
181
  /* a tab is selected, not pressed — the role's own attribute replaces Button's aria-pressed */
226
- <Button key={t.id} variant={float ? 'float' : filled ? 'tab-filled' : 'tab'} size={size} pressed={active} role="tab" aria-selected={active} aria-pressed={undefined} data-active={active || undefined} onClick={() => onChange?.(t.id)}>
182
+ <Button key={t.id} variant={filled ? 'tab-filled' : 'tab'} size={size} pressed={active} role="tab" aria-selected={active} aria-pressed={undefined} data-active={active || undefined} onClick={() => onChange?.(t.id)}>
227
183
  {t.label}
228
184
  </Button>
229
185
  )
@@ -314,7 +270,7 @@ function StackedTabs({ trailing, tabs, value, onChange, placement, shape = 'bar'
314
270
  const slotW = labels ? TABBAR_PILL_LABEL_TAB : TABBAR_PILL_TAB
315
271
  const slotH = labels ? 58 : TABBAR_PILL_TAB
316
272
  const ink = (on) => (phone ? (on ? RAIL_ROW.active : RAIL_ROW.rest) : (on ? 'var(--kol-fg-default)' : 'var(--kol-fg-48)'))
317
- const tip = (t, el) => <Tooltip key={t.id} label={t.label} placement={top ? 'bottom' : 'top'} offset={10} variant="float" asChild>{el}</Tooltip>
273
+ const tip = (t, el) => <Tooltip key={t.id} label={t.label} placement={top ? 'bottom' : 'top'} offset={10} asChild>{el}</Tooltip>
318
274
  const slot = (t) => {
319
275
  const active = t.selected ?? t.id === value
320
276
  if (pill) {
@@ -9,7 +9,7 @@ import ToggleCheckbox from '../atoms/ToggleCheckbox.jsx'
9
9
  * ink (fg-48 and struck once done), and the date as a chip at the right: a capsule on the well (`--kol-float-well`,
10
10
  * the field's ground) at the float md height, the calendar glyph on oq-64, the date in `kol-float-timecode`. `onDate`
11
11
  * makes the chip a button (open your date picker there); without it the chip is a label. Lists end in an
12
- * `InlineAddRow variant="float"` — the panel's `+ New brief`.
12
+ * `InlineAddRow` — the panel's `+ New brief`.
13
13
  *
14
14
  * @param {ReactNode} title
15
15
  * @param {string} [date]
@@ -22,7 +22,7 @@ export default function TaskRow({ title, date, done = false, onDone, onDate, onC
22
22
  const Chip = onDate ? 'button' : 'span'
23
23
  return (
24
24
  <div className={`flex min-h-[var(--kol-float-h-md)] w-full items-center gap-3 ${className}`.trim()}>
25
- <ToggleCheckbox variant="float" checked={done} onChange={onDone} aria-label="Done" className="shrink-0" />
25
+ <ToggleCheckbox checked={done} onChange={onDone} aria-label="Done" className="shrink-0" />
26
26
  <span
27
27
  onClick={onClick}
28
28
  className={`kol-float-body-lg min-w-0 flex-1 truncate ${onClick ? 'cursor-pointer' : ''} ${done ? 'text-fg-48 line-through' : 'text-fg-emphasis'}`.trim()}
@@ -3,7 +3,7 @@
3
3
  * kol-float--style 48:3582). 32 tall on the list radius, 12 in: the number in mono (`kol-float-ruler`, fg-64, two
4
4
  * digits), 16 off it the title in `kol-float-hint`. `current` is where the reader is: the row lifts to fg-16 and the
5
5
  * title takes the emphasis ink (`aria-current="location"`); the rest sit at fg-64 and brighten under the pointer.
6
- * `DocsToc variant="float"` draws its list from these.
6
+ * `DocsToc` draws its list from these.
7
7
  *
8
8
  * @param {number|string} [number] padded to two digits when a number
9
9
  * @param {ReactNode} label
@@ -4,18 +4,15 @@ import Dropdown from './Dropdown.jsx'
4
4
  * WorkspaceSwitcher — Which workspace you are in. `Personal / Kolkrabbi ⌄` (float-everything W4 row 58, 2026-11-04 —
5
5
  * the exploration's workspace selector at the top of a rail). A `Dropdown` of the workspaces — a button, no label of
6
6
  * its own (plan-2026-11-07-menu-system W1.2): the caller names it with `LabeledControl`
7
- * (`<LabeledControl label="Workspace" variant="float"><WorkspaceSwitcher … /></LabeledControl>`). `variant="float"` is
8
- * the float select on the well, the default the sm dropdown. A workspace is `{ value, label, icon? }`; a nested one
7
+ * (`<LabeledControl label="Workspace"><WorkspaceSwitcher … /></LabeledControl>`). A workspace is `{ value, label, icon? }`; a nested one
9
8
  * reads `Studio / Personal` in its label.
10
9
  *
11
10
  * @param {string} [label] what it chooses, for a screen reader — default `Workspace`
12
11
  * @param {Array} workspaces Dropdown options
13
12
  * @param {string} value
14
13
  * @param {Function} onChange `(value) => void`
15
- * @param {'float'} [variant]
16
14
  * @param {string} [className]
17
15
  */
18
- export default function WorkspaceSwitcher({ label = 'Workspace', workspaces = [], value, onChange, variant, className = '' }) {
19
- const float = variant === 'float'
20
- return <Dropdown variant={float ? 'float' : undefined} size={float ? 'md' : undefined} options={workspaces} value={value} onChange={onChange} ariaLabel={label} className={className} />
16
+ export default function WorkspaceSwitcher({ label = 'Workspace', workspaces = [], value, onChange, className = '' }) {
17
+ return <Dropdown options={workspaces} value={value} onChange={onChange} ariaLabel={label} className={className} />
21
18
  }