@kolkrabbi/kol-component 0.383.0 → 0.385.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/src/atoms/Kbd.jsx CHANGED
@@ -13,45 +13,35 @@
13
13
  * is a GLYPH, never a typed character in the mono face.
14
14
  * It follows the cap: 10 in `sm`, 12 in `md` (2026-10-02 —
15
15
  * it was 12 in both, so in the small ⌘K cap the ⌘ outgrew the K)
16
- * @param {'default'|'kolbox'} variant `kolbox` (plan-2026-11-18-kolbox-system W31.2, 2026-11-18): kolbox's cap carried
17
- * class for class, the same sizes in kolbox's mono steps (sm 10 / 14, md 12 / 16), no gap; chrome
18
- * in kol-theme `.kol-kbd--kolbox`.
19
- * @param {boolean} onAccent kolbox only: on a lit accent row the cap takes the on-accent ink over a 15% wash of it.
16
+ * ONE CAP, ITS LOOK THE THEME'S (plan-2026-11-29-one-set-fold W2): the plate, the ink, the gap, the type and the glyph's
17
+ * line are `--kol-kbd-*` (kol-theme kol-components-atoms.css); the default theme leaves them
18
+ * unset, `data-theme-variant="kolbox"` sets kolbox's (its canvas plate, mono 10 / 14 and 11 / 16,
19
+ * no gap, a 1px glyph line).
20
+ * @param {'default'|'kolbox'} variant `kolbox` is accepted and does nothing (its branch is in `_tmp/2026-11-29-one-set-fold/`).
21
+ * @param {boolean} onAccent on a lit accent row the cap takes the on-accent ink over a 15% wash of it.
20
22
  *
21
23
  * KbdKeys (a member of Kbd): a drawn shortcut ('⌘⇧S') split into one cap per key, each modifier its own and the rest
22
24
  * one key; ⌘ is the `command` glyph. `keys`, `size`, `onAccent`, `variant`, `className`.
23
25
  */
24
26
  import { IconLoader } from '@kolkrabbi/kol-icons'
25
27
 
28
+ /* the box per size; the plate, ink, gap and type in the theme rule (`.kol-kbd`, `.kol-kbd-sm`, `.kol-kbd-md`) */
26
29
  const SIZE = {
27
- sm: 'h-4 min-w-4 px-1 kol-helper-10',
28
- md: 'h-5 min-w-5 px-1.5 kol-helper-12',
30
+ sm: 'kol-kbd-sm h-4 min-w-4 px-1',
31
+ md: 'kol-kbd-md h-5 min-w-5 px-1.5',
29
32
  }
30
33
  const GLYPH = { sm: 10, md: 12 }
31
- /* kolbox: the same boxes, its type in the theme rule */
32
- const KOLBOX_SIZE = { sm: 'h-4 min-w-4 px-1', md: 'h-5 min-w-5 px-1.5' }
33
34
 
34
- export default function Kbd({ size = 'md', icon, variant = 'default', onAccent = false, className = '', children, accent, ...rest }) {
35
+ /* `variant` is read by nobody: the old `kolbox` is accepted and does nothing (W2, on the retirement ledger) */
36
+ export default function Kbd({ size = 'md', icon, variant, onAccent = false, className = '', children, accent, ...rest }) {
35
37
  if (accent === 'secondary') rest['data-accent'] = accent
36
- if (variant === 'kolbox') {
37
- return (
38
- <kbd
39
- aria-hidden="true"
40
- className={`kol-kbd--kolbox kol-kbd--kolbox-${size}${onAccent ? ' kol-kbd--kolbox-on-accent' : ''} inline-flex shrink-0 items-center justify-center ${KOLBOX_SIZE[size] ?? KOLBOX_SIZE.md} ${className}`.trim()}
41
- {...rest}
42
- >
43
- {icon && <IconLoader name={icon} size={GLYPH[size] ?? GLYPH.md} className="kol-kolbox-icon shrink-0" />}
44
- {children}
45
- </kbd>
46
- )
47
- }
48
38
  return (
49
39
  <kbd
50
40
  aria-hidden="true"
51
- className={`inline-flex items-center justify-center gap-0.5 shrink-0 rounded-[var(--kol-radius-2)] bg-oq-08 text-oq-64 ${SIZE[size] ?? SIZE.md} ${className}`.trim()}
41
+ className={`kol-kbd ${SIZE[size] ?? SIZE.md}${onAccent ? ' kol-kbd--on-accent' : ''} inline-flex items-center justify-center shrink-0 ${className}`.trim()}
52
42
  {...rest}
53
43
  >
54
- {icon && <IconLoader name={icon} size={GLYPH[size] ?? GLYPH.md} />}
44
+ {icon && <IconLoader name={icon} size={GLYPH[size] ?? GLYPH.md} className="kol-kbd-icon shrink-0" />}
55
45
  {children}
56
46
  </kbd>
57
47
  )
@@ -69,8 +59,8 @@ export function KbdKeys({ keys, size, onAccent, variant, className = '' }) {
69
59
  <span aria-hidden className={`inline-flex shrink-0 items-center gap-0.5 ${className}`} data-keys={keys}>
70
60
  {keysOf(keys).map((k, i) => (
71
61
  k === '⌘'
72
- ? <Kbd key={i} size={size} variant={variant} onAccent={onAccent} icon="command" />
73
- : <Kbd key={i} size={size} variant={variant} onAccent={onAccent}>{k}</Kbd>
62
+ ? <Kbd key={i} size={size} onAccent={onAccent} icon="command" />
63
+ : <Kbd key={i} size={size} onAccent={onAccent}>{k}</Kbd>
74
64
  ))}
75
65
  </span>
76
66
  )
@@ -8,12 +8,12 @@ import { IconLoader } from '@kolkrabbi/kol-icons'
8
8
  * variant="filled" (default) — persistent solid bg
9
9
  * variant="ghost" — legacy alias, resolves to outline
10
10
  * variant="outline" — bordered, transparent bg
11
- * variant="kolbox" — kolbox's field (plan-2026-11-18-kolbox-system W31.2, 2026-11-18), carried class for
12
- * class: a bare <textarea> filling its row (flex-1), the field's oq-16 fill, an oq-24 line,
13
- * radius 4, 8 by 4 in, JetBrains Mono 12 / 16 in the ink, the accent line while focused,
14
- * native vertical resize, the browser's own rows unless `rows` is given. No size, no grip.
15
- * Chrome in kol-theme `.kol-textarea--kolbox`.
16
- *
11
+ * ONE TEXTAREA, ITS LOOK THE THEME'S (plan-2026-11-29-one-set-fold W2): the fill, the line, the padding, the type
12
+ * and how it resizes are `--kol-textarea-*` (kol-theme kol-components-atoms.css); the
13
+ * default theme leaves them unset (the grip below), `data-theme-variant="kolbox"` sets
14
+ * kolbox's (the field, the one edge, 8 by 4 in, mono 12 / 16, native vertical resize, no
15
+ * grip). `variant="kolbox"` is accepted and does nothing but keep its old rows, the
16
+ * browser's own (its branch is in `_tmp/2026-11-29-one-set-fold/`).
17
17
  * size="sm" / "md" (default) / "lg" — padding + type class
18
18
  *
19
19
  * Default rows = 3 (kept short — long content gets scrollbars instead of
@@ -37,6 +37,8 @@ import { IconLoader } from '@kolkrabbi/kol-icons'
37
37
  */
38
38
 
39
39
  const SIZE_TYPE = { xs: 'kol-mono-8', sm: 'kol-mono-12', md: 'kol-mono-14', lg: 'kol-mono-16' }
40
+ /* the old theme words in `variant`: accepted, nothing but their old rows (W2, on the retirement ledger) */
41
+ const THEME_WORDS = ['kolbox', 'folio']
40
42
 
41
43
  export default function Textarea({
42
44
  value,
@@ -50,16 +52,14 @@ export default function Textarea({
50
52
  className = '',
51
53
  ...props
52
54
  }) {
53
- if (variant === 'kolbox') {
54
- return <textarea value={value} onChange={onChange} rows={rows} placeholder={placeholder} disabled={disabled} className={`kol-textarea--kolbox min-w-0 flex-1 resize-y border px-2 py-1 outline-none ${className}`} {...props} />
55
- }
56
-
57
- // ghost folds into outline (2026-07-08 chrome law): one secondary treatment.
58
- const resolvedVariant = variant === 'ghost' ? 'outline' : variant
55
+ // ghost folds into outline (2026-07-08 chrome law): one secondary treatment. The theme words are nothing.
56
+ const themeWord = THEME_WORDS.includes(variant)
57
+ const resolvedVariant = variant === 'ghost' ? 'outline' : themeWord ? undefined : variant
59
58
 
60
59
  const wrapperCls = [
61
60
  'kol-control',
62
- `kol-control--${resolvedVariant}`,
61
+ 'kol-textarea',
62
+ resolvedVariant && `kol-control--${resolvedVariant}`,
63
63
  'kol-control--textarea',
64
64
  `kol-control-${size}`,
65
65
  SIZE_TYPE[size],
@@ -77,12 +77,11 @@ export default function Textarea({
77
77
  <label className={wrapperCls} aria-disabled={disabled || undefined}>
78
78
  <textarea
79
79
  {...valueProps}
80
- rows={rows ?? 3}
80
+ rows={rows ?? (themeWord ? undefined : 3)}
81
81
  placeholder={placeholder}
82
82
  disabled={disabled}
83
83
  spellCheck={false}
84
84
  className="block w-full bg-transparent border-none outline-none text-auto"
85
- style={{ resize: 'none' }}
86
85
  {...props}
87
86
  />
88
87
  <span
package/src/index.js CHANGED
@@ -60,7 +60,7 @@ export { default as LabeledControl } from './molecules/LabeledControl.jsx'
60
60
  export { default as RailFloat, default as FloatModule } from './molecules/RailFloat.jsx'
61
61
  export { default as OverlayGlassPanel } from './utilities/OverlayGlassPanel.jsx'
62
62
  export { default as Pill } from './atoms/Pill.jsx'
63
- export { usePopover, PopoverPanel, PopoverLayer, Tooltip } from './utilities/Popover.jsx'
63
+ export { usePopover, PopoverPanel, PopoverLayer, Tooltip, InTooltip, InTooltip as InTooltipKolbox, PanelShell, PanelShell as KolboxShell } from './utilities/Popover.jsx'
64
64
  export { floatSurfaceClass, FLOAT_SURFACES } from './utilities/tone.js'
65
65
  export { floatMotion, FLOAT_MOTION } from './utilities/motion.js'
66
66
  /* armLongPress — the touch hold the panel value controls report (moved from kol-hardware 2026-10-01) */
@@ -170,7 +170,7 @@ function JoinedFolio({ value, onChange, options, ariaLabel, className }) {
170
170
  if (value == null) {
171
171
  return (
172
172
  <span role="group" aria-label={ariaLabel} className={`flex shrink-0 items-center ${className}`.trim()}>
173
- {options.map(({ icon, ariaLabel: name, pressed, onPress }) => <Button key={name} variant="folio" iconOnly={icon} aria-label={name} pressed={pressed} onClick={onPress} />)}
173
+ {options.map(({ icon, ariaLabel: name, pressed, onPress }) => <Button key={name} variant="folio" keepFocus iconOnly={icon} aria-label={name} pressed={pressed} onClick={onPress} />)}
174
174
  </span>
175
175
  )
176
176
  }
@@ -5,56 +5,36 @@ import Input from '../atoms/Input.jsx'
5
5
  * two-up position fields). Two `Input`s 8 apart, each led by its letter (`prefix`), sharing one `variant` and `size`;
6
6
  * the pair fills its row, each field half. A position, a size, a range — any two values that are read together.
7
7
  *
8
- * `variant="kolbox"` (kolbox's PropertyRow, Figma 70:12121, plan-2026-11-18-kolbox-system W31.2, 2026-11-18, carried
9
- * class for class): two slots instead of two Inputs' props, `first` and `second`, then `trailing` (icons or a tag). THE
10
- * RAIL'S ONE GRID (plan-2026-11-19-kolbox-whats-left R3.1): the row is a grid on `--kol-kolbox-row-cols`, the tracks
8
+ * ONE PAIR (plan-2026-11-29-one-set-fold W2, slots adopted for everyone; kolbox's PropertyRow, Figma 70:12121): two slots,
9
+ * `first` and `second`, then `trailing` (icons or a tag); `fields` fills the two slots with Inputs. THE RAIL'S ONE GRID
10
+ * (plan-2026-11-19-kolbox-whats-left R3.1): the row is a grid on `--kol-kolbox-row-cols`, the tracks
11
11
  * LabeledControlSection kolbox sets for every row it holds: two field columns and two 16 icon columns, 8 apart (in the
12
12
  * 240 rail: 76, 76, 16, 16, his design's Stroke row, 149:26890). `first` takes column 1 (`span`: columns 1 and 2, a
13
13
  * row of one field), `second` column 2, `trailing` the icon columns from the right, so a lone icon sits on the last and
14
- * a pair on both. Outside a section the tracks are two equal columns and the trailing's own width. Each control fills
15
- * its cell. It draws nothing of its own; the wrapper carries `data-property-row`.
16
- *
17
- * `variant="folio"` (Folio's SettingPair, Folio batch C, 2026-11-22, carried class for class): two 32 fields 8 apart at
18
- * radius 4, padded 16, Folio's hairline round each (green while it has focus), each led by its `prefix` in the muted
19
- * ink; the value in mono 12 / 16. `fields` as the default's, each a plain input's props. Chrome in kol-theme
20
- * `.kol-field-pair--folio`.
14
+ * a pair on both. Outside a section the tracks are the theme's `--kol-field-pair-cols` (unset: two equal columns, and
15
+ * the trailing's own width after them when there is one; kolbox always keeps that third column). Each control fills its
16
+ * cell. It draws nothing of its own; the wrapper carries `data-property-row`. `variant="kolbox"` and `variant="folio"`
17
+ * are accepted and do nothing (their branches are in `_tmp/2026-11-29-one-set-fold/`; folio's own fields are two Inputs).
21
18
  *
22
19
  * @param {Array} fields two Input prop sets — `[{ prefix: 'X', value, onChange, ... }, { prefix: 'Y', ... }]`
23
- * @param {'filled'|'outline'|'kolbox'|'folio'} [variant] passed to both Inputs; `kolbox` takes the slots below
20
+ * @param {'filled'|'outline'} [variant] passed to both `fields` Inputs
24
21
  * @param {'sm'|'md'|'lg'} [size] passed to both
25
- * @param {ReactNode} [first] kolbox: the left cell
26
- * @param {ReactNode} [second] kolbox: the right cell
27
- * @param {ReactNode} [trailing] kolbox: the icon columns
28
- * @param {boolean} [span] kolbox: `first` spans both field columns
22
+ * @param {ReactNode} [first] the left cell (in place of `fields[0]`)
23
+ * @param {ReactNode} [second] the right cell (in place of `fields[1]`)
24
+ * @param {ReactNode} [trailing] the icon columns
25
+ * @param {boolean} [span] `first` spans both field columns
29
26
  * @param {string} [className]
30
27
  */
31
28
  export default function FieldPair({ fields = [], variant, size, first, second, trailing, span = false, className = '', ...rest }) {
32
- if (variant === 'kolbox') {
33
- return (
34
- <div {...rest} className={`grid min-w-0 grid-cols-[var(--kol-kolbox-row-cols,minmax(0,1fr)_minmax(0,1fr)_auto)] items-center gap-2 ${className}`.trim()} data-property-row>
35
- <div className={`flex min-w-0 ${span ? 'col-span-2' : ''}`}>{first}</div>
36
- {!span && <div className="flex min-w-0">{second}</div>}
37
- {trailing && <div className="col-start-3 -col-end-1 flex items-center justify-end gap-2">{trailing}</div>}
38
- </div>
39
- )
40
- }
41
- if (variant === 'folio') {
42
- return (
43
- <div {...rest} className={`kol-field-pair--folio flex items-center gap-[8px] ${className}`.trim()}>
44
- {fields.map(({ prefix, ...f }) => (
45
- <label key={prefix} className="kol-field-pair-field flex h-[32px] min-w-0 flex-1 items-center rounded-[4px] border px-[16px]">
46
- <span className="kol-field-pair-prefix shrink-0 pr-[4px]">{prefix}</span>
47
- <input {...f} className="min-w-0 flex-1 bg-transparent outline-none" />
48
- </label>
49
- ))}
50
- </div>
51
- )
52
- }
29
+ const field = (f, i) => f && <Input key={f.key ?? f.prefix ?? i} variant={variant} size={size} width="100%" className="flex-1 min-w-0" {...f} />
30
+ const one = first ?? field(fields[0], 0)
31
+ const two = second ?? field(fields[1], 1)
32
+ const cols = trailing ? 'minmax(0,1fr) minmax(0,1fr) auto' : 'minmax(0,1fr) minmax(0,1fr)'
53
33
  return (
54
- <div className={`flex items-center gap-2 ${className}`.trim()}>
55
- {fields.slice(0, 2).map((f, i) => (
56
- <Input key={f.key ?? f.prefix ?? i} variant={variant} size={size} width="100%" className="flex-1 min-w-0" {...f} />
57
- ))}
34
+ <div {...rest} className={`grid min-w-0 items-center gap-2 ${className}`.trim()} style={{ gridTemplateColumns: `var(--kol-kolbox-row-cols, var(--kol-field-pair-cols, ${cols}))`, ...rest.style }} data-property-row>
35
+ <div className={`flex min-w-0 ${span ? 'col-span-2' : ''}`}>{one}</div>
36
+ {!span && <div className="flex min-w-0">{two}</div>}
37
+ {trailing && <div className="col-start-3 -col-end-1 flex items-center justify-end gap-2">{trailing}</div>}
58
38
  </div>
59
39
  )
60
40
  }
@@ -37,15 +37,15 @@
37
37
  * `'settings'` (plan-2026-11-12-float-rails-figma W13.1): the generator settings window's row (`Dialog
38
38
  * variant="settings"`): the label in Inter 10 at oq-64, 6 over the control; `horizontal` puts it beside the
39
39
  * control, 8 apart, the label hugging its text (a `labelWidth` still sets a column).
40
- * `'kolbox'` (plan-2026-11-18-kolbox-system W31.2, 2026-11-18): kolbox's row carried class for class, the label
41
- * Inter 12 / 16 medium in oq-64. `horizontal`: the label in a 76 column (a `labelWidth` sets another, 160 for a
42
- * window's longer labels), 8 from the control, the row at least 28; stacked: the label 4 over a row of controls
43
- * 4 apart. `controlFirst`: the control at the left, inset 4, then 8 apart the label in Inter 11 / 15, the row as
44
- * tall as its control. Chrome in kol-theme `.kol-labeled-control--kolbox`.
45
- * `'folio'` (Folio batch C, 2026-11-22): Folio's Setting carried class for class. Stacked: the label (Folio's
46
- * label, 10 semibold, tracked, capitals) 8 over the control; `horizontal`: the label (12 / 16 medium) in a 48
47
- * column, 12 from the control. Both labels in Folio's muted ink. Chrome in kol-theme `.kol-labeled-control--folio`.
48
- * controlFirst — bool, `kolbox` only: the control before its label (kolbox's Clip content row).
40
+ * `'kolbox'` and `'folio'` are accepted and do nothing (plan-2026-11-29-one-set-fold W2; their branches are
41
+ * in `_tmp/2026-11-29-one-set-fold/`): the look is the theme's. The label's type and ink, its column, the gaps,
42
+ * the row's least height and the body are `--kol-label-*` (kol-theme kol-components-molecules.css,
43
+ * LabeledControl); the default theme leaves them unset, `data-theme-variant="kolbox"` sets kolbox's (the label
44
+ * the UI text 11 / 16 at the label weight in oq-64, horizontal a 76 column 8 from the control and the row at
45
+ * least 24, the control cell a row 8 apart; stacked the label 4 over a row of controls 4 apart).
46
+ * controlFirst — bool: the control at the left, inset 4, then 8 apart its label (a checkbox row, kolbox's Clip content
47
+ * row), the row as tall as its control. The label is the help type (`--kol-label-help-*`; kolbox 11 / 15 in
48
+ * oq-64, unset the row's own).
49
49
  * labelClass — the label's type and ink, replacing the variant's (a row that keeps its own label look: Slider's
50
50
  * kol-helper-12, a toggle's words in the settings ink). On `panel` it defaults to kol-helper-8.
51
51
  * children — the control body.
@@ -73,44 +73,11 @@ export default function LabeledControl({
73
73
  controlFirst = false,
74
74
  ...rest
75
75
  }) {
76
- if (variant === 'kolbox') {
77
- const mark = { 'data-labeled-control': '', ...rest }
78
- if (controlFirst) {
79
- return (
80
- <div {...mark} className={`kol-labeled-control--kolbox flex items-center gap-2 pl-1 ${className}`.trim()}>
81
- {children}
82
- <span className="kol-labeled-control-help min-w-0 flex-1 truncate">{label}</span>
83
- </div>
84
- )
85
- }
86
- if (!(horizontal ?? inline ?? false)) {
87
- return (
88
- <div {...mark} className={`kol-labeled-control--kolbox flex flex-col gap-1 ${className}`.trim()}>
89
- <span className="kol-labeled-control-label">{label}</span>
90
- <div className="flex min-w-0 items-center gap-1">{children}</div>
91
- </div>
92
- )
93
- }
76
+ if (controlFirst) {
94
77
  return (
95
- <div {...mark} className={`kol-labeled-control--kolbox flex min-h-(--kol-kolbox-ctl) items-center gap-2 ${className}`.trim()}>
96
- <span className={`kol-labeled-control-label ${labelWidth == null ? 'w-19 ' : ''}shrink-0 truncate`} style={labelWidth == null ? undefined : { width: labelWidth }}>{label}</span>
97
- <div className="flex min-w-0 flex-1 items-center gap-2">{children}</div>
98
- </div>
99
- )
100
- }
101
- if (variant === 'folio') {
102
- if (horizontal ?? inline ?? false) {
103
- return (
104
- <div {...rest} className={`kol-labeled-control--folio flex items-center gap-[12px] ${className}`.trim()}>
105
- <p className="kol-labeled-control-label w-[48px] shrink-0">{label}</p>
106
- <div className="flex min-w-0 flex-1 items-center">{children}</div>
107
- </div>
108
- )
109
- }
110
- return (
111
- <div {...rest} className={`kol-labeled-control--folio flex flex-col gap-[8px] ${className}`.trim()}>
112
- <p className="kol-labeled-control-title">{label}</p>
78
+ <div data-labeled-control="" {...rest} className={`flex items-center gap-2 pl-1 ${className}`.trim()}>
113
79
  {children}
80
+ <span className="kol-labeled-control-help min-w-0 flex-1 truncate">{label}</span>
114
81
  </div>
115
82
  )
116
83
  }
@@ -131,10 +98,12 @@ export default function LabeledControl({
131
98
  }
132
99
  const showLabel = !!label
133
100
  const settings = variant === 'settings'
134
- const lw = labelWidth ?? (settings ? 'fit-content' : 48)
101
+ /* the column: the caller's, the settings row's hug, else the theme's (unset 48) */
102
+ const lw = labelWidth ?? (settings ? 'fit-content' : 'var(--kol-label-w, 48px)')
135
103
  const gapClass = settings ? (horizontal ?? inline ? 'gap-2' : 'gap-1.5') : null
136
104
  const mark = { 'data-labeled-control': '', ...rest }
137
- const labelType = labelClass ?? (settings ? SETTINGS_LABEL : 'kol-helper-10 tracking-widest text-meta')
105
+ /* the label's own type is the theme's (`.kol-labeled-control-label`, unset kol-helper-10 tracked in the meta ink) */
106
+ const labelType = labelClass ?? (settings ? SETTINGS_LABEL : 'kol-labeled-control-label')
138
107
  /* a display class from the caller replaces the wrapper's own (`hidden md:flex` must hold) */
139
108
  const display = DISPLAY.test(className) ? '' : 'flex'
140
109
  /* …and so does a gap class: the caller's spacing, not two utilities racing */
@@ -158,7 +127,7 @@ export default function LabeledControl({
158
127
  * showed as "C" or not at all. Label on its line, the value under it. */
159
128
  const labelAuto = lw === 'auto'
160
129
  return (
161
- <div {...mark} className={`${display} ${labelAuto ? `flex-col items-start gap-1 sm:flex-row ${text ? 'sm:items-baseline' : 'sm:items-center'} sm:gap-3` : `${text ? 'items-baseline' : 'items-center'} ${ownGap ? '' : gapClass ?? 'gap-3'}`}${className}`}>
130
+ <div {...mark} className={`${display} ${labelAuto ? `flex-col items-start gap-1 sm:flex-row ${text ? 'sm:items-baseline' : 'sm:items-center'} sm:gap-3` : `kol-labeled-control-row ${text ? 'items-baseline' : 'items-center'} ${ownGap ? '' : gapClass ?? ''}`}${className}`}>
162
131
  {showLabel && (
163
132
  <span
164
133
  /* A LABEL NEVER WRAPS (review 2, § 6.2 — the helper law by construction, 01-foundations/03-typography.md:29):
@@ -169,17 +138,17 @@ export default function LabeledControl({
169
138
  {labelInner}
170
139
  </span>
171
140
  )}
172
- <div className={`${text ? 'flex ' : settings ? 'flex items-center ' : ''}${labelAuto ? 'min-w-0 max-w-full sm:overflow-hidden' : 'flex-1 min-w-0'}`}>{children}</div>
141
+ <div className={`${text ? 'flex ' : settings ? 'flex items-center ' : labelAuto ? '' : 'kol-labeled-control-cell '}${labelAuto ? 'min-w-0 max-w-full sm:overflow-hidden' : 'flex-1 min-w-0'}`}>{children}</div>
173
142
  </div>
174
143
  )
175
144
  }
176
145
 
177
146
  return (
178
- <div {...mark} className={`${display} flex-col ${ownGap ? '' : gapClass ?? 'gap-2'} ${className}`}>
147
+ <div {...mark} className={`${display} flex-col ${settings ? '' : 'kol-labeled-control-stack'} ${ownGap ? '' : gapClass ?? ''} ${className}`}>
179
148
  {showLabel && (
180
149
  <span className={labelType}>{labelInner}</span>
181
150
  )}
182
- {children}
151
+ {settings ? children : <div className="kol-labeled-control-body">{children}</div>}
183
152
  </div>
184
153
  )
185
154
  }