@kolkrabbi/kol-component 0.354.0 → 0.356.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 +2 -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/Modal.jsx +50 -51
- package/src/molecules/ModalHeader.jsx +2 -2
- package/src/molecules/ModalShell.jsx +48 -0
- 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 +24 -18
- 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 +23 -22
- 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/SettingsPanel.jsx +11 -7
- 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 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}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useState } from 'react'
|
|
2
2
|
import { createPortal } from 'react-dom'
|
|
3
|
-
import {
|
|
3
|
+
import { IconLoader } from '@kolkrabbi/kol-icons'
|
|
4
4
|
import { MenuCtx, useAsk, glyph } from '../molecules/AppItem.jsx'
|
|
5
5
|
import ContextMenu, { useContextMenu } from '../molecules/ContextMenu.jsx'
|
|
6
6
|
import { MenuRow } from '../molecules/MenuItem.jsx'
|
|
@@ -125,7 +125,7 @@ function FileImages({ images, cover, back, editing, onImages, onCover, onBack })
|
|
|
125
125
|
<figure className="flex min-w-0 flex-col gap-1.5">
|
|
126
126
|
<button type="button" onClick={add} aria-label="Upload image"
|
|
127
127
|
className="flex aspect-square w-full items-center justify-center rounded-[var(--kol-radius-sm)] border border-dashed border-[var(--kol-fg-24)] bg-[var(--kol-fg-02)] text-fg-48">
|
|
128
|
-
<
|
|
128
|
+
<IconLoader name="plus" size={20} />
|
|
129
129
|
</button>
|
|
130
130
|
<figcaption className="kol-mono-12 text-meta">Upload image</figcaption>
|
|
131
131
|
</figure>
|
|
@@ -3,7 +3,7 @@ import ColorSwatch from '../molecules/ColorSwatch.jsx'
|
|
|
3
3
|
import Input from '../atoms/Input.jsx'
|
|
4
4
|
import Slider from '../molecules/Slider.jsx'
|
|
5
5
|
import Dropdown from '../molecules/Dropdown.jsx'
|
|
6
|
-
import {
|
|
6
|
+
import { IconLoader } from '@kolkrabbi/kol-icons'
|
|
7
7
|
import { usePopover, PopoverPanel } from '../utilities/Popover.jsx'
|
|
8
8
|
import { HueStrip, SBSquare, AlphaStrip } from './SpectrumControls.jsx'
|
|
9
9
|
import { hexToHsva, hsvaToHex } from '../hooks/colorMath.js'
|
|
@@ -66,7 +66,7 @@ function ChannelStrip({ ch, hex, hsva, onHsva }) {
|
|
|
66
66
|
const pct = ((value - ch.min) / (ch.max - ch.min)) * 100
|
|
67
67
|
return (
|
|
68
68
|
<div className="flex items-center gap-2">
|
|
69
|
-
<span className="flex w-4 shrink-0 items-center kol-mono-12 text-meta">{ch.icon ? <
|
|
69
|
+
<span className="flex w-4 shrink-0 items-center kol-mono-12 text-meta">{ch.icon ? <IconLoader name={ch.icon} size={16} className="text-oq-64" /> : ch.key}</span>
|
|
70
70
|
<div ref={ref} role="slider" aria-label={ch.label ?? ch.key} aria-valuemin={ch.min} aria-valuemax={ch.max} aria-valuenow={Math.round(value)} tabIndex={0}
|
|
71
71
|
className="relative h-4 flex-1 cursor-pointer rounded-full touch-none" style={{ background: `linear-gradient(to right, ${stops.join(', ')})` }}
|
|
72
72
|
onPointerDown={(e) => { e.currentTarget.setPointerCapture(e.pointerId); fromPointer(e) }}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Fragment, useEffect, useRef, useState } from 'react'
|
|
2
|
-
import {
|
|
2
|
+
import { IconLoader } from '@kolkrabbi/kol-icons'
|
|
3
3
|
import KindPreview, { KIND_GLYPH } from '../molecules/KindPreview.jsx'
|
|
4
4
|
import FileIcon from '../atoms/FileIcon.jsx'
|
|
5
5
|
import RowMenuButton from '../molecules/RowMenuButton.jsx'
|
|
@@ -337,7 +337,7 @@ function Row({
|
|
|
337
337
|
className="kol-column-browser-disclose shrink-0 inline-flex items-center justify-center"
|
|
338
338
|
style={{ width: 14, alignSelf: 'stretch', color: 'var(--kol-accent-primary)' }}
|
|
339
339
|
>
|
|
340
|
-
<
|
|
340
|
+
<IconLoader name={disclosed ? 'chevron-down' : 'chevron-right'} size={12} />
|
|
341
341
|
</button>
|
|
342
342
|
) : (
|
|
343
343
|
<span aria-hidden="true" className="shrink-0" style={{ width: 14 }} />
|
|
@@ -359,13 +359,13 @@ function Row({
|
|
|
359
359
|
className="kol-column-browser-thumb shrink-0 inline-flex items-center justify-center overflow-hidden"
|
|
360
360
|
style={{ width: ZONE_BOX, height: ZONE_BOX, borderRadius: 5, background: thumb ? 'var(--kol-oq-04)' : 'transparent' }}
|
|
361
361
|
>
|
|
362
|
-
{thumb ?? <
|
|
362
|
+
{thumb ?? <IconLoader name={icon} size={ZONE_BOX} className="text-oq-48" />}
|
|
363
363
|
</span>
|
|
364
364
|
) : (
|
|
365
365
|
<span className="w-5 shrink-0 flex items-center justify-center text-oq-48">
|
|
366
366
|
{/* one glyph size for every row — a folder and a file side by side draw at the same size
|
|
367
367
|
(user 2026-09-25; the file glyph was 14 against the folder's 18) */}
|
|
368
|
-
<
|
|
368
|
+
<IconLoader name={icon} size={18} />
|
|
369
369
|
</span>
|
|
370
370
|
)}
|
|
371
371
|
|
|
@@ -897,7 +897,7 @@ export default function ColumnBrowser({
|
|
|
897
897
|
className="kol-column-browser-back flex items-center gap-2 px-4 py-3 border-b text-fg-default"
|
|
898
898
|
style={{ borderColor: 'var(--kol-oq-08)' }}
|
|
899
899
|
>
|
|
900
|
-
<
|
|
900
|
+
<IconLoader name="chevron-left" size={14} className="text-oq-48" />
|
|
901
901
|
{/* NAMES THE PARENT (item 2) — the folder it returns to, not '‹' */}
|
|
902
902
|
<span className="kol-mono-12 truncate">
|
|
903
903
|
{parent === '' ? 'All files' : parent.replace(/\/$/, '').split('/').pop()}
|
|
@@ -930,8 +930,8 @@ export default function ColumnBrowser({
|
|
|
930
930
|
>
|
|
931
931
|
<span className="kol-column-browser-tile-box">
|
|
932
932
|
{isFolder
|
|
933
|
-
? <
|
|
934
|
-
: (thumbnailFor?.(o) ?? <
|
|
933
|
+
? <IconLoader name="folder" size={28} className="text-oq-48" />
|
|
934
|
+
: (thumbnailFor?.(o) ?? <IconLoader name={COL_ICON[kindOf(o)] || 'file'} size={28} className="text-oq-48" />)}
|
|
935
935
|
</span>
|
|
936
936
|
<span className="kol-mono-12 truncate">{isFolder ? r.name.replace(/\/$/, '') : (o.displayKey ?? o.key)}</span>
|
|
937
937
|
{/* counts for a folder, size for a file — never dates (§2) */}
|
|
@@ -1073,7 +1073,7 @@ export default function ColumnBrowser({
|
|
|
1073
1073
|
* it is its own contents with nothing chosen, and no file is showing */
|
|
1074
1074
|
trail={f === activeFolder && !isPicked(level + f) && (!!shown || k < levels.length - 2)}
|
|
1075
1075
|
cursor={cursorActive && cursor.col === k && cursor.idx === i}
|
|
1076
|
-
trailing={<
|
|
1076
|
+
trailing={<IconLoader name="chevron-right" size={12} className={f === activeFolder && !shown && k === levels.length - 2 ? '' : 'text-oq-32'} />}
|
|
1077
1077
|
onContextMenu={onRowContextMenu && ((e) => onRowContextMenu(e, { type: 'folder', path: level + f }))}
|
|
1078
1078
|
drop={dragFor?.(level + f)}
|
|
1079
1079
|
dropFiles={onDropFiles ? (list) => onDropFiles(list, level + f) : undefined}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useEffect, useId, useRef, useState } from 'react'
|
|
2
|
-
import {
|
|
2
|
+
import { IconLoader } from '@kolkrabbi/kol-icons'
|
|
3
3
|
import SearchInput from '../molecules/SearchInput.jsx'
|
|
4
4
|
import Tag from '../atoms/Tag.jsx'
|
|
5
5
|
import TabsRow from '../molecules/TabsRow.jsx'
|
|
@@ -469,7 +469,7 @@ export default function CommandOverlay({
|
|
|
469
469
|
>
|
|
470
470
|
{/* the glyph drawn here, not as `iconLeft` — Button would wrap it and the label in a span that does not take the row */}
|
|
471
471
|
<span className="flex min-w-0 flex-1 items-center" style={{ gap: 'var(--kol-float-gap-ic)' }}>
|
|
472
|
-
{item.indent ? <span className="inline-block w-4 shrink-0" /> : item.icon && (typeof item.icon === 'string' ? <
|
|
472
|
+
{item.indent ? <span className="inline-block w-4 shrink-0" /> : item.icon && (typeof item.icon === 'string' ? <IconLoader name={item.icon} size="var(--kol-float-ic)" className="shrink-0 text-oq-88" /> : item.icon)}
|
|
473
473
|
<span className="truncate text-left"><HighlightMatch label={item.label} query={query} ranges={item.highlights} /></span>
|
|
474
474
|
{((item.disabled && item.disabledHint) || item.hint) && <span className="kol-float-hint ml-auto truncate pl-3 text-oq-64">{(item.disabled && item.disabledHint) || item.hint}</span>}
|
|
475
475
|
</span>
|
|
@@ -2,7 +2,7 @@ import { useEffect, useState, useMemo } from 'react'
|
|
|
2
2
|
import Tag from '../atoms/Tag.jsx'
|
|
3
3
|
import Divider from '../atoms/Divider.jsx'
|
|
4
4
|
import Button from '../atoms/Button.jsx'
|
|
5
|
-
import {
|
|
5
|
+
import { IconLoader } from '@kolkrabbi/kol-icons'
|
|
6
6
|
import { glyphSize } from '../hooks/glyphLadders.js'
|
|
7
7
|
import SearchInput from '../molecules/SearchInput.jsx'
|
|
8
8
|
import IconFrame from '../atoms/IconFrame.jsx'
|
|
@@ -167,7 +167,7 @@ const ContentFilters = ({
|
|
|
167
167
|
}) => {
|
|
168
168
|
/* Icon seam — consumers on a local icon shelf pass their own component
|
|
169
169
|
* rather than being forced onto the DS set. Needs `filter` + `search`. */
|
|
170
|
-
const IconSeam = iconComponent ||
|
|
170
|
+
const IconSeam = iconComponent || IconLoader
|
|
171
171
|
/* SEEDED, not controlled (FilesDialog, kol-fxr 2026-09-04). A consumer that
|
|
172
172
|
* opens onto one chip — the files dialog opens on `preset` — had no way to
|
|
173
173
|
* say so: the set started empty and the first paint showed everything. An
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useRef, useState } from 'react'
|
|
2
|
-
import {
|
|
2
|
+
import { IconLoader } from '@kolkrabbi/kol-icons'
|
|
3
3
|
import Button from '../atoms/Button.jsx'
|
|
4
4
|
import Input from '../atoms/Input.jsx'
|
|
5
5
|
import { MenuRow, MenuFlyout } from '../molecules/MenuItem.jsx'
|
|
@@ -272,7 +272,7 @@ export default function LayerStack({
|
|
|
272
272
|
onGroup,
|
|
273
273
|
labelFor = rowLabelForLayer,
|
|
274
274
|
iconFor = defaultIconFor,
|
|
275
|
-
iconComponent: IconC =
|
|
275
|
+
iconComponent: IconC = IconLoader,
|
|
276
276
|
containerTypes = ['group', 'bool'],
|
|
277
277
|
className = '',
|
|
278
278
|
}) {
|
|
@@ -457,7 +457,7 @@ export function AddLayerButton({
|
|
|
457
457
|
nested,
|
|
458
458
|
onAdd,
|
|
459
459
|
iconFor = defaultIconFor,
|
|
460
|
-
iconComponent: IconC =
|
|
460
|
+
iconComponent: IconC = IconLoader,
|
|
461
461
|
menuWidth = 180,
|
|
462
462
|
}) {
|
|
463
463
|
const [open, setOpen] = useState(false)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createContext, useContext, useEffect, useMemo, useState } from 'react'
|
|
2
|
-
import {
|
|
2
|
+
import { IconLoader } from '@kolkrabbi/kol-icons'
|
|
3
3
|
import ActionButton from '../molecules/ActionButton.jsx'
|
|
4
4
|
import Button from '../atoms/Button.jsx'
|
|
5
5
|
import Divider from '../atoms/Divider.jsx'
|
|
@@ -8,6 +8,7 @@ import Input from '../atoms/Input.jsx'
|
|
|
8
8
|
import ViewToggle from '../atoms/ViewToggle.jsx'
|
|
9
9
|
import SearchInput from '../molecules/SearchInput.jsx'
|
|
10
10
|
import FullscreenOverlay from '../molecules/FullscreenOverlay.jsx'
|
|
11
|
+
import ModalShell from '../molecules/ModalShell.jsx'
|
|
11
12
|
import { Tooltip } from '../utilities/Popover.jsx'
|
|
12
13
|
import MediaTile from '../molecules/MediaTile.jsx'
|
|
13
14
|
import ContentRow from '../molecules/ContentRow.jsx'
|
|
@@ -498,7 +499,7 @@ function Thumb({ row, mediaUrl }) {
|
|
|
498
499
|
return (
|
|
499
500
|
<div className="kol-media-thumb">
|
|
500
501
|
<span className="kol-media-thumb-fallback" data-painted={false}>
|
|
501
|
-
<
|
|
502
|
+
<IconLoader name={KIND_ICON[row.kind] ?? 'file'} size={20} />
|
|
502
503
|
<span className="kol-mono-12">{fileName(row.key)}</span>
|
|
503
504
|
</span>
|
|
504
505
|
</div>
|
|
@@ -508,7 +509,7 @@ function Thumb({ row, mediaUrl }) {
|
|
|
508
509
|
return (
|
|
509
510
|
<div className="kol-media-thumb">
|
|
510
511
|
<span className="kol-media-thumb-fallback" data-painted={painted || !!row.poster}>
|
|
511
|
-
<
|
|
512
|
+
<IconLoader name="play" size={20} />
|
|
512
513
|
<span className="kol-mono-12">{fileName(row.key)}</span>
|
|
513
514
|
</span>
|
|
514
515
|
<video
|
|
@@ -530,10 +531,10 @@ function FolderRow({ folder, struck = false, onEnter }) {
|
|
|
530
531
|
return (
|
|
531
532
|
<li className="kol-media-folder" onClick={onEnter}>
|
|
532
533
|
<span className="flex h-8 w-8 shrink-0 items-center justify-center text-oq-48">
|
|
533
|
-
<
|
|
534
|
+
<IconLoader name="folder" size={18} />
|
|
534
535
|
</span>
|
|
535
536
|
<span className={`kol-mono-12 flex-1 ${struck ? 'line-through text-meta' : 'text-body'}`}>{folder.label}</span>
|
|
536
|
-
<
|
|
537
|
+
<IconLoader name="chevron-right" size={14} className="text-oq-24" />
|
|
537
538
|
</li>
|
|
538
539
|
)
|
|
539
540
|
}
|
|
@@ -605,7 +606,7 @@ function SortControls() {
|
|
|
605
606
|
className={`kol-mono-12 flex items-center gap-1 transition-colors ${active ? 'text-emphasis' : 'text-meta hover:text-body'}`}
|
|
606
607
|
>
|
|
607
608
|
{opt.label}
|
|
608
|
-
{active && <
|
|
609
|
+
{active && <IconLoader name={sort.dir === 'asc' ? 'arrow-down' : 'arrow-up'} size={10} />}
|
|
609
610
|
</button>
|
|
610
611
|
)
|
|
611
612
|
})}
|
|
@@ -873,7 +874,7 @@ function PathBar() {
|
|
|
873
874
|
const { stats } = useMediaLibrary()
|
|
874
875
|
return (
|
|
875
876
|
<div className="kol-media-pathbar">
|
|
876
|
-
<
|
|
877
|
+
<IconLoader name="folder" size={12} />
|
|
877
878
|
<Breadcrumb />
|
|
878
879
|
{stats.systemCount > 0 && (
|
|
879
880
|
<span className="kol-helper-12 text-meta ms-auto">
|
|
@@ -946,7 +947,7 @@ function LibraryChrome({ onOpen, onPick }) {
|
|
|
946
947
|
<>
|
|
947
948
|
<div className="hidden md:flex items-center gap-6"><ViewToggle viewMode={viewMode} onViewChange={setViewMode} variant="icon" options={VIEW_OPTIONS} /></div>
|
|
948
949
|
<div className="md:hidden">
|
|
949
|
-
<MenuItem label={<
|
|
950
|
+
<MenuItem label={<IconLoader name="more" size={16} />} caret={false} align="end" size="sm" buttonClassName="shrink-0 px-2">
|
|
950
951
|
{({ close }) => (
|
|
951
952
|
<div className="py-1 w-[200px]">
|
|
952
953
|
{VIEW_OPTIONS.map((opt) => (
|
|
@@ -954,7 +955,7 @@ function LibraryChrome({ onOpen, onPick }) {
|
|
|
954
955
|
))}
|
|
955
956
|
<MenuDivider />
|
|
956
957
|
{SORT_OPTIONS.map((opt) => (
|
|
957
|
-
<MenuRow key={opt.value} onClick={() => { sortBy(opt.value); close() }} shortcut={sort.by === opt.value ? <
|
|
958
|
+
<MenuRow key={opt.value} onClick={() => { sortBy(opt.value); close() }} shortcut={sort.by === opt.value ? <IconLoader name={sort.dir === 'desc' ? 'arrow-down' : 'arrow-up'} size={11} /> : undefined}>{opt.label}</MenuRow>
|
|
958
959
|
))}
|
|
959
960
|
</div>
|
|
960
961
|
)}
|
|
@@ -992,9 +993,9 @@ function PickerShell({ onClose, onPick }) {
|
|
|
992
993
|
{/* `scrim` — a modal OVER the page it was opened from, not an opaque surface in its place
|
|
993
994
|
* (user, 2026-10-07, on labs: "its not overlay, its complete full screen") */}
|
|
994
995
|
<FullscreenOverlay open scrim onClose={viewerIndex === null ? onClose : () => {}}>
|
|
995
|
-
<
|
|
996
|
+
<ModalShell className="kol-media-picker max-md:rounded-none">
|
|
996
997
|
<LibraryChrome onOpen={setViewerIndex} onPick={pick} />
|
|
997
|
-
</
|
|
998
|
+
</ModalShell>
|
|
998
999
|
</FullscreenOverlay>
|
|
999
1000
|
|
|
1000
1001
|
{viewerIndex !== null && viewable[viewerIndex] && (
|
|
@@ -1115,7 +1116,14 @@ function PickerBrowse({ client, accept, onClose, onSelect, title = 'MEDIA', ...b
|
|
|
1115
1116
|
* The X moved three times (overlay corner → title row, 2026-10-10 → beside the gear → corner again)
|
|
1116
1117
|
* and was wrong each time; without it the card's block-start lane goes too (`pt-5`). */
|
|
1117
1118
|
<FullscreenOverlay open scrim onClose={onClose} closeButton={false}>
|
|
1118
|
-
<
|
|
1119
|
+
<ModalShell className="kol-media-picker max-md:rounded-none gap-4 pt-5"
|
|
1120
|
+
footer={!phone && (
|
|
1121
|
+
<div className="mt-auto flex items-center justify-end gap-4">
|
|
1122
|
+
<span className="kol-mono-12 text-fg-48 truncate mr-auto">{file ? file.key : 'Select a file'}</span>
|
|
1123
|
+
<Button tone="grey" size="md" onClick={onClose}>Cancel</Button>
|
|
1124
|
+
<Button size="md" disabled={!ok} onClick={() => use()}>Use</Button>
|
|
1125
|
+
</div>
|
|
1126
|
+
)}>
|
|
1119
1127
|
{/* THE PICKER READS AS THE MEDIA APP (user 2026-10-23, beside kol-r2b2 on a phone): the title in the display voice —
|
|
1120
1128
|
* a modal card, not a page of the app, so the shell's masthead does not reach it — and the listing opening at
|
|
1121
1129
|
* the title root, the buckets as rows (the database glyph), each with its count. The browse surface's own
|
|
@@ -1137,14 +1145,7 @@ function PickerBrowse({ client, accept, onClose, onSelect, title = 'MEDIA', ...b
|
|
|
1137
1145
|
canInsert={fits}
|
|
1138
1146
|
/>
|
|
1139
1147
|
</MastheadContext.Provider>
|
|
1140
|
-
|
|
1141
|
-
<div className="mt-auto flex items-center justify-end gap-4">
|
|
1142
|
-
<span className="kol-mono-12 text-fg-48 truncate mr-auto">{file ? file.key : 'Select a file'}</span>
|
|
1143
|
-
<Button tone="grey" size="md" onClick={onClose}>Cancel</Button>
|
|
1144
|
-
<Button size="md" disabled={!ok} onClick={() => use()}>Use</Button>
|
|
1145
|
-
</div>
|
|
1146
|
-
)}
|
|
1147
|
-
</div>
|
|
1148
|
+
</ModalShell>
|
|
1148
1149
|
</FullscreenOverlay>
|
|
1149
1150
|
)
|
|
1150
1151
|
}
|
|
@@ -1161,7 +1162,7 @@ function FloatPicker({ onClose, onPick, onImport, importLabel = 'Import', title
|
|
|
1161
1162
|
<span className="kol-float-window min-w-0 flex-1 truncate text-fg-emphasis">{title}</span>
|
|
1162
1163
|
{onClose && (
|
|
1163
1164
|
<button type="button" aria-label="Close" onClick={onClose} className="inline-flex size-6 shrink-0 items-center justify-center rounded-full text-oq-64 hover:bg-fg-08 hover:text-oq-96 cursor-pointer focus-visible:outline-none focus-visible:shadow-[var(--kol-float-focus)]">
|
|
1164
|
-
<
|
|
1165
|
+
<IconLoader name="x" size={16} />
|
|
1165
1166
|
</button>
|
|
1166
1167
|
)}
|
|
1167
1168
|
</div>
|
|
@@ -1179,7 +1180,7 @@ function FloatPicker({ onClose, onPick, onImport, importLabel = 'Import', title
|
|
|
1179
1180
|
<span className="kol-float-hint truncate text-fg-emphasis" style={{ fontSize: 13 }}>{o.displayKey}</span>
|
|
1180
1181
|
<span className="kol-float-ruler truncate uppercase text-fg-64">{[o.key.split('.').pop(), formatSize(o.size)].filter(Boolean).join(' · ')}</span>
|
|
1181
1182
|
</span>
|
|
1182
|
-
{picked === o.key && <
|
|
1183
|
+
{picked === o.key && <IconLoader name="check" size={14} className="mr-2 shrink-0 text-oq-96" />}
|
|
1183
1184
|
</button>
|
|
1184
1185
|
</li>
|
|
1185
1186
|
))}
|