@kolkrabbi/kol-component 0.354.0 → 0.355.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/README.md +1 -1
- package/package.json +5 -5
- package/src/atoms/Badge.jsx +2 -2
- package/src/atoms/Button.jsx +2 -2
- package/src/atoms/Delta.jsx +2 -2
- package/src/atoms/FileIcon.jsx +2 -2
- package/src/atoms/IconFrame.jsx +2 -2
- package/src/atoms/IconPlate.jsx +1 -1
- package/src/atoms/IconToggle.jsx +2 -2
- package/src/atoms/Input.jsx +4 -4
- package/src/atoms/Kbd.jsx +2 -2
- package/src/atoms/Label.jsx +2 -2
- package/src/atoms/SectionLabel.jsx +4 -4
- package/src/atoms/SizeOrDownload.jsx +2 -2
- package/src/atoms/SortHeader.jsx +2 -2
- package/src/atoms/Tag.jsx +3 -3
- package/src/atoms/Textarea.jsx +2 -2
- package/src/atoms/ValueField.jsx +2 -2
- package/src/atoms/ViewToggle.jsx +3 -3
- package/src/index.js +1 -1
- package/src/molecules/ActionButton.jsx +3 -3
- package/src/molecules/AlignmentGrid.jsx +2 -2
- package/src/molecules/AppItem.jsx +4 -4
- package/src/molecules/CloseButton.jsx +2 -2
- package/src/molecules/ColorInputRow.jsx +2 -2
- package/src/molecules/ContentRow.jsx +2 -2
- package/src/molecules/DocFrontmatter.jsx +2 -2
- package/src/molecules/Dropdown.jsx +4 -4
- package/src/molecules/EmblaNav.jsx +3 -3
- package/src/molecules/FieldRow.jsx +6 -6
- package/src/molecules/LayerRow.jsx +2 -2
- package/src/molecules/LinkAddRow.jsx +2 -2
- package/src/molecules/Menu.jsx +2 -2
- package/src/molecules/MenuItem.jsx +6 -6
- package/src/molecules/MenuList.jsx +2 -2
- package/src/molecules/ModalHeader.jsx +2 -2
- package/src/molecules/MultiSelect.jsx +2 -2
- package/src/molecules/OptionRow.jsx +2 -2
- package/src/molecules/PasswordInput.jsx +2 -2
- package/src/molecules/ProfileCard.jsx +2 -2
- package/src/molecules/QuantityInput.jsx +3 -3
- package/src/molecules/QuickLookFrame.jsx +2 -2
- package/src/molecules/QuickLookHeader.jsx +4 -4
- package/src/molecules/ReadingChapterNav.jsx +3 -3
- package/src/molecules/SearchInput.jsx +5 -5
- package/src/molecules/SectionCardItem.jsx +4 -4
- package/src/molecules/ShapeDropdown.jsx +2 -2
- package/src/molecules/SplitToolButton.jsx +4 -4
- package/src/molecules/StepList.jsx +3 -3
- package/src/molecules/Stepper.jsx +5 -5
- package/src/molecules/SwatchControls.jsx +3 -3
- package/src/molecules/TabsRow.jsx +8 -8
- package/src/molecules/TaskRow.jsx +2 -2
- package/src/molecules/TreeRow.jsx +3 -3
- package/src/organisms/AppItemMenuProvider.jsx +2 -2
- package/src/organisms/ColorPickerPopover.jsx +2 -2
- package/src/organisms/ColumnBrowser.jsx +8 -8
- package/src/organisms/CommandOverlay.jsx +2 -2
- package/src/organisms/ContentFilters.jsx +2 -2
- package/src/organisms/LayerStack.jsx +3 -3
- package/src/organisms/MediaLibrary.jsx +11 -11
- package/src/organisms/MediaLibraryPages.jsx +35 -35
- package/src/organisms/MediaViewer.jsx +3 -3
- package/src/organisms/NavDrawer.jsx +2 -2
- package/src/organisms/NavRail.jsx +1 -1
- package/src/organisms/NavRailFloat.jsx +5 -5
- package/src/organisms/NavRailSite.jsx +5 -5
- package/src/organisms/Rail.jsx +1 -1
- package/src/organisms/RecordManager.jsx +3 -3
- package/src/organisms/Table.jsx +3 -3
- package/src/organisms/ToolPalette.jsx +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IconLoader } from '@kolkrabbi/kol-icons'
|
|
2
2
|
import TreeRow from './TreeRow.jsx'
|
|
3
3
|
|
|
4
4
|
/* taxonomy-ok: molecule — TreeRow (molecule) + kol-icons's Icon. */
|
|
@@ -30,7 +30,7 @@ export default function LayerRow({ icon = 'layers', name, selected = false, visi
|
|
|
30
30
|
onKeyDown={(e) => { if (e.key === 'Enter' || e.key === ' ') { e.preventDefault(); e.stopPropagation(); fn?.() } }}
|
|
31
31
|
className="inline-flex size-5 shrink-0 items-center justify-center rounded-full text-oq-64 hover:text-oq-96 focus-visible:outline-none focus-visible:shadow-[var(--kol-float-focus)]"
|
|
32
32
|
>
|
|
33
|
-
<
|
|
33
|
+
<IconLoader name={glyph} size={12} />
|
|
34
34
|
</span>
|
|
35
35
|
)
|
|
36
36
|
return (
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useState } from 'react'
|
|
2
|
-
import {
|
|
2
|
+
import { IconLoader } from '@kolkrabbi/kol-icons'
|
|
3
3
|
import Input from '../atoms/Input.jsx'
|
|
4
4
|
import Button from '../atoms/Button.jsx'
|
|
5
5
|
|
|
@@ -42,7 +42,7 @@ export default function LinkAddRow({ onAdd, title, href, namePlaceholder = 'Link
|
|
|
42
42
|
<span className="kol-float-body text-fg-emphasis">{title}</span>
|
|
43
43
|
{href && (
|
|
44
44
|
<a href={href} target="_blank" rel="noreferrer" aria-label={`Open ${title}`} className="inline-flex text-oq-64 hover:text-oq-96 transition-colors">
|
|
45
|
-
<
|
|
45
|
+
<IconLoader name="arrow-upright" size={18} />
|
|
46
46
|
</a>
|
|
47
47
|
)}
|
|
48
48
|
</div>
|
package/src/molecules/Menu.jsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useEffect, useLayoutEffect, useRef, useState } from 'react'
|
|
2
|
-
import {
|
|
2
|
+
import { IconLoader } from '@kolkrabbi/kol-icons'
|
|
3
3
|
import Button from '../atoms/Button.jsx'
|
|
4
4
|
import { MenuRow, MenuDivider } from './MenuItem.jsx'
|
|
5
5
|
import { MenuList, MenuLabel, panelClass } from './MenuList.jsx'
|
|
@@ -40,7 +40,7 @@ import { TONE_VARS } from '../utilities/tone.js'
|
|
|
40
40
|
*/
|
|
41
41
|
|
|
42
42
|
/* the ⋮ — kol-icons `more-vertical` (user 2026-10-31: *"just make a vertical version"* — was `more` turned 90°) */
|
|
43
|
-
const MORE = <
|
|
43
|
+
const MORE = <IconLoader name="more-vertical" size={16} />
|
|
44
44
|
|
|
45
45
|
export function MenuTrigger({ open = false, iconOnly, icon, iconComponent, variant, mono = false, size, children, ...rest }) {
|
|
46
46
|
/* the float trigger: a capsule on the float well, lit fg-16 while its menu is open; `mono` for a value (the date chip) */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useLayoutEffect, useRef, useState } from 'react'
|
|
2
|
-
import {
|
|
2
|
+
import { IconLoader } from '@kolkrabbi/kol-icons'
|
|
3
3
|
import { Menu } from './Menu.jsx'
|
|
4
4
|
import Kbd from '../atoms/Kbd.jsx'
|
|
5
5
|
import Divider from '../atoms/Divider.jsx'
|
|
@@ -67,7 +67,7 @@ export function MenuItem({
|
|
|
67
67
|
>
|
|
68
68
|
<span>{label}</span>
|
|
69
69
|
{caret && (
|
|
70
|
-
<
|
|
70
|
+
<IconLoader
|
|
71
71
|
name="chevron-down"
|
|
72
72
|
size={10}
|
|
73
73
|
style={{ transform: open ? 'rotate(180deg)' : 'rotate(0deg)', transition: 'transform 200ms' }}
|
|
@@ -152,8 +152,8 @@ export function MenuRow({ href, onClick, onPointerEnter, onPointerLeave, disable
|
|
|
152
152
|
{/* the dot is kol-icons `ascii-dot` drawn at twice the slot and pulled back into it: at the slot's own size its
|
|
153
153
|
* 2.25/24 circle is a 2.6px speck; at 24 it is the rail's • (≈4.5px) and still takes the check's 14px column */}
|
|
154
154
|
{indicator === 'dot'
|
|
155
|
-
? <
|
|
156
|
-
: indicator && <
|
|
155
|
+
? <IconLoader name="ascii-dot" size={size === 'xs' ? 16 : 24} style={{ margin: size === 'xs' ? -4 : -5 }} />
|
|
156
|
+
: indicator && <IconLoader name={INDICATOR[indicator] ?? indicator} size={size === 'xs' ? indicatorSize('xs') : 14} />}
|
|
157
157
|
{/* ⌘ is drawn, never typed — the Kbd's `command` glyph (as SearchInput's and Button's caps; W2 row 27, 2026-11-04) */}
|
|
158
158
|
{kbd != null && (typeof kbd === 'string' && kbd.startsWith('⌘')
|
|
159
159
|
? <Kbd size="md" icon="command" className="kol-menu-kbd">{kbd.slice(1)}</Kbd>
|
|
@@ -231,7 +231,7 @@ function MenuAccordionNest({ prefix, iconLeft, label, disabled, children }) {
|
|
|
231
231
|
className={`${NEST_ROW} text-body hover:text-emphasis`}
|
|
232
232
|
>
|
|
233
233
|
<NestRowBody prefix={prefix} iconLeft={iconLeft} label={label} />
|
|
234
|
-
<
|
|
234
|
+
<IconLoader
|
|
235
235
|
name="chevron-down"
|
|
236
236
|
size={10}
|
|
237
237
|
className="text-emphasis shrink-0"
|
|
@@ -288,7 +288,7 @@ function MenuFlyoutNest({ prefix, iconLeft, label, disabled, scroll, rowClass, p
|
|
|
288
288
|
className={rowClass ? `kol-menu-btn w-full shrink-0 flex items-center gap-2 text-left disabled:opacity-40 disabled:cursor-not-allowed ${rowClass}` : `${NEST_ROW} ${open ? 'text-emphasis' : 'text-body hover:text-emphasis'}`}
|
|
289
289
|
>
|
|
290
290
|
<NestRowBody prefix={prefix} iconLeft={iconLeft} label={label} />
|
|
291
|
-
<
|
|
291
|
+
<IconLoader name="chevron-right" size={10} className="text-emphasis shrink-0" />
|
|
292
292
|
</button>
|
|
293
293
|
{open && (
|
|
294
294
|
/* top -5 = the panel's 1px border + 4px pad, so its first row sits on the trigger row */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useState } from 'react'
|
|
2
|
-
import {
|
|
2
|
+
import { IconLoader } from '@kolkrabbi/kol-icons'
|
|
3
3
|
import SearchInput from './SearchInput.jsx'
|
|
4
4
|
import { MenuRow, MenuDivider, MenuFlyout } from './MenuItem.jsx'
|
|
5
5
|
import { Tooltip } from '../utilities/Popover.jsx'
|
|
@@ -31,7 +31,7 @@ export const panelClass = (variant, sheet) => (variant === 'float' ? `kol-menu-p
|
|
|
31
31
|
|
|
32
32
|
export const MenuLabel = ({ className = 'kol-menu-label kol-helper-12', children }) => <div className={className}>{children}</div>
|
|
33
33
|
|
|
34
|
-
const glyph = (icon, size) => (typeof icon === 'string' ? <
|
|
34
|
+
const glyph = (icon, size) => (typeof icon === 'string' ? <IconLoader name={icon} size={size} /> : icon)
|
|
35
35
|
/* a row's trailing marks — real icons and Kbd only (W2): `indicator` 'dot' | 'check' | 'chevron', `checked` = 'check',
|
|
36
36
|
* `kbd` a key cap, `trailing` an icon name for an action (download) */
|
|
37
37
|
const indicatorOf = (it) => it.indicator ?? (it.checked ? 'check' : undefined)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Button from '../atoms/Button.jsx'
|
|
2
2
|
import Avatar from '../atoms/Avatar.jsx'
|
|
3
|
-
import {
|
|
3
|
+
import { IconLoader } from '@kolkrabbi/kol-icons'
|
|
4
4
|
|
|
5
5
|
/* taxonomy-ok: molecule — Avatar (atom) or kol-icons's Icon, a title and trailing actions on Button's nav row */
|
|
6
6
|
|
|
@@ -29,7 +29,7 @@ export default function ModalHeader({ title, avatar, icon, actions, variant = 'd
|
|
|
29
29
|
const cls = `${ROW[float ? 'float' : 'default']} ${className}`.trim()
|
|
30
30
|
const lead = avatar != null
|
|
31
31
|
? (typeof avatar === 'string' ? <Avatar {...(isSrc(avatar) ? { src: avatar } : { initial: avatar })} alt="" size="xs" /> : avatar)
|
|
32
|
-
: icon && <
|
|
32
|
+
: icon && <IconLoader name={icon} size={float ? 'var(--kol-float-ic)' : 22} />
|
|
33
33
|
const body = <>{lead}{actions ? <span className="flex-1 text-left">{title}</span> : title}{actions && <span className="ml-auto flex shrink-0 items-center pointer-events-auto">{actions}</span>}</>
|
|
34
34
|
if (onClick) return <Button variant="nav" size="lg" className={cls} onClick={onClick}>{body}</Button>
|
|
35
35
|
return <div role="heading" aria-level={2} className={`${NAV_LG} ${cls} cursor-default pointer-events-none`}>{body}</div>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IconLoader } from '@kolkrabbi/kol-icons'
|
|
2
2
|
import { MenuRow } from './MenuItem.jsx'
|
|
3
3
|
import { Menu } from './Menu.jsx'
|
|
4
4
|
import { indicatorSize } from '../hooks/glyphLadders.js'
|
|
@@ -50,7 +50,7 @@ export default function MultiSelect({ groups = [], value = {}, onChange, label,
|
|
|
50
50
|
data-state={open ? 'open' : 'closed'}
|
|
51
51
|
>
|
|
52
52
|
<span className="kol-dd-label"><span>{label ?? groups.map(labelOf).filter(Boolean).join(' · ')}</span></span>
|
|
53
|
-
<
|
|
53
|
+
<IconLoader name="chevron-down" size={indicatorSize(size)} className="kol-dd-caret" />
|
|
54
54
|
</button>
|
|
55
55
|
)}
|
|
56
56
|
>
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
* `ROW_HEIGHT` / `ROW_TYPE` / `ROW_FILL` are exported for a row that cannot take this anatomy (the
|
|
31
31
|
* media rows view's table row: twisty, drag hit, columns) — it still sits on the same ramp and fills.
|
|
32
32
|
*/
|
|
33
|
-
import {
|
|
33
|
+
import { IconLoader } from '@kolkrabbi/kol-icons'
|
|
34
34
|
import { glyphSize } from '../hooks/glyphLadders.js'
|
|
35
35
|
|
|
36
36
|
/* the box: min-height on the ramp, and a pad that lands one line of the step's type exactly on it —
|
|
@@ -75,7 +75,7 @@ export default function OptionRow({
|
|
|
75
75
|
const state = disabled ? 'text-fg-80 opacity-[var(--kol-opacity-disabled)]'
|
|
76
76
|
: selected ? ROW_FILL.selected : active ? ROW_FILL.active : trail ? ROW_FILL.trail
|
|
77
77
|
: `${muted ? 'text-fg-48' : 'text-fg-80'}${hover ? ` hover:${TONE}` : ''}`
|
|
78
|
-
const lead = leading ?? (icon && <
|
|
78
|
+
const lead = leading ?? (icon && <IconLoader name={icon} size={glyphSize(size)} />)
|
|
79
79
|
return (
|
|
80
80
|
<Tag
|
|
81
81
|
className={`flex items-center gap-2 px-4 border border-transparent ${ROW_HEIGHT[size] ?? ROW_HEIGHT.md} rounded-[var(--kol-radius-sm)] ${disabled ? 'cursor-not-allowed' : 'cursor-pointer'} text-left ${type ?? ROW_TYPE[size] ?? ROW_TYPE.md} transition-colors ${state} ${className}`.trim()}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useState } from 'react'
|
|
2
|
-
import {
|
|
2
|
+
import { IconLoader } from '@kolkrabbi/kol-icons'
|
|
3
3
|
import Input from '../atoms/Input.jsx'
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -30,7 +30,7 @@ export default function PasswordInput({ revealed, onRevealChange, revealLabel, .
|
|
|
30
30
|
onClick={toggle}
|
|
31
31
|
className="inline-flex items-center justify-center shrink-0 cursor-pointer text-oq-64 hover:text-oq-96 transition-colors outline-none focus-visible:[box-shadow:var(--kol-float-focus)] rounded-full"
|
|
32
32
|
>
|
|
33
|
-
<
|
|
33
|
+
<IconLoader name={shown ? 'eye-off' : 'eye-on'} size={16} />
|
|
34
34
|
</button>
|
|
35
35
|
}
|
|
36
36
|
/>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useId, useState } from 'react'
|
|
2
|
-
import {
|
|
2
|
+
import { IconLoader } from '@kolkrabbi/kol-icons'
|
|
3
3
|
import IconFrame from '../atoms/IconFrame.jsx'
|
|
4
4
|
import { Tooltip } from '../utilities/Popover.jsx'
|
|
5
5
|
import useSectionTheme from '../hooks/useSectionTheme.js'
|
|
@@ -177,7 +177,7 @@ export default function ProfileCard({
|
|
|
177
177
|
aria-label={label}
|
|
178
178
|
className={`${ramp.iconBox} flex items-center justify-center ${ink} transition-transform hover:scale-125`}
|
|
179
179
|
>
|
|
180
|
-
<
|
|
180
|
+
<IconLoader name={icon} size={ramp.iconSize} />
|
|
181
181
|
</a>
|
|
182
182
|
</Tooltip>
|
|
183
183
|
))}
|
|
@@ -25,7 +25,7 @@ import { useEffect, useState } from 'react'
|
|
|
25
25
|
* @param {string} ariaLabel FLOAT: what the value is; the − + read `Decrease <it>` / `Increase <it>` (default quantity)
|
|
26
26
|
* @param {string} className extra classes on the root
|
|
27
27
|
*/
|
|
28
|
-
import {
|
|
28
|
+
import { IconLoader } from '@kolkrabbi/kol-icons'
|
|
29
29
|
const FLOAT_H = { sm: 'h-[var(--kol-float-h-sm)]', md: 'h-[var(--kol-float-h-md)]', lg: 'h-[var(--kol-float-h-lg)]' }
|
|
30
30
|
|
|
31
31
|
const SIZE_MAP = {
|
|
@@ -83,9 +83,9 @@ const QuantityInput = ({
|
|
|
83
83
|
const btn = 'inline-flex h-full w-8 shrink-0 items-center justify-center rounded-full text-oq-64 hover:text-oq-96 disabled:opacity-40 disabled:hover:text-oq-64 cursor-pointer disabled:cursor-not-allowed outline-none focus-visible:[box-shadow:var(--kol-float-focus)] transition-colors'
|
|
84
84
|
return (
|
|
85
85
|
<div className={`inline-flex items-center rounded-full bg-[var(--kol-float-well)] px-1 kol-float-panel text-fg-emphasis ${FLOAT_H[size] ?? FLOAT_H.md} ${className}`.trim()}>
|
|
86
|
-
<button type="button" onClick={decrement} disabled={value <= min} className={btn} aria-label={`Decrease ${ariaLabel}`}><
|
|
86
|
+
<button type="button" onClick={decrement} disabled={value <= min} className={btn} aria-label={`Decrease ${ariaLabel}`}><IconLoader name="minus" size={14} /></button>
|
|
87
87
|
<span className="min-w-6 flex-1 text-center tabular-nums">{value}{unit ? ` ${unit}` : ''}</span>
|
|
88
|
-
<button type="button" onClick={increment} disabled={value >= max} className={btn} aria-label={`Increase ${ariaLabel}`}><
|
|
88
|
+
<button type="button" onClick={increment} disabled={value >= max} className={btn} aria-label={`Increase ${ariaLabel}`}><IconLoader name="plus" size={14} /></button>
|
|
89
89
|
</div>
|
|
90
90
|
)
|
|
91
91
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useRef, useState } from 'react'
|
|
2
|
-
import {
|
|
2
|
+
import { IconLoader } from '@kolkrabbi/kol-icons'
|
|
3
3
|
import QuickLookHeader from './QuickLookHeader.jsx'
|
|
4
4
|
|
|
5
5
|
/* taxonomy-ok: molecule — nests QuickLookHeader (molecule) + kol-icons's Icon. */
|
|
@@ -75,7 +75,7 @@ export default function QuickLookFrame({ variant, icon, onMinimise, status, titl
|
|
|
75
75
|
{footer}
|
|
76
76
|
<div className="flex items-center gap-3">
|
|
77
77
|
<span className="kol-float-label min-w-0 flex-1 truncate text-fg-64">{status}</span>
|
|
78
|
-
<span {...grip} className="inline-flex size-4 cursor-nwse-resize touch-none items-center justify-center text-oq-64 hover:text-oq-96"><
|
|
78
|
+
<span {...grip} className="inline-flex size-4 cursor-nwse-resize touch-none items-center justify-center text-oq-64 hover:text-oq-96"><IconLoader name="expand" size={13} /></span>
|
|
79
79
|
</div>
|
|
80
80
|
</div>
|
|
81
81
|
)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IconLoader } from '@kolkrabbi/kol-icons'
|
|
2
2
|
import Button from '../atoms/Button.jsx'
|
|
3
3
|
import CloseButton from './CloseButton.jsx'
|
|
4
4
|
|
|
@@ -28,11 +28,11 @@ export default function QuickLookHeader({ variant, icon, title, meta, actions, n
|
|
|
28
28
|
const ctl = 'inline-flex size-6 shrink-0 items-center justify-center rounded-full text-oq-64 hover:text-oq-96 hover:bg-fg-08 focus-visible:outline-none focus-visible:shadow-[var(--kol-float-focus)] cursor-pointer'
|
|
29
29
|
return (
|
|
30
30
|
<div className={`flex min-h-6 w-full items-center gap-3 ${className}`.trim()}>
|
|
31
|
-
{icon && <
|
|
31
|
+
{icon && <IconLoader name={icon} size={16} className="shrink-0 text-oq-64" />}
|
|
32
32
|
<span className="kol-float-panel min-w-0 flex-1 truncate text-fg-emphasis">{title}</span>
|
|
33
33
|
{actions}
|
|
34
|
-
{onMinimise && <button type="button" aria-label="Minimise" onClick={onMinimise} className={ctl}><
|
|
35
|
-
{onClose && <button type="button" aria-label="Close" onClick={onClose} className={ctl}><
|
|
34
|
+
{onMinimise && <button type="button" aria-label="Minimise" onClick={onMinimise} className={ctl}><IconLoader name="minus" size={14} /></button>}
|
|
35
|
+
{onClose && <button type="button" aria-label="Close" onClick={onClose} className={ctl}><IconLoader name="x" size={16} /></button>}
|
|
36
36
|
</div>
|
|
37
37
|
)
|
|
38
38
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IconLoader } from '@kolkrabbi/kol-icons'
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* ReadingChapterNav — The chapters either side, as two capsules. `‹ Previous interlude · Second interlude` /
|
|
@@ -18,12 +18,12 @@ function Side({ dir, item }) {
|
|
|
18
18
|
return (
|
|
19
19
|
<El {...(item.href ? { href: item.href } : { type: 'button' })} onClick={item.onClick}
|
|
20
20
|
className={`flex h-14 min-w-0 items-center gap-3 rounded-full bg-surface-secondary text-left no-underline cursor-pointer hover:shadow-[inset_0_0_0_999px_var(--kol-fg-08)] focus-visible:outline-none focus-visible:shadow-[var(--kol-float-focus)] ${next ? 'pl-5 pr-4' : 'pl-4 pr-5'}`}>
|
|
21
|
-
{!next && <
|
|
21
|
+
{!next && <IconLoader name="chevron-left" size="var(--kol-float-ic)" className="shrink-0 text-oq-64" />}
|
|
22
22
|
<span className="flex min-w-0 flex-1 flex-col">
|
|
23
23
|
<span className="kol-float-ruler truncate uppercase text-fg-64">{item.label ?? (next ? 'Next' : 'Previous')}</span>
|
|
24
24
|
<span className="kol-float-hint truncate text-fg-emphasis">{item.title}</span>
|
|
25
25
|
</span>
|
|
26
|
-
{next && <
|
|
26
|
+
{next && <IconLoader name="chevron-right" size="var(--kol-float-ic)" className="shrink-0 text-oq-64" />}
|
|
27
27
|
</El>
|
|
28
28
|
)
|
|
29
29
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useEffect, useRef, useState } from 'react'
|
|
2
2
|
import { toneClass } from '../utilities/tone.js'
|
|
3
|
-
import {
|
|
3
|
+
import { IconLoader } from '@kolkrabbi/kol-icons'
|
|
4
4
|
import { glyphSize } from '../hooks/glyphLadders.js'
|
|
5
5
|
import Kbd from '../atoms/Kbd.jsx'
|
|
6
6
|
|
|
@@ -186,7 +186,7 @@ export default function SearchInput({
|
|
|
186
186
|
{/* SOLO ladder, and NO ink class — it inherits from its chrome
|
|
187
187
|
exactly as IconFrame's glyph does, so it cannot drift from the
|
|
188
188
|
icon beside it. */}
|
|
189
|
-
<
|
|
189
|
+
<IconLoader name="search" size={iconSize ?? glyphSize(size, true)} />
|
|
190
190
|
</button>
|
|
191
191
|
)}
|
|
192
192
|
{isOpen && (
|
|
@@ -244,7 +244,7 @@ export default function SearchInput({
|
|
|
244
244
|
onClick={onBack}
|
|
245
245
|
className={`flex items-center shrink-0 cursor-pointer transition-colors ${bare ? 'text-oq-48 hover:text-oq-96' : 'text-auto opacity-50 hover:opacity-100'}`}
|
|
246
246
|
>
|
|
247
|
-
<
|
|
247
|
+
<IconLoader name="arrow-left" size={iconSize ?? glyphSize(size)} />
|
|
248
248
|
</button>
|
|
249
249
|
) : (
|
|
250
250
|
<span
|
|
@@ -252,7 +252,7 @@ export default function SearchInput({
|
|
|
252
252
|
className={`flex items-center shrink-0 ${bare ? 'text-oq-48' : 'text-auto opacity-50'}`}
|
|
253
253
|
>
|
|
254
254
|
{/* ADJACENT — this glyph sits in the field's line box beside the query; a float glyph is the float's 18 */}
|
|
255
|
-
<
|
|
255
|
+
<IconLoader name="search" size={iconSize ?? (variant === 'float' ? 'var(--kol-float-ic)' : glyphSize(size))} />
|
|
256
256
|
</span>
|
|
257
257
|
)}
|
|
258
258
|
<input
|
|
@@ -275,7 +275,7 @@ export default function SearchInput({
|
|
|
275
275
|
onClick={onClear}
|
|
276
276
|
className="inline-flex items-center justify-center shrink-0 cursor-pointer text-oq-48 hover:text-oq-96 transition-colors"
|
|
277
277
|
>
|
|
278
|
-
<
|
|
278
|
+
<IconLoader name="x" size={12} />
|
|
279
279
|
</button>
|
|
280
280
|
) : shortcutHint ? (
|
|
281
281
|
/* aria-hidden — affordance, not a label (same stance as Input's prefix/suffix) */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IconLoader } from '@kolkrabbi/kol-icons'
|
|
2
2
|
import useCoarsePointer from '../hooks/useCoarsePointer.js'
|
|
3
3
|
import useInViewAttention from '../hooks/useInViewAttention.js'
|
|
4
4
|
|
|
@@ -96,7 +96,7 @@ export default function SectionCardItem({
|
|
|
96
96
|
<>
|
|
97
97
|
<div className="w-full flex items-start justify-between gap-2">
|
|
98
98
|
<h3 className="kol-helper-16">{title}</h3>
|
|
99
|
-
{icon && <
|
|
99
|
+
{icon && <IconLoader name={icon} size={16} className="shrink-0" />}
|
|
100
100
|
</div>
|
|
101
101
|
<p className="kol-mono-12 text-fg-48">{description}</p>
|
|
102
102
|
</>
|
|
@@ -104,7 +104,7 @@ export default function SectionCardItem({
|
|
|
104
104
|
<>
|
|
105
105
|
<div className="w-full flex items-center justify-between gap-2">
|
|
106
106
|
<h3 className="kol-helper-16">{title}</h3>
|
|
107
|
-
{icon && <
|
|
107
|
+
{icon && <IconLoader name={icon} size={16} className="shrink-0" />}
|
|
108
108
|
</div>
|
|
109
109
|
|
|
110
110
|
{/* kol-card-feature-visual: zooms on card hover (chrome in kol-theme —
|
|
@@ -141,7 +141,7 @@ export default function SectionCardItem({
|
|
|
141
141
|
visual
|
|
142
142
|
)
|
|
143
143
|
) : (
|
|
144
|
-
<
|
|
144
|
+
<IconLoader name={icon} size={96} />
|
|
145
145
|
)}
|
|
146
146
|
</div>
|
|
147
147
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useState } from 'react'
|
|
2
|
-
import {
|
|
2
|
+
import { IconLoader } from '@kolkrabbi/kol-icons'
|
|
3
3
|
import Button from '../atoms/Button.jsx'
|
|
4
4
|
import { PopoverPanel, usePopover, Tooltip } from '../utilities/Popover.jsx'
|
|
5
5
|
import { MenuRow } from './MenuItem.jsx'
|
|
@@ -83,7 +83,7 @@ const ShapeDropdown = ({ options = [], value, onChange, onAction, className = ''
|
|
|
83
83
|
<MenuRow
|
|
84
84
|
key={option.id}
|
|
85
85
|
onClick={() => handleSelect(option)}
|
|
86
|
-
iconLeft={option.icon ? <
|
|
86
|
+
iconLeft={option.icon ? <IconLoader name={option.icon} size={14} /> : undefined}
|
|
87
87
|
indicator={option.id === current?.id ? 'dot' : undefined}
|
|
88
88
|
>
|
|
89
89
|
{option.label}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useState } from 'react'
|
|
2
|
-
import {
|
|
2
|
+
import { IconLoader } from '@kolkrabbi/kol-icons'
|
|
3
3
|
import { PopoverPanel, usePopover, Tooltip } from '../utilities/Popover.jsx'
|
|
4
4
|
import { glyphSize } from '../hooks/glyphLadders.js'
|
|
5
5
|
|
|
@@ -73,7 +73,7 @@ import { glyphSize } from '../hooks/glyphLadders.js'
|
|
|
73
73
|
* inverts with kol-btn-pressed (currentColor). */
|
|
74
74
|
const FoldIndicator = () => (
|
|
75
75
|
<span aria-hidden="true" className="pointer-events-none absolute right-0.5 bottom-0.5 opacity-70 inline-flex">
|
|
76
|
-
<
|
|
76
|
+
<IconLoader name="fold-indicator" size={4} />
|
|
77
77
|
</span>
|
|
78
78
|
)
|
|
79
79
|
|
|
@@ -87,7 +87,7 @@ const SplitToolButton = ({
|
|
|
87
87
|
blurOnClick = false,
|
|
88
88
|
onTrigger,
|
|
89
89
|
disabled = false,
|
|
90
|
-
iconComponent: IconC =
|
|
90
|
+
iconComponent: IconC = IconLoader,
|
|
91
91
|
placement = 'bottom-start',
|
|
92
92
|
className = '',
|
|
93
93
|
'aria-label': ariaLabel,
|
|
@@ -166,7 +166,7 @@ const SplitToolButton = ({
|
|
|
166
166
|
<span className="flex-1 truncate">{variant.label}</span>
|
|
167
167
|
{/* the current pick wears the dot, a real icon (plan-2026-10-31-menu-engine W2) — never a typed ✓ */}
|
|
168
168
|
<span className="kol-helper-10 text-oq-88 shrink-0 inline-flex items-center">
|
|
169
|
-
{isActive ? <
|
|
169
|
+
{isActive ? <IconLoader name="ascii-dot" size={24} style={{ margin: -5 }} /> : variant.shortcut}
|
|
170
170
|
</span>
|
|
171
171
|
</button>
|
|
172
172
|
)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useRef } from 'react'
|
|
2
2
|
import Button from '../atoms/Button.jsx'
|
|
3
|
-
import {
|
|
3
|
+
import { IconLoader } from '@kolkrabbi/kol-icons'
|
|
4
4
|
import usePointerSort from '../hooks/usePointerSort.js'
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -80,7 +80,7 @@ export default function StepList({
|
|
|
80
80
|
onPointerDown={(e) => startDrag(e, i, rows())}
|
|
81
81
|
onClick={(e) => e.stopPropagation()}
|
|
82
82
|
>
|
|
83
|
-
<
|
|
83
|
+
<IconLoader name="drag-handle" size={12} className="text-oq-48" />
|
|
84
84
|
</button>
|
|
85
85
|
)}
|
|
86
86
|
{arrows && (
|
|
@@ -125,7 +125,7 @@ export default function StepList({
|
|
|
125
125
|
onClick={onAdd}
|
|
126
126
|
>
|
|
127
127
|
<span className="kol-helper-10 tabular-nums w-4 shrink-0">{items.length + 1}</span>
|
|
128
|
-
<
|
|
128
|
+
<IconLoader name="plus" size={12} className="text-oq-48" />
|
|
129
129
|
<span className="kol-mono-12">{addLabel}</span>
|
|
130
130
|
</button>
|
|
131
131
|
</li>
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
* stroke icons in the kol curated set. For a plain number input without
|
|
26
26
|
* bump affordance, use `<Input type="number" />`.
|
|
27
27
|
*/
|
|
28
|
-
import {
|
|
28
|
+
import { IconLoader } from '@kolkrabbi/kol-icons'
|
|
29
29
|
|
|
30
30
|
const SIZE_TYPE = { xs: 'kol-mono-8', sm: 'kol-mono-12', md: 'kol-mono-14', lg: 'kol-mono-16' }
|
|
31
31
|
const CHEVRON_SIZE = { xs: 6, sm: 8, md: 10, lg: 12 }
|
|
@@ -80,11 +80,11 @@ export default function Stepper({
|
|
|
80
80
|
return (
|
|
81
81
|
<div className={`inline-flex items-center justify-center gap-0.5 select-none ${SIZE_TYPE[size]} ${className}`.trim()} style={style}>
|
|
82
82
|
<button type="button" onClick={handleDecrement} className="inline-flex items-center justify-center px-0.5 text-oq-40 hover:text-emphasis transition-colors" aria-label="Previous">
|
|
83
|
-
<
|
|
83
|
+
<IconLoader name="chevron-left" size={chev} />
|
|
84
84
|
</button>
|
|
85
85
|
<span className="min-w-[3ch] text-center text-fg-64" {...props}>{value ?? ''}</span>
|
|
86
86
|
<button type="button" onClick={handleIncrement} className="inline-flex items-center justify-center px-0.5 text-oq-40 hover:text-emphasis transition-colors" aria-label="Next">
|
|
87
|
-
<
|
|
87
|
+
<IconLoader name="chevron-right" size={chev} />
|
|
88
88
|
</button>
|
|
89
89
|
</div>
|
|
90
90
|
)
|
|
@@ -128,7 +128,7 @@ export default function Stepper({
|
|
|
128
128
|
className="flex items-center justify-center text-oq-48 hover:text-emphasis transition-colors"
|
|
129
129
|
aria-label="Increment"
|
|
130
130
|
>
|
|
131
|
-
<
|
|
131
|
+
<IconLoader name="chevron-up" size={chevronWidth} />
|
|
132
132
|
</button>
|
|
133
133
|
<button
|
|
134
134
|
type="button"
|
|
@@ -136,7 +136,7 @@ export default function Stepper({
|
|
|
136
136
|
className="flex items-center justify-center text-oq-48 hover:text-emphasis transition-colors"
|
|
137
137
|
aria-label="Decrement"
|
|
138
138
|
>
|
|
139
|
-
<
|
|
139
|
+
<IconLoader name="chevron-down" size={chevronWidth} />
|
|
140
140
|
</button>
|
|
141
141
|
</div>
|
|
142
142
|
</div>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useEffect, useState } from 'react'
|
|
2
|
-
import {
|
|
2
|
+
import { IconLoader } from '@kolkrabbi/kol-icons'
|
|
3
3
|
import ColorSwatch from './ColorSwatch.jsx'
|
|
4
4
|
import { Tooltip } from '../utilities/Popover.jsx'
|
|
5
5
|
|
|
@@ -116,7 +116,7 @@ export function EyedropPick({ sampleColor, onPick, disabled = false }) {
|
|
|
116
116
|
aria-label="Eyedropper"
|
|
117
117
|
className="inline-flex cursor-pointer text-fg hover:opacity-80 disabled:opacity-40 disabled:cursor-not-allowed"
|
|
118
118
|
>
|
|
119
|
-
<
|
|
119
|
+
<IconLoader name="eyedrop" size={24} />
|
|
120
120
|
</button>
|
|
121
121
|
</Tooltip>
|
|
122
122
|
)}
|
|
@@ -153,7 +153,7 @@ function SwapButton({ onSwap }) {
|
|
|
153
153
|
aria-label="Swap colors"
|
|
154
154
|
className="absolute left-[28px] top-0 inline-flex cursor-pointer text-fg hover:opacity-80"
|
|
155
155
|
>
|
|
156
|
-
<
|
|
156
|
+
<IconLoader name="swap" size={16} />
|
|
157
157
|
</button>
|
|
158
158
|
)
|
|
159
159
|
}
|
|
@@ -2,7 +2,7 @@ import { useLayoutEffect, useRef, useState } from 'react'
|
|
|
2
2
|
import useScrollFade from '../hooks/useScrollFade.js'
|
|
3
3
|
import CloseButton from './CloseButton.jsx'
|
|
4
4
|
import Button from '../atoms/Button.jsx'
|
|
5
|
-
import {
|
|
5
|
+
import { IconLoader } from '@kolkrabbi/kol-icons'
|
|
6
6
|
import { RAIL_ROW } from '../hooks/railRow.js'
|
|
7
7
|
import { Tooltip } from '../utilities/Popover.jsx'
|
|
8
8
|
import { floatSurfaceClass } from '../utilities/tone.js'
|
|
@@ -271,7 +271,7 @@ function StackedTabs({ trailing, tabs, value, onChange, placement, shape = 'bar'
|
|
|
271
271
|
...(handle ? { background: 'var(--kol-oq-24)' } : glass ? {} : { background: 'var(--kol-surface-secondary)' }), color: handle ? RAIL_ROW.active : RAIL_ROW.rest,
|
|
272
272
|
}}
|
|
273
273
|
>
|
|
274
|
-
<
|
|
274
|
+
<IconLoader name={foldSide === 'left' ? 'chevron-right' : 'chevron-left'} size={18} />
|
|
275
275
|
</button>
|
|
276
276
|
)
|
|
277
277
|
}
|
|
@@ -298,7 +298,7 @@ function StackedTabs({ trailing, tabs, value, onChange, placement, shape = 'bar'
|
|
|
298
298
|
className={`flex flex-col items-center justify-center rounded-full cursor-pointer flex-none bg-[var(--slot-bg)] text-[var(--slot-ink)]${dock && !active ? ' hover:bg-[var(--kol-oq-04)] hover:text-[var(--kol-surface-on-primary)]' : ''}${labels ? ' gap-0.5' : ''}`}
|
|
299
299
|
style={{ width: slotW, height: slotH, padding: 0, border: 'none', '--slot-bg': active ? 'var(--kol-oq-16)' : 'transparent', '--slot-ink': ink(active) }}
|
|
300
300
|
>
|
|
301
|
-
{t.icon && <
|
|
301
|
+
{t.icon && <IconLoader name={t.icon} size={labels ? 24 : 28} />}
|
|
302
302
|
{labels && <span className="truncate max-w-full px-1.5" style={{ fontFamily: 'var(--kol-font-family-mono)', fontSize: 11, lineHeight: 1.2, fontWeight: 600 }}>{t.label}</span>}
|
|
303
303
|
</button>
|
|
304
304
|
))
|
|
@@ -317,7 +317,7 @@ function StackedTabs({ trailing, tabs, value, onChange, placement, shape = 'bar'
|
|
|
317
317
|
* an inline stacked row keeps MobileTabBar's own */
|
|
318
318
|
style={{ background: 'transparent', border: 'none', color: ink(active) }}
|
|
319
319
|
>
|
|
320
|
-
{t.icon && <
|
|
320
|
+
{t.icon && <IconLoader name={t.icon} size={phone ? 24 : 18} />}
|
|
321
321
|
{/* helper is single-line chrome, which a tab label always is */}
|
|
322
322
|
{!phone && <span className="kol-helper-10 truncate max-w-full px-1">{t.label}</span>}
|
|
323
323
|
</button>
|
|
@@ -339,7 +339,7 @@ function StackedTabs({ trailing, tabs, value, onChange, placement, shape = 'bar'
|
|
|
339
339
|
opacity: isCollapsed ? 1 : 0, pointerEvents: isCollapsed ? 'auto' : 'none', transition: `opacity ${COLLAPSE_MS}ms ease`,
|
|
340
340
|
}}
|
|
341
341
|
>
|
|
342
|
-
<
|
|
342
|
+
<IconLoader name="x" size={pill ? 28 : 24} />
|
|
343
343
|
</button>
|
|
344
344
|
)
|
|
345
345
|
const row = (
|
|
@@ -414,7 +414,7 @@ function StackedTabs({ trailing, tabs, value, onChange, placement, shape = 'bar'
|
|
|
414
414
|
className={`flex items-center justify-center rounded-full cursor-pointer flex-none ${material}`.trim()}
|
|
415
415
|
style={{ width: TABBAR_PILL_H, height: TABBAR_PILL_H, padding: 0, border: edgeLine, ...solidLook, color: ink(isCollapsed || (last.selected ?? last.id === value)) }}
|
|
416
416
|
>
|
|
417
|
-
<
|
|
417
|
+
<IconLoader name={isCollapsed ? 'x' : last.icon} size={labels ? 24 : 28} />
|
|
418
418
|
</button>
|
|
419
419
|
))}
|
|
420
420
|
</nav>
|
|
@@ -466,7 +466,7 @@ function UnderlineTabs({ tabs, value, onChange, onClose, onMinimise, wrap, type
|
|
|
466
466
|
>
|
|
467
467
|
{/* a tab may carry its glyph before the label (2026-10-29, Adobe's Base color · Image · Color wheel) */}
|
|
468
468
|
{/* the glyph in OPAQUE ink (icons take oq, never fg) — full when active, meta otherwise, full under the pointer */}
|
|
469
|
-
{t.icon && <
|
|
469
|
+
{t.icon && <IconLoader name={t.icon} size={md ? 20 : 16} className={isActive ? 'text-oq-96' : 'text-oq-48 group-hover:text-oq-80'} />}
|
|
470
470
|
{t.label}
|
|
471
471
|
</button>
|
|
472
472
|
)
|
|
@@ -481,7 +481,7 @@ function UnderlineTabs({ tabs, value, onChange, onClose, onMinimise, wrap, type
|
|
|
481
481
|
className="ml-auto text-oq-48 hover:text-emphasis self-center"
|
|
482
482
|
style={{ lineHeight: 0 }}
|
|
483
483
|
>
|
|
484
|
-
<
|
|
484
|
+
<IconLoader name="chevron-down" size={12} />
|
|
485
485
|
</button>
|
|
486
486
|
)}
|
|
487
487
|
</div>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IconLoader } from '@kolkrabbi/kol-icons'
|
|
2
2
|
import ToggleCheckbox from '../atoms/ToggleCheckbox.jsx'
|
|
3
3
|
|
|
4
4
|
/* taxonomy-ok: molecule — nests ToggleCheckbox (atom) + kol-icons's Icon. */
|
|
@@ -34,7 +34,7 @@ export default function TaskRow({ title, date, done = false, onDone, onDate, onC
|
|
|
34
34
|
{...(onDate ? { type: 'button', onClick: onDate } : {})}
|
|
35
35
|
className={`inline-flex h-[var(--kol-float-h-md)] shrink-0 items-center gap-2 rounded-full bg-[var(--kol-float-well)] px-4 ${onDate ? 'cursor-pointer hover:bg-fg-08 focus-visible:outline-none focus-visible:shadow-[var(--kol-float-focus)]' : ''}`.trim()}
|
|
36
36
|
>
|
|
37
|
-
<
|
|
37
|
+
<IconLoader name="calendar" size={14} className="text-oq-64" />
|
|
38
38
|
<span className="kol-float-timecode tabular-nums text-fg-64">{date}</span>
|
|
39
39
|
</Chip>
|
|
40
40
|
)}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IconLoader } from '@kolkrabbi/kol-icons'
|
|
2
2
|
|
|
3
3
|
/* taxonomy-ok: molecule — nests kol-icons's Icon. */
|
|
4
4
|
|
|
@@ -49,7 +49,7 @@ export default function TreeRow({ size = 'sm', icon, label, count, active = fals
|
|
|
49
49
|
onClick={onToggle ? (e) => { e.preventDefault(); e.stopPropagation(); onToggle() } : undefined}
|
|
50
50
|
className="inline-flex shrink-0 text-oq-64"
|
|
51
51
|
>
|
|
52
|
-
<
|
|
52
|
+
<IconLoader name={expanded ? 'chevron-down' : 'chevron-right'} size={12} />
|
|
53
53
|
</span>
|
|
54
54
|
)
|
|
55
55
|
return (
|
|
@@ -62,7 +62,7 @@ export default function TreeRow({ size = 'sm', icon, label, count, active = fals
|
|
|
62
62
|
style={{ paddingLeft: 10 + depth * 16 }}
|
|
63
63
|
{...rest}
|
|
64
64
|
>
|
|
65
|
-
{icon && <
|
|
65
|
+
{icon && <IconLoader name={icon} size={S.ic} className={`shrink-0 ${bright ? 'text-oq-96' : 'text-oq-64 group-hover:text-oq-96'}`} />}
|
|
66
66
|
<span className={`${S.type} min-w-0 flex-1 truncate ${bright ? 'text-fg-emphasis' : 'text-fg-64 group-hover:text-fg-emphasis'}`}>{label}</span>
|
|
67
67
|
{count != null && <span className="kol-float-ruler shrink-0 tabular-nums text-fg-64">{count}</span>}
|
|
68
68
|
{trailing}
|