@kolkrabbi/kol-component 0.353.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 +7 -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 +22 -18
- 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,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,9 +1,10 @@
|
|
|
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'
|
|
6
6
|
import OptionRow from '../molecules/OptionRow.jsx'
|
|
7
|
+
import ContentText from '../molecules/ContentText.jsx'
|
|
7
8
|
import { formatLength } from '../molecules/PlayTile.jsx'
|
|
8
9
|
import { kindOf as dsKindOf, KIND_LABEL as DS_KIND_LABEL } from '../utilities/mediaKinds.js'
|
|
9
10
|
import useGrabEdge from '../hooks/useGrabEdge.js'
|
|
@@ -336,7 +337,7 @@ function Row({
|
|
|
336
337
|
className="kol-column-browser-disclose shrink-0 inline-flex items-center justify-center"
|
|
337
338
|
style={{ width: 14, alignSelf: 'stretch', color: 'var(--kol-accent-primary)' }}
|
|
338
339
|
>
|
|
339
|
-
<
|
|
340
|
+
<IconLoader name={disclosed ? 'chevron-down' : 'chevron-right'} size={12} />
|
|
340
341
|
</button>
|
|
341
342
|
) : (
|
|
342
343
|
<span aria-hidden="true" className="shrink-0" style={{ width: 14 }} />
|
|
@@ -358,25 +359,28 @@ function Row({
|
|
|
358
359
|
className="kol-column-browser-thumb shrink-0 inline-flex items-center justify-center overflow-hidden"
|
|
359
360
|
style={{ width: ZONE_BOX, height: ZONE_BOX, borderRadius: 5, background: thumb ? 'var(--kol-oq-04)' : 'transparent' }}
|
|
360
361
|
>
|
|
361
|
-
{thumb ?? <
|
|
362
|
+
{thumb ?? <IconLoader name={icon} size={ZONE_BOX} className="text-oq-48" />}
|
|
362
363
|
</span>
|
|
363
364
|
) : (
|
|
364
365
|
<span className="w-5 shrink-0 flex items-center justify-center text-oq-48">
|
|
365
366
|
{/* one glyph size for every row — a folder and a file side by side draw at the same size
|
|
366
367
|
(user 2026-09-25; the file glyph was 14 against the folder's 18) */}
|
|
367
|
-
<
|
|
368
|
+
<IconLoader name={icon} size={18} />
|
|
368
369
|
</span>
|
|
369
370
|
)}
|
|
370
371
|
|
|
371
|
-
{/* ZONE 3 — name over meta
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
372
|
+
{/* ZONE 3 — name over meta, drawn by ContentText's row (no middot join: date and size are two
|
|
373
|
+
slots, date first as the Figma master). A folder's meta is the consumer's one string. */}
|
|
374
|
+
<ContentText
|
|
375
|
+
form="row"
|
|
376
|
+
title={label}
|
|
377
|
+
{...(typeof meta === 'object' && meta ? meta : { date: meta || null })}
|
|
378
|
+
gap={2}
|
|
379
|
+
titleClass="kol-mono-12 truncate"
|
|
380
|
+
dateClass="kol-helper-10 text-fg-48 truncate"
|
|
381
|
+
sizeClass="kol-helper-10 text-fg-48 truncate"
|
|
382
|
+
className="flex-1"
|
|
383
|
+
/>
|
|
380
384
|
|
|
381
385
|
{/* ZONE 4 */}
|
|
382
386
|
{zones ? <span className="shrink-0 inline-flex justify-end" style={{ width: 20 }}>{trailing}</span> : trailing}
|
|
@@ -870,7 +874,7 @@ export default function ColumnBrowser({
|
|
|
870
874
|
* it. */
|
|
871
875
|
const rows = stackRows(objects, base, stackView === 'grid' ? () => false : (path) => expanded.has(path), partition)
|
|
872
876
|
|
|
873
|
-
const metaOf = (o) =>
|
|
877
|
+
const metaOf = (o) => ({ date: formatDate(o.uploaded) || null, size: o.size != null ? formatSize(o.size) : null })
|
|
874
878
|
|
|
875
879
|
return (
|
|
876
880
|
<div
|
|
@@ -893,7 +897,7 @@ export default function ColumnBrowser({
|
|
|
893
897
|
className="kol-column-browser-back flex items-center gap-2 px-4 py-3 border-b text-fg-default"
|
|
894
898
|
style={{ borderColor: 'var(--kol-oq-08)' }}
|
|
895
899
|
>
|
|
896
|
-
<
|
|
900
|
+
<IconLoader name="chevron-left" size={14} className="text-oq-48" />
|
|
897
901
|
{/* NAMES THE PARENT (item 2) — the folder it returns to, not '‹' */}
|
|
898
902
|
<span className="kol-mono-12 truncate">
|
|
899
903
|
{parent === '' ? 'All files' : parent.replace(/\/$/, '').split('/').pop()}
|
|
@@ -926,8 +930,8 @@ export default function ColumnBrowser({
|
|
|
926
930
|
>
|
|
927
931
|
<span className="kol-column-browser-tile-box">
|
|
928
932
|
{isFolder
|
|
929
|
-
? <
|
|
930
|
-
: (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" />)}
|
|
931
935
|
</span>
|
|
932
936
|
<span className="kol-mono-12 truncate">{isFolder ? r.name.replace(/\/$/, '') : (o.displayKey ?? o.key)}</span>
|
|
933
937
|
{/* counts for a folder, size for a file — never dates (§2) */}
|
|
@@ -1069,7 +1073,7 @@ export default function ColumnBrowser({
|
|
|
1069
1073
|
* it is its own contents with nothing chosen, and no file is showing */
|
|
1070
1074
|
trail={f === activeFolder && !isPicked(level + f) && (!!shown || k < levels.length - 2)}
|
|
1071
1075
|
cursor={cursorActive && cursor.col === k && cursor.idx === i}
|
|
1072
|
-
trailing={<
|
|
1076
|
+
trailing={<IconLoader name="chevron-right" size={12} className={f === activeFolder && !shown && k === levels.length - 2 ? '' : 'text-oq-32'} />}
|
|
1073
1077
|
onContextMenu={onRowContextMenu && ((e) => onRowContextMenu(e, { type: 'folder', path: level + f }))}
|
|
1074
1078
|
drop={dragFor?.(level + f)}
|
|
1075
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'
|
|
@@ -498,7 +498,7 @@ function Thumb({ row, mediaUrl }) {
|
|
|
498
498
|
return (
|
|
499
499
|
<div className="kol-media-thumb">
|
|
500
500
|
<span className="kol-media-thumb-fallback" data-painted={false}>
|
|
501
|
-
<
|
|
501
|
+
<IconLoader name={KIND_ICON[row.kind] ?? 'file'} size={20} />
|
|
502
502
|
<span className="kol-mono-12">{fileName(row.key)}</span>
|
|
503
503
|
</span>
|
|
504
504
|
</div>
|
|
@@ -508,7 +508,7 @@ function Thumb({ row, mediaUrl }) {
|
|
|
508
508
|
return (
|
|
509
509
|
<div className="kol-media-thumb">
|
|
510
510
|
<span className="kol-media-thumb-fallback" data-painted={painted || !!row.poster}>
|
|
511
|
-
<
|
|
511
|
+
<IconLoader name="play" size={20} />
|
|
512
512
|
<span className="kol-mono-12">{fileName(row.key)}</span>
|
|
513
513
|
</span>
|
|
514
514
|
<video
|
|
@@ -530,10 +530,10 @@ function FolderRow({ folder, struck = false, onEnter }) {
|
|
|
530
530
|
return (
|
|
531
531
|
<li className="kol-media-folder" onClick={onEnter}>
|
|
532
532
|
<span className="flex h-8 w-8 shrink-0 items-center justify-center text-oq-48">
|
|
533
|
-
<
|
|
533
|
+
<IconLoader name="folder" size={18} />
|
|
534
534
|
</span>
|
|
535
535
|
<span className={`kol-mono-12 flex-1 ${struck ? 'line-through text-meta' : 'text-body'}`}>{folder.label}</span>
|
|
536
|
-
<
|
|
536
|
+
<IconLoader name="chevron-right" size={14} className="text-oq-24" />
|
|
537
537
|
</li>
|
|
538
538
|
)
|
|
539
539
|
}
|
|
@@ -605,7 +605,7 @@ function SortControls() {
|
|
|
605
605
|
className={`kol-mono-12 flex items-center gap-1 transition-colors ${active ? 'text-emphasis' : 'text-meta hover:text-body'}`}
|
|
606
606
|
>
|
|
607
607
|
{opt.label}
|
|
608
|
-
{active && <
|
|
608
|
+
{active && <IconLoader name={sort.dir === 'asc' ? 'arrow-down' : 'arrow-up'} size={10} />}
|
|
609
609
|
</button>
|
|
610
610
|
)
|
|
611
611
|
})}
|
|
@@ -873,7 +873,7 @@ function PathBar() {
|
|
|
873
873
|
const { stats } = useMediaLibrary()
|
|
874
874
|
return (
|
|
875
875
|
<div className="kol-media-pathbar">
|
|
876
|
-
<
|
|
876
|
+
<IconLoader name="folder" size={12} />
|
|
877
877
|
<Breadcrumb />
|
|
878
878
|
{stats.systemCount > 0 && (
|
|
879
879
|
<span className="kol-helper-12 text-meta ms-auto">
|
|
@@ -946,7 +946,7 @@ function LibraryChrome({ onOpen, onPick }) {
|
|
|
946
946
|
<>
|
|
947
947
|
<div className="hidden md:flex items-center gap-6"><ViewToggle viewMode={viewMode} onViewChange={setViewMode} variant="icon" options={VIEW_OPTIONS} /></div>
|
|
948
948
|
<div className="md:hidden">
|
|
949
|
-
<MenuItem label={<
|
|
949
|
+
<MenuItem label={<IconLoader name="more" size={16} />} caret={false} align="end" size="sm" buttonClassName="shrink-0 px-2">
|
|
950
950
|
{({ close }) => (
|
|
951
951
|
<div className="py-1 w-[200px]">
|
|
952
952
|
{VIEW_OPTIONS.map((opt) => (
|
|
@@ -954,7 +954,7 @@ function LibraryChrome({ onOpen, onPick }) {
|
|
|
954
954
|
))}
|
|
955
955
|
<MenuDivider />
|
|
956
956
|
{SORT_OPTIONS.map((opt) => (
|
|
957
|
-
<MenuRow key={opt.value} onClick={() => { sortBy(opt.value); close() }} shortcut={sort.by === opt.value ? <
|
|
957
|
+
<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
958
|
))}
|
|
959
959
|
</div>
|
|
960
960
|
)}
|
|
@@ -1161,7 +1161,7 @@ function FloatPicker({ onClose, onPick, onImport, importLabel = 'Import', title
|
|
|
1161
1161
|
<span className="kol-float-window min-w-0 flex-1 truncate text-fg-emphasis">{title}</span>
|
|
1162
1162
|
{onClose && (
|
|
1163
1163
|
<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
|
-
<
|
|
1164
|
+
<IconLoader name="x" size={16} />
|
|
1165
1165
|
</button>
|
|
1166
1166
|
)}
|
|
1167
1167
|
</div>
|
|
@@ -1179,7 +1179,7 @@ function FloatPicker({ onClose, onPick, onImport, importLabel = 'Import', title
|
|
|
1179
1179
|
<span className="kol-float-hint truncate text-fg-emphasis" style={{ fontSize: 13 }}>{o.displayKey}</span>
|
|
1180
1180
|
<span className="kol-float-ruler truncate uppercase text-fg-64">{[o.key.split('.').pop(), formatSize(o.size)].filter(Boolean).join(' · ')}</span>
|
|
1181
1181
|
</span>
|
|
1182
|
-
{picked === o.key && <
|
|
1182
|
+
{picked === o.key && <IconLoader name="check" size={14} className="mr-2 shrink-0 text-oq-96" />}
|
|
1183
1183
|
</button>
|
|
1184
1184
|
</li>
|
|
1185
1185
|
))}
|
|
@@ -3,7 +3,7 @@ import { registerCredentialedOrigin } from '../utilities/credentials.js'
|
|
|
3
3
|
import formatSize from '../utilities/formatSize.js'
|
|
4
4
|
import { ROW_HEIGHT, ROW_FILL } from '../molecules/OptionRow.jsx'
|
|
5
5
|
import { glyphSize } from '../hooks/glyphLadders.js'
|
|
6
|
-
import {
|
|
6
|
+
import { IconLoader } from '@kolkrabbi/kol-icons'
|
|
7
7
|
import Button from '../atoms/Button.jsx'
|
|
8
8
|
import Divider from '../atoms/Divider.jsx'
|
|
9
9
|
import Input from '../atoms/Input.jsx'
|
|
@@ -389,13 +389,13 @@ function FolderRow({ name, icon = 'folder', onClick, onDoubleClick, depth = 0, e
|
|
|
389
389
|
onClick={(e) => { e.stopPropagation(); onToggle() }}
|
|
390
390
|
className="w-4 h-4 shrink-0 flex items-center justify-center text-oq-32 hover:text-fg-default transition-transform"
|
|
391
391
|
style={{ transform: expanded ? 'rotate(90deg)' : 'none' }}>
|
|
392
|
-
<
|
|
392
|
+
<IconLoader name="chevron-right" size={12} />
|
|
393
393
|
</button>
|
|
394
394
|
) : <span className="w-4 shrink-0" />}
|
|
395
395
|
{/* THE FOLDER GLYPH IS THE ONE ICON LEFT, so it fills its box (user 2026-09-23: *"only folder
|
|
396
396
|
should use icon, and it should be bigger"*). Every other kind now renders its own bytes. */}
|
|
397
397
|
<span data-hit {...hitDrag} className="kol-row-hit flex items-center gap-3 min-w-0">
|
|
398
|
-
<span className={`shrink-0 flex items-center justify-center${selected ? '' : ' text-oq-48'}`}><
|
|
398
|
+
<span className={`shrink-0 flex items-center justify-center${selected ? '' : ' text-oq-48'}`}><IconLoader name={icon} size={glyphSize(size)} /></span>
|
|
399
399
|
{/* NO TRAILING SLASH (user 2026-09-22). `partition` hands folders back as `audio/` because a
|
|
400
400
|
slash is what marks one in a flat key space; that is storage's spelling, not a label, and
|
|
401
401
|
`ColumnBrowser` has always stripped it. The glyph says "folder". */}
|
|
@@ -478,7 +478,7 @@ function FileRow({ o, onClick, onDoubleClick, depth = 0, formatDate, thumb, cols
|
|
|
478
478
|
<span data-hit {...dragProps} className="kol-row-hit flex items-center gap-3 min-w-0">
|
|
479
479
|
<span className={`shrink-0 flex items-center justify-center overflow-hidden rounded${selected ? '' : ' text-oq-48'}`} style={{ width: glyphSize(size), height: glyphSize(size) }}>
|
|
480
480
|
{/* a file with no thumbnail draws its glyph at the FOLDER's size — one icon column (user 2026-09-25) */}
|
|
481
|
-
{thumb ?? <
|
|
481
|
+
{thumb ?? <IconLoader name={kindOf(o) === 'image' ? 'image' : 'file'} size={glyphSize(size)} />}
|
|
482
482
|
</span>
|
|
483
483
|
<span className={`kol-item-name min-w-0 truncate${selected ? '' : ' text-fg-default'}`}>{o.displayKey ?? o.displayName ?? o.key.split('/').pop()}</span>
|
|
484
484
|
</span>
|
|
@@ -519,7 +519,7 @@ function ContainerPreview({ name, icon, facts, width, details }) {
|
|
|
519
519
|
{/* the folder fills its box with the tile's inset (user 2026-09-24: a 64px glyph floated in
|
|
520
520
|
a 300px square while the grid's folder tile fills its own) */}
|
|
521
521
|
<div className="w-full aspect-square bg-oq-04 rounded flex items-center justify-center p-[5%]">
|
|
522
|
-
<
|
|
522
|
+
<IconLoader name={icon} size="100%" className="text-oq-48" />
|
|
523
523
|
</div>
|
|
524
524
|
<p className="kol-mono-12 text-fg-default break-all">{name}</p>
|
|
525
525
|
<dl className="flex flex-col gap-1">
|
|
@@ -660,7 +660,7 @@ function RowHeader({ sortBy = 'name', sortDir = 'asc', onSort, width, cols, onRe
|
|
|
660
660
|
aria-sort={active ? (sortDir === 'desc' ? 'descending' : 'ascending') : 'none'}
|
|
661
661
|
className={`kol-helper-12 cursor-pointer inline-flex items-center gap-1 w-full transition-colors ${active ? 'text-fg-default' : 'text-fg-48 hover:text-fg-default'}`}>
|
|
662
662
|
{text}
|
|
663
|
-
{active && <
|
|
663
|
+
{active && <IconLoader name={sortDir === 'desc' ? 'arrow-up' : 'arrow-down'} size={9} />}
|
|
664
664
|
</button>
|
|
665
665
|
)
|
|
666
666
|
}
|
|
@@ -1023,7 +1023,7 @@ function TrashPanel({ trash, onClose, run, confirm }) {
|
|
|
1023
1023
|
<li key={t.id} className={`kol-column-browser-row flex items-center gap-3 py-2 px-3 cursor-pointer transition-colors${sel.has(t.id) ? ' is-selected' : ''}`}
|
|
1024
1024
|
onClick={(e) => pick(e, t.id)}
|
|
1025
1025
|
onContextMenu={(e) => { if (!sel.has(t.id)) { anchor.current = t.id; setSel(new Set([t.id])) } menu.openAt(e, { ids: targetsFor(t.id) }) }}>
|
|
1026
|
-
<span className="w-5 shrink-0 flex items-center justify-center text-oq-48"><
|
|
1026
|
+
<span className="w-5 shrink-0 flex items-center justify-center text-oq-48"><IconLoader name={icon} size={icon === 'folder' ? 18 : 14} /></span>
|
|
1027
1027
|
<span className="kol-mono-12 min-w-0 truncate">{name}</span>
|
|
1028
1028
|
</li>
|
|
1029
1029
|
)
|
|
@@ -1035,8 +1035,8 @@ function TrashPanel({ trash, onClose, run, confirm }) {
|
|
|
1035
1035
|
const n = target.ids.length
|
|
1036
1036
|
return (
|
|
1037
1037
|
<>
|
|
1038
|
-
{trash.restore && <MenuRow iconLeft={<
|
|
1039
|
-
{trash.purge && <MenuRow iconLeft={<
|
|
1038
|
+
{trash.restore && <MenuRow iconLeft={<IconLoader name="refresh" size={14} />} onClick={() => restore(target.ids)}>{n > 1 ? `Restore ${n}` : 'Restore'}</MenuRow>}
|
|
1039
|
+
{trash.purge && <MenuRow iconLeft={<IconLoader name="trash" size={14} />} onClick={() => purge(target.ids)}>{n > 1 ? `Delete ${n} forever` : 'Delete forever'}</MenuRow>}
|
|
1040
1040
|
</>
|
|
1041
1041
|
)
|
|
1042
1042
|
}}
|
|
@@ -2451,7 +2451,7 @@ export function MediaLibraryBrowse({
|
|
|
2451
2451
|
{titleLevel && !hits ? (
|
|
2452
2452
|
<div className="grid gap-x-3 gap-y-5" style={{ gridTemplateColumns: `repeat(auto-fill, minmax(${tileSize}px, 1fr))` }}>
|
|
2453
2453
|
{rootItems.map((it) => (
|
|
2454
|
-
<MediaTile key={it.key} preview={<
|
|
2454
|
+
<MediaTile key={it.key} preview={<IconLoader name={it.icon} size="100%" className="text-oq-48" />} name={it.name}
|
|
2455
2455
|
selected={pickedBucket === it.key}
|
|
2456
2456
|
onClick={(e) => { e.stopPropagation(); setPickedBucket(it.key) }} onDoubleClick={it.open} />
|
|
2457
2457
|
))}
|
|
@@ -2665,7 +2665,7 @@ export function MediaLibraryBrowse({
|
|
|
2665
2665
|
item 7 left with nowhere to go. `caret={false}`: an icon trigger is
|
|
2666
2666
|
already complete, and neither reference draws a chevron on it. */}
|
|
2667
2667
|
<MenuItem
|
|
2668
|
-
label={<
|
|
2668
|
+
label={<IconLoader name="more" size={16} />}
|
|
2669
2669
|
caret={false}
|
|
2670
2670
|
align="end"
|
|
2671
2671
|
size="sm"
|
|
@@ -2698,7 +2698,7 @@ export function MediaLibraryBrowse({
|
|
|
2698
2698
|
close()
|
|
2699
2699
|
}}
|
|
2700
2700
|
shortcut={(settings.sortBy ?? 'name') === opt.value
|
|
2701
|
-
? <
|
|
2701
|
+
? <IconLoader name={settings.sortDir === 'desc' ? 'arrow-up' : 'arrow-down'} size={11} />
|
|
2702
2702
|
: undefined}
|
|
2703
2703
|
>
|
|
2704
2704
|
{opt.label}
|
|
@@ -2857,7 +2857,7 @@ export function MediaLibraryBrowse({
|
|
|
2857
2857
|
<>
|
|
2858
2858
|
<MenuDivider />
|
|
2859
2859
|
{custom.map((it) => (
|
|
2860
|
-
<MenuRow key={it.label} iconLeft={it.icon ? <
|
|
2860
|
+
<MenuRow key={it.label} iconLeft={it.icon ? <IconLoader name={it.icon} size={14} /> : undefined} onClick={() => runAction(() => it.run(target))}>{it.label}</MenuRow>
|
|
2861
2861
|
))}
|
|
2862
2862
|
</>
|
|
2863
2863
|
)
|
|
@@ -2867,17 +2867,17 @@ export function MediaLibraryBrowse({
|
|
|
2867
2867
|
<MenuRow disabled>{many.length} selected</MenuRow>
|
|
2868
2868
|
<MenuDivider />
|
|
2869
2869
|
{fa.move && (
|
|
2870
|
-
<MenuRow iconLeft={<
|
|
2870
|
+
<MenuRow iconLeft={<IconLoader name="arrow-right" size={14} />} onClick={() => doBatch(many, 'move', 'Move')}>Move {many.length} to…</MenuRow>
|
|
2871
2871
|
)}
|
|
2872
2872
|
{hasUrl && many.every((p) => !p.endsWith('/')) && (
|
|
2873
2873
|
<>
|
|
2874
|
-
<MenuRow iconLeft={<
|
|
2875
|
-
<MenuRow iconLeft={<
|
|
2876
|
-
{canTag && <MenuRow iconLeft={<
|
|
2874
|
+
<MenuRow iconLeft={<IconLoader name="copy" size={14} />} onClick={() => doCopyUrl(many)}>Copy {many.length} URLs</MenuRow>
|
|
2875
|
+
<MenuRow iconLeft={<IconLoader name="download" size={14} />} onClick={() => doDownload(many)}>Download {many.length}</MenuRow>
|
|
2876
|
+
{canTag && <MenuRow iconLeft={<IconLoader name="hash-01" size={14} />} onClick={() => doTags(many)}>Add tags to {many.length}…</MenuRow>}
|
|
2877
2877
|
</>
|
|
2878
2878
|
)}
|
|
2879
2879
|
{fa.remove && (
|
|
2880
|
-
<MenuRow iconLeft={<
|
|
2880
|
+
<MenuRow iconLeft={<IconLoader name="trash" size={14} />} onClick={() => doBatch(many, 'remove', 'Delete')}>Delete {many.length}</MenuRow>
|
|
2881
2881
|
)}
|
|
2882
2882
|
{customItems}
|
|
2883
2883
|
</>
|
|
@@ -2889,7 +2889,7 @@ export function MediaLibraryBrowse({
|
|
|
2889
2889
|
<>
|
|
2890
2890
|
{insFile && (!canInsert || canInsert(insFile)) && (
|
|
2891
2891
|
<>
|
|
2892
|
-
<MenuRow iconLeft={<
|
|
2892
|
+
<MenuRow iconLeft={<IconLoader name="plus" size={14} />} onClick={() => { onInsert(insFile); close() }}>Insert</MenuRow>
|
|
2893
2893
|
<MenuDivider />
|
|
2894
2894
|
</>
|
|
2895
2895
|
)}
|
|
@@ -2897,63 +2897,63 @@ export function MediaLibraryBrowse({
|
|
|
2897
2897
|
* phone — the menu (kol-fxr 2026-10-08). Only with `onPickFile`; others are unchanged. */}
|
|
2898
2898
|
{qlFile && (
|
|
2899
2899
|
<>
|
|
2900
|
-
<MenuRow iconLeft={<
|
|
2900
|
+
<MenuRow iconLeft={<IconLoader name="eye-on" size={14} />} onClick={() => openQuickLook({ files: [qlFile], index: 0 })}>Quick Look</MenuRow>
|
|
2901
2901
|
<MenuDivider />
|
|
2902
2902
|
</>
|
|
2903
2903
|
)}
|
|
2904
2904
|
{fa.createFolder && (
|
|
2905
|
-
<MenuRow iconLeft={<
|
|
2905
|
+
<MenuRow iconLeft={<IconLoader name="folder" size={14} />} onClick={() => doCreateFolder(isFolder ? target.path : (isLevel ? target.path : prefix))}>
|
|
2906
2906
|
New folder{isFolder ? ` in ${target.path.replace(/\/$/, '').split('/').pop()}` : ''}
|
|
2907
2907
|
</MenuRow>
|
|
2908
2908
|
)}
|
|
2909
2909
|
{/* NEW DOCUMENT is the writing page (a name, a type, fields for markdown); New file stays for
|
|
2910
2910
|
a client that cannot write text — it makes the empty file and nothing else */}
|
|
2911
2911
|
{canNewDoc ? (
|
|
2912
|
-
<MenuRow iconLeft={<
|
|
2912
|
+
<MenuRow iconLeft={<IconLoader name="file" size={14} />} onClick={() => newDocument(isFolder ? target.path : (isLevel ? target.path : prefix))}>
|
|
2913
2913
|
New document…
|
|
2914
2914
|
</MenuRow>
|
|
2915
2915
|
) : fa.createFile && (
|
|
2916
|
-
<MenuRow iconLeft={<
|
|
2916
|
+
<MenuRow iconLeft={<IconLoader name="file" size={14} />} onClick={() => doCreateFile(isFolder ? target.path : (isLevel ? target.path : prefix))}>
|
|
2917
2917
|
New file
|
|
2918
2918
|
</MenuRow>
|
|
2919
2919
|
)}
|
|
2920
2920
|
{dropFilesTo && !(target.type === 'file') && (
|
|
2921
|
-
<MenuRow iconLeft={<
|
|
2921
|
+
<MenuRow iconLeft={<IconLoader name="upload" size={14} />} onClick={() => doUpload(target.path)}>
|
|
2922
2922
|
{isFolder ? `Upload into ${target.path.replace(/\/$/, '').split('/').pop()}…` : 'Upload here…'}
|
|
2923
2923
|
</MenuRow>
|
|
2924
2924
|
)}
|
|
2925
2925
|
{!isLevel && <MenuDivider />}
|
|
2926
2926
|
{!isLevel && fa.rename && (
|
|
2927
|
-
<MenuRow iconLeft={<
|
|
2927
|
+
<MenuRow iconLeft={<IconLoader name="edit" size={14} />} onClick={() => doRename(target.path, isFolder)}>Rename</MenuRow>
|
|
2928
2928
|
)}
|
|
2929
2929
|
{!isLevel && fa.move && (
|
|
2930
|
-
<MenuRow iconLeft={<
|
|
2930
|
+
<MenuRow iconLeft={<IconLoader name="arrow-right" size={14} />} onClick={() => doMove(target.path)}>Move to…</MenuRow>
|
|
2931
2931
|
)}
|
|
2932
2932
|
{/* A FOLDER GETS COPY URL TOO (user 2026-09-23) — through the SAME `mediaUrl`
|
|
2933
2933
|
seam a file goes through, so what a folder URL means is the consumer's call
|
|
2934
2934
|
(a CDN prefix, a listing, a signed path) and never this page's guess. No
|
|
2935
2935
|
Download: a folder is not an object to fetch. */}
|
|
2936
2936
|
{hasUrl && !isLevel && (
|
|
2937
|
-
<MenuRow iconLeft={<
|
|
2937
|
+
<MenuRow iconLeft={<IconLoader name="copy" size={14} />} onClick={() => doCopyUrl([target.path])}>Copy URL</MenuRow>
|
|
2938
2938
|
)}
|
|
2939
2939
|
{hasUrl && target.type === 'file' && (
|
|
2940
|
-
<MenuRow iconLeft={<
|
|
2940
|
+
<MenuRow iconLeft={<IconLoader name="download" size={14} />} onClick={() => doDownload([target.path])}>Download</MenuRow>
|
|
2941
2941
|
)}
|
|
2942
2942
|
{!isLevel && canTag && (
|
|
2943
|
-
<MenuRow iconLeft={<
|
|
2943
|
+
<MenuRow iconLeft={<IconLoader name="hash-01" size={14} />} onClick={() => doTags([target.path])}>Tags…</MenuRow>
|
|
2944
2944
|
)}
|
|
2945
2945
|
{!isLevel && canFavourite && (
|
|
2946
|
-
<MenuRow iconLeft={<
|
|
2946
|
+
<MenuRow iconLeft={<IconLoader name={isFavourite(target.path) ? 'star-solid' : 'star'} size={14} />} onClick={() => toggleFavourite(target.path)}>
|
|
2947
2947
|
{isFavourite(target.path) ? 'Remove from favourites' : 'Add to favourites'}
|
|
2948
2948
|
</MenuRow>
|
|
2949
2949
|
)}
|
|
2950
2950
|
{target.type === 'file' && canEdit && editKindOf(target.o ?? { key: target.path }) && (
|
|
2951
|
-
<MenuRow iconLeft={<
|
|
2951
|
+
<MenuRow iconLeft={<IconLoader name="edit" size={14} />} onClick={() => openEditor(objects.find((o) => o.key === target.path) ?? { key: target.path })}>Edit</MenuRow>
|
|
2952
2952
|
)}
|
|
2953
2953
|
{!isLevel && fa.remove && (
|
|
2954
2954
|
<>
|
|
2955
2955
|
<MenuDivider />
|
|
2956
|
-
<MenuRow iconLeft={<
|
|
2956
|
+
<MenuRow iconLeft={<IconLoader name="trash" size={14} />} onClick={() => doDelete(target.path, isFolder)}>Delete</MenuRow>
|
|
2957
2957
|
</>
|
|
2958
2958
|
)}
|
|
2959
2959
|
{customItems}
|
|
@@ -3119,7 +3119,7 @@ export function WallBody({
|
|
|
3119
3119
|
onClick={(e) => { if (!e.target.closest('[data-marquee-key]')) onBackgroundClick?.() }}>
|
|
3120
3120
|
{marquee?.rect && <div className="kol-marquee" style={marquee.rect} />}
|
|
3121
3121
|
{folders.map((path) => (
|
|
3122
|
-
<MediaTile key={path} markKey={path} preview={<
|
|
3122
|
+
<MediaTile key={path} markKey={path} preview={<IconLoader name="folder" size="100%" className="text-oq-48" />}
|
|
3123
3123
|
name={path.replace(/\/$/, '').split('/').pop()} selected={isSelected(path)}
|
|
3124
3124
|
onContextMenu={onFolderContextMenu ? (e) => onFolderContextMenu(e, path) : undefined}
|
|
3125
3125
|
onDoubleClick={() => onOpenFolder?.(path)}
|
|
@@ -3385,7 +3385,7 @@ export function MediaLibraryLibrary({
|
|
|
3385
3385
|
<>
|
|
3386
3386
|
<div className="hidden md:flex items-center gap-6"><ViewToggle viewMode={layout} onViewChange={setLayout} variant="icon" options={LAYOUT_OPTIONS} /></div>
|
|
3387
3387
|
<div className="md:hidden">
|
|
3388
|
-
<MenuItem label={<
|
|
3388
|
+
<MenuItem label={<IconLoader name="more" size={16} />} caret={false} align="end" size="sm" buttonClassName="shrink-0 px-2">
|
|
3389
3389
|
{({ close }) => (
|
|
3390
3390
|
<div className="py-1 w-[200px]">
|
|
3391
3391
|
{LAYOUT_OPTIONS.map((opt) => (
|
|
@@ -3393,7 +3393,7 @@ export function MediaLibraryLibrary({
|
|
|
3393
3393
|
))}
|
|
3394
3394
|
<MenuDivider />
|
|
3395
3395
|
{SORT_OPTIONS.map((opt) => (
|
|
3396
|
-
<MenuRow key={opt.value} onClick={() => { handleSort(opt.value); close() }} shortcut={sortBy === opt.value ? <
|
|
3396
|
+
<MenuRow key={opt.value} onClick={() => { handleSort(opt.value); close() }} shortcut={sortBy === opt.value ? <IconLoader name={sortDir === 'desc' ? 'arrow-down' : 'arrow-up'} size={11} /> : undefined}>{opt.label}</MenuRow>
|
|
3397
3397
|
))}
|
|
3398
3398
|
</div>
|
|
3399
3399
|
)}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useEffect, useState } from 'react'
|
|
2
2
|
import useEmblaCarousel from 'embla-carousel-react'
|
|
3
|
-
import {
|
|
3
|
+
import { IconLoader } from '@kolkrabbi/kol-icons'
|
|
4
4
|
import FullscreenOverlay from '../molecules/FullscreenOverlay.jsx'
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -105,7 +105,7 @@ function ViewerStage({ media, index, onIndexChange }) {
|
|
|
105
105
|
aria-label="Previous"
|
|
106
106
|
onClick={(e) => { e.stopPropagation(); emblaApi?.scrollPrev() }}
|
|
107
107
|
>
|
|
108
|
-
<
|
|
108
|
+
<IconLoader name="chevron-left" size={20} />
|
|
109
109
|
</button>
|
|
110
110
|
<button
|
|
111
111
|
type="button"
|
|
@@ -113,7 +113,7 @@ function ViewerStage({ media, index, onIndexChange }) {
|
|
|
113
113
|
aria-label="Next"
|
|
114
114
|
onClick={(e) => { e.stopPropagation(); emblaApi?.scrollNext() }}
|
|
115
115
|
>
|
|
116
|
-
<
|
|
116
|
+
<IconLoader name="chevron-right" size={20} />
|
|
117
117
|
</button>
|
|
118
118
|
</>
|
|
119
119
|
)}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useEffect, useState } from 'react'
|
|
2
|
-
import {
|
|
2
|
+
import { IconLoader } from '@kolkrabbi/kol-icons'
|
|
3
3
|
import TreeRow from '../molecules/TreeRow.jsx'
|
|
4
4
|
|
|
5
5
|
/* taxonomy-ok: organism — nests TreeRow (molecule) + kol-icons's Icon. */
|
|
@@ -40,7 +40,7 @@ export default function NavDrawer({ open, onClose, title, items = [], currentPat
|
|
|
40
40
|
<span className="kol-float-body min-w-0 flex-1 truncate text-fg-emphasis">{title}</span>
|
|
41
41
|
{onClose && (
|
|
42
42
|
<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)]">
|
|
43
|
-
<
|
|
43
|
+
<IconLoader name="x" size={16} />
|
|
44
44
|
</button>
|
|
45
45
|
)}
|
|
46
46
|
</div>
|
|
@@ -13,7 +13,7 @@ import { GRAB } from '../utilities/motion.js'
|
|
|
13
13
|
* 2026-08-30: two rails on one screen felt different because each package had
|
|
14
14
|
* built the gesture itself). It lived here until then. */
|
|
15
15
|
import useGrabEdge from '../hooks/useGrabEdge.js'
|
|
16
|
-
import {
|
|
16
|
+
import { IconLoader } from '@kolkrabbi/kol-icons'
|
|
17
17
|
import VectorLoader from '../atoms/VectorLoader.jsx'
|
|
18
18
|
import { useRailSlot } from '../hooks/railSlot.jsx'
|
|
19
19
|
import { RAIL_ROW } from '../hooks/railRow.js'
|