@kolkrabbi/kol-component 0.269.0 → 0.270.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/package.json
CHANGED
|
@@ -152,11 +152,13 @@ export function SettingsSwitch({ on = false, onChange, disabled = false, disable
|
|
|
152
152
|
* Was `SettingsSection` until 2026-08-27 (LabeledControlSection, kol-r2b2 —
|
|
153
153
|
* user ruling: it named the place it was first used, not what it is; kol-fxr
|
|
154
154
|
* took it for a params rail the same day). RENAMED, NO ALIAS — the render is
|
|
155
|
-
* the 0.104.0 locked composition, untouched.
|
|
156
|
-
|
|
155
|
+
* the 0.104.0 locked composition, untouched. `text` is a section of `SettingsRow text` rows: the header
|
|
156
|
+
* steps up to `kol-mono-14` at full ink, a level above its mono-12 rows (SectionHeaderAboveTextRows,
|
|
157
|
+
* kol-monitor 2026-10-18 — user: *"why IS SHOUDL BE DIFFERENT FROM THE LIST IT DESCRIBES"*). */
|
|
158
|
+
export function LabeledControlSection({ label, divided = false, rowGap = 2, text = false, children, className = '' }) {
|
|
157
159
|
return (
|
|
158
160
|
<div className={`flex flex-col gap-3 ${divided ? 'kol-section--divided' : ''} ${className}`.replace(/\s+/g, ' ').trim()}>
|
|
159
|
-
{label && <p className=
|
|
161
|
+
{label && <p className={text ? 'kol-mono-14 uppercase text-emphasis' : 'kol-eyebrow text-fg-80'}>{label}</p>}
|
|
160
162
|
<div className={`flex flex-col ${rowGap === 1 ? 'gap-1' : 'gap-2'}`}>{children}</div>
|
|
161
163
|
</div>
|
|
162
164
|
)
|
|
@@ -45,7 +45,7 @@ export default function SettingsSections({ sections = [], divided = false, label
|
|
|
45
45
|
return (
|
|
46
46
|
<div className={`kol-settings-sections flex flex-col gap-6 ${className}`.trim()}>
|
|
47
47
|
{sections.map((sec, i) => (
|
|
48
|
-
<LabeledControlSection key={sec.label ?? i} label={sec.label} divided={divided} rowGap={sec.rowGap}>
|
|
48
|
+
<LabeledControlSection key={sec.label ?? i} label={sec.label} divided={divided} rowGap={sec.rowGap} text={sec.rows.length > 0 && sec.rows.every((r) => r.text)}>
|
|
49
49
|
{sec.rows.map((row, j) => (
|
|
50
50
|
<SettingsRow
|
|
51
51
|
key={row.id ?? row.label ?? j}
|