@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.
Files changed (74) hide show
  1. package/README.md +1 -1
  2. package/package.json +5 -5
  3. package/src/atoms/Badge.jsx +2 -2
  4. package/src/atoms/Button.jsx +2 -2
  5. package/src/atoms/Delta.jsx +2 -2
  6. package/src/atoms/FileIcon.jsx +2 -2
  7. package/src/atoms/IconFrame.jsx +2 -2
  8. package/src/atoms/IconPlate.jsx +1 -1
  9. package/src/atoms/IconToggle.jsx +2 -2
  10. package/src/atoms/Input.jsx +4 -4
  11. package/src/atoms/Kbd.jsx +2 -2
  12. package/src/atoms/Label.jsx +2 -2
  13. package/src/atoms/SectionLabel.jsx +4 -4
  14. package/src/atoms/SizeOrDownload.jsx +2 -2
  15. package/src/atoms/SortHeader.jsx +2 -2
  16. package/src/atoms/Tag.jsx +3 -3
  17. package/src/atoms/Textarea.jsx +2 -2
  18. package/src/atoms/ValueField.jsx +2 -2
  19. package/src/atoms/ViewToggle.jsx +3 -3
  20. package/src/index.js +2 -1
  21. package/src/molecules/ActionButton.jsx +3 -3
  22. package/src/molecules/AlignmentGrid.jsx +2 -2
  23. package/src/molecules/AppItem.jsx +4 -4
  24. package/src/molecules/CloseButton.jsx +2 -2
  25. package/src/molecules/ColorInputRow.jsx +2 -2
  26. package/src/molecules/ContentRow.jsx +2 -2
  27. package/src/molecules/DocFrontmatter.jsx +2 -2
  28. package/src/molecules/Dropdown.jsx +4 -4
  29. package/src/molecules/EmblaNav.jsx +3 -3
  30. package/src/molecules/FieldRow.jsx +6 -6
  31. package/src/molecules/LayerRow.jsx +2 -2
  32. package/src/molecules/LinkAddRow.jsx +2 -2
  33. package/src/molecules/Menu.jsx +2 -2
  34. package/src/molecules/MenuItem.jsx +6 -6
  35. package/src/molecules/MenuList.jsx +2 -2
  36. package/src/molecules/Modal.jsx +50 -51
  37. package/src/molecules/ModalHeader.jsx +2 -2
  38. package/src/molecules/ModalShell.jsx +48 -0
  39. package/src/molecules/MultiSelect.jsx +2 -2
  40. package/src/molecules/OptionRow.jsx +2 -2
  41. package/src/molecules/PasswordInput.jsx +2 -2
  42. package/src/molecules/ProfileCard.jsx +2 -2
  43. package/src/molecules/QuantityInput.jsx +3 -3
  44. package/src/molecules/QuickLookFrame.jsx +24 -18
  45. package/src/molecules/QuickLookHeader.jsx +4 -4
  46. package/src/molecules/ReadingChapterNav.jsx +3 -3
  47. package/src/molecules/SearchInput.jsx +5 -5
  48. package/src/molecules/SectionCardItem.jsx +4 -4
  49. package/src/molecules/ShapeDropdown.jsx +2 -2
  50. package/src/molecules/SplitToolButton.jsx +4 -4
  51. package/src/molecules/StepList.jsx +3 -3
  52. package/src/molecules/Stepper.jsx +5 -5
  53. package/src/molecules/SwatchControls.jsx +3 -3
  54. package/src/molecules/TabsRow.jsx +8 -8
  55. package/src/molecules/TaskRow.jsx +2 -2
  56. package/src/molecules/TreeRow.jsx +3 -3
  57. package/src/organisms/AppItemMenuProvider.jsx +2 -2
  58. package/src/organisms/ColorPickerPopover.jsx +2 -2
  59. package/src/organisms/ColumnBrowser.jsx +8 -8
  60. package/src/organisms/CommandOverlay.jsx +2 -2
  61. package/src/organisms/ContentFilters.jsx +2 -2
  62. package/src/organisms/LayerStack.jsx +3 -3
  63. package/src/organisms/MediaLibrary.jsx +23 -22
  64. package/src/organisms/MediaLibraryPages.jsx +35 -35
  65. package/src/organisms/MediaViewer.jsx +3 -3
  66. package/src/organisms/NavDrawer.jsx +2 -2
  67. package/src/organisms/NavRail.jsx +1 -1
  68. package/src/organisms/NavRailFloat.jsx +5 -5
  69. package/src/organisms/NavRailSite.jsx +5 -5
  70. package/src/organisms/Rail.jsx +1 -1
  71. package/src/organisms/RecordManager.jsx +3 -3
  72. package/src/organisms/SettingsPanel.jsx +11 -7
  73. package/src/organisms/Table.jsx +3 -3
  74. package/src/organisms/ToolPalette.jsx +2 -2
@@ -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 { Icon } from '@kolkrabbi/kol-icons'
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
- <Icon name="chevron-right" size={12} />
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'}`}><Icon name={icon} size={glyphSize(size)} /></span>
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 ?? <Icon name={kindOf(o) === 'image' ? 'image' : 'file'} size={glyphSize(size)} />}
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
- <Icon name={icon} size="100%" className="text-oq-48" />
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 && <Icon name={sortDir === 'desc' ? 'arrow-up' : 'arrow-down'} size={9} />}
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"><Icon name={icon} size={icon === 'folder' ? 18 : 14} /></span>
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={<Icon name="refresh" size={14} />} onClick={() => restore(target.ids)}>{n > 1 ? `Restore ${n}` : 'Restore'}</MenuRow>}
1039
- {trash.purge && <MenuRow iconLeft={<Icon name="trash" size={14} />} onClick={() => purge(target.ids)}>{n > 1 ? `Delete ${n} forever` : 'Delete forever'}</MenuRow>}
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={<Icon name={it.icon} size="100%" className="text-oq-48" />} name={it.name}
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={<Icon name="more" size={16} />}
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
- ? <Icon name={settings.sortDir === 'desc' ? 'arrow-up' : 'arrow-down'} size={11} />
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 ? <Icon name={it.icon} size={14} /> : undefined} onClick={() => runAction(() => it.run(target))}>{it.label}</MenuRow>
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={<Icon name="arrow-right" size={14} />} onClick={() => doBatch(many, 'move', 'Move')}>Move {many.length} to…</MenuRow>
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={<Icon name="copy" size={14} />} onClick={() => doCopyUrl(many)}>Copy {many.length} URLs</MenuRow>
2875
- <MenuRow iconLeft={<Icon name="download" size={14} />} onClick={() => doDownload(many)}>Download {many.length}</MenuRow>
2876
- {canTag && <MenuRow iconLeft={<Icon name="hash-01" size={14} />} onClick={() => doTags(many)}>Add tags to {many.length}…</MenuRow>}
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={<Icon name="trash" size={14} />} onClick={() => doBatch(many, 'remove', 'Delete')}>Delete {many.length}</MenuRow>
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={<Icon name="plus" size={14} />} onClick={() => { onInsert(insFile); close() }}>Insert</MenuRow>
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={<Icon name="eye-on" size={14} />} onClick={() => openQuickLook({ files: [qlFile], index: 0 })}>Quick Look</MenuRow>
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={<Icon name="folder" size={14} />} onClick={() => doCreateFolder(isFolder ? target.path : (isLevel ? target.path : prefix))}>
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={<Icon name="file" size={14} />} onClick={() => newDocument(isFolder ? target.path : (isLevel ? target.path : prefix))}>
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={<Icon name="file" size={14} />} onClick={() => doCreateFile(isFolder ? target.path : (isLevel ? target.path : prefix))}>
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={<Icon name="upload" size={14} />} onClick={() => doUpload(target.path)}>
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={<Icon name="edit" size={14} />} onClick={() => doRename(target.path, isFolder)}>Rename</MenuRow>
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={<Icon name="arrow-right" size={14} />} onClick={() => doMove(target.path)}>Move to…</MenuRow>
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={<Icon name="copy" size={14} />} onClick={() => doCopyUrl([target.path])}>Copy URL</MenuRow>
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={<Icon name="download" size={14} />} onClick={() => doDownload([target.path])}>Download</MenuRow>
2940
+ <MenuRow iconLeft={<IconLoader name="download" size={14} />} onClick={() => doDownload([target.path])}>Download</MenuRow>
2941
2941
  )}
2942
2942
  {!isLevel && canTag && (
2943
- <MenuRow iconLeft={<Icon name="hash-01" size={14} />} onClick={() => doTags([target.path])}>Tags…</MenuRow>
2943
+ <MenuRow iconLeft={<IconLoader name="hash-01" size={14} />} onClick={() => doTags([target.path])}>Tags…</MenuRow>
2944
2944
  )}
2945
2945
  {!isLevel && canFavourite && (
2946
- <MenuRow iconLeft={<Icon name={isFavourite(target.path) ? 'star-solid' : 'star'} size={14} />} onClick={() => toggleFavourite(target.path)}>
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={<Icon name="edit" size={14} />} onClick={() => openEditor(objects.find((o) => o.key === target.path) ?? { key: target.path })}>Edit</MenuRow>
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={<Icon name="trash" size={14} />} onClick={() => doDelete(target.path, isFolder)}>Delete</MenuRow>
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={<Icon name="folder" size="100%" className="text-oq-48" />}
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={<Icon name="more" size={16} />} caret={false} align="end" size="sm" buttonClassName="shrink-0 px-2">
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 ? <Icon name={sortDir === 'desc' ? 'arrow-down' : 'arrow-up'} size={11} /> : undefined}>{opt.label}</MenuRow>
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 { Icon } from '@kolkrabbi/kol-icons'
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
- <Icon name="chevron-left" size={20} />
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
- <Icon name="chevron-right" size={20} />
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 { Icon } from '@kolkrabbi/kol-icons'
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
- <Icon name="x" size={16} />
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 { Icon } from '@kolkrabbi/kol-icons'
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'
@@ -1,5 +1,5 @@
1
1
  import { useState } from 'react'
2
- import { Icon } from '@kolkrabbi/kol-icons'
2
+ import { IconLoader } from '@kolkrabbi/kol-icons'
3
3
  import Kbd from '../atoms/Kbd.jsx'
4
4
  import TreeRow from '../molecules/TreeRow.jsx'
5
5
  import { Tooltip } from '../utilities/Popover.jsx'
@@ -53,7 +53,7 @@ export default function NavRailFloat({ items = [], currentPath = '', onNavigate,
53
53
  <Tooltip key={key} label={label} placement="right" variant="float" asChild>
54
54
  <button type="button" aria-label={label} aria-current={on ? 'page' : undefined} onClick={onClick}
55
55
  className={`relative inline-flex size-11 shrink-0 items-center justify-center rounded-full cursor-pointer focus-visible:outline-none focus-visible:shadow-[var(--kol-float-focus)] ${on ? 'bg-fg-16 text-oq-96' : well ? 'bg-[var(--kol-float-well)] text-oq-64 hover:text-oq-96' : 'text-oq-64 hover:bg-fg-08 hover:text-oq-96'}`}>
56
- <Icon name={glyph} size={well ? 18 : 20} />
56
+ <IconLoader name={glyph} size={well ? 18 : 20} />
57
57
  </button>
58
58
  </Tooltip>
59
59
  )
@@ -83,14 +83,14 @@ export default function NavRailFloat({ items = [], currentPath = '', onNavigate,
83
83
  <nav aria-label="Navigation" style={motionStyle} className={`kol-float-rail flex h-full w-[280px] flex-col gap-3 rounded-[var(--kol-float-menu-r)] bg-surface-secondary shadow-[var(--kol-shadow-float)] p-3 ${className}`.trim()}>
84
84
  {switcher ?? (title && (
85
85
  <button type="button" onClick={onSwitch} className="flex h-10 w-full items-center gap-2.5 rounded-[var(--kol-float-list-r)] px-2.5 text-left cursor-pointer hover:bg-fg-08 focus-visible:outline-none focus-visible:shadow-[var(--kol-float-focus)]">
86
- <Icon name={icon} size={18} className="shrink-0 text-oq-96" />
86
+ <IconLoader name={icon} size={18} className="shrink-0 text-oq-96" />
87
87
  <span className="kol-float-body-lg min-w-0 flex-1 truncate text-fg-emphasis">{title}</span>
88
- {onSwitch && <Icon name="chevron-down" size={14} className="shrink-0 text-oq-64" />}
88
+ {onSwitch && <IconLoader name="chevron-down" size={14} className="shrink-0 text-oq-64" />}
89
89
  </button>
90
90
  ))}
91
91
  {onSearch && (
92
92
  <button type="button" onClick={onSearch} className="flex h-[var(--kol-float-h-md)] w-full items-center gap-2.5 rounded-full bg-[var(--kol-float-well)] pl-3 pr-2 text-left cursor-pointer hover:bg-fg-08 focus-visible:outline-none focus-visible:shadow-[var(--kol-float-focus)]">
93
- <Icon name="search" size={16} className="shrink-0 text-oq-64" />
93
+ <IconLoader name="search" size={16} className="shrink-0 text-oq-64" />
94
94
  <span className="kol-float-hint min-w-0 flex-1 truncate text-fg-64">Search pages</span>
95
95
  <Kbd size="sm" icon="command">K</Kbd>
96
96
  </button>
@@ -1,6 +1,6 @@
1
1
  import { useEffect, useLayoutEffect, useRef, useState } from 'react'
2
2
  import { createPortal } from 'react-dom'
3
- import { Icon } from '@kolkrabbi/kol-icons'
3
+ import { IconLoader } from '@kolkrabbi/kol-icons'
4
4
  import { Tooltip } from '../utilities/Popover.jsx'
5
5
  import useDragResize from '../hooks/useDragResize.js'
6
6
  import useScrollFade from '../hooks/useScrollFade.js'
@@ -260,14 +260,14 @@ export default function NavRailSite({
260
260
  const tailOf = (node) => (node.trailing != null || node.external) && (
261
261
  <>
262
262
  {node.trailing != null && <span className="shrink-0 text-subtle">{node.trailing}</span>}
263
- {node.external && <span className="shrink-0 inline-flex text-subtle" aria-hidden="true"><Icon name="external-link" size={10} /></span>}
263
+ {node.external && <span className="shrink-0 inline-flex text-subtle" aria-hidden="true"><IconLoader name="external-link" size={10} /></span>}
264
264
  </>
265
265
  )
266
266
  /* the tree fades where it clips — the head once scrolled, the foot while more lies below (kol-theme `.kol-scroll-fade`;
267
267
  * TimeSetAndSiteRailFade, 2026-10-29) */
268
268
  const scrollRef = useRef(null)
269
269
  useScrollFade(scrollRef, fade)
270
- const Glyph = iconComponent ?? Icon
270
+ const Glyph = iconComponent ?? IconLoader
271
271
  const isPageActive = (to) => (isActive ? isActive(to) : pathname === to)
272
272
  /* a leaf is lit by its route, or — an action leaf — by its own `active` */
273
273
  const isLeafActive = (leaf) => (leaf.onSelect ? !!leaf.active : isPageActive(leaf.to))
@@ -537,7 +537,7 @@ export default function NavRailSite({
537
537
  aria-label={isOpen ? `Collapse ${cat.label}` : `Expand ${cat.label}`}
538
538
  onClick={() => (collapsed ? (expandOnSelect && toggleCollapsed(), discloseCat(cat.id)) : toggleCat(cat.id))}
539
539
  >
540
- <span className={`kol-sidenav-hop-chevron${isOpen ? '' : ' -rotate-90'}`}><Icon name="chevron-down" size={12} /></span>
540
+ <span className={`kol-sidenav-hop-chevron${isOpen ? '' : ' -rotate-90'}`}><IconLoader name="chevron-down" size={12} /></span>
541
541
  </button>
542
542
  <RouteLeaf {...leafProps(cat.to)} title={cat.title} onPress={discloseOnTitle ? () => discloseCat(cat.id) : undefined} className={(active) => `${rowCls} kol-sidenav-hop--split${(active || isActiveCat(cat)) ? ' is-active' : ''}`}>
543
543
  {glyph}
@@ -603,7 +603,7 @@ export default function NavRailSite({
603
603
  className={`kol-sidenav-hop-caret${isOpen ? '' : ' -rotate-90'}`}
604
604
  aria-hidden="true"
605
605
  >
606
- <Icon name="chevron-down" size={12} />
606
+ <IconLoader name="chevron-down" size={12} />
607
607
  </span>
608
608
  </button>
609
609
  )
@@ -1,7 +1,7 @@
1
1
  import { useEffect, useRef, useState } from 'react'
2
2
  import { pushLayer, popLayer, isTopLayer } from '../utilities/layerStack.js'
3
3
  import { createPortal } from 'react-dom'
4
- import { Icon } from '@kolkrabbi/kol-icons'
4
+ import { IconLoader } from '@kolkrabbi/kol-icons'
5
5
  import CloseButton from '../molecules/CloseButton.jsx'
6
6
  import Divider from '../atoms/Divider.jsx'
7
7
  import usePrefersReducedMotion from '../hooks/usePrefersReducedMotion.js'
@@ -1,6 +1,6 @@
1
1
  import { useMemo, useRef, useState } from 'react'
2
2
  import { createPortal } from 'react-dom'
3
- import { Icon } from '@kolkrabbi/kol-icons'
3
+ import { IconLoader } from '@kolkrabbi/kol-icons'
4
4
  import Button from '../atoms/Button.jsx'
5
5
  import SearchInput from '../molecules/SearchInput.jsx'
6
6
  import ToggleCheckbox from '../atoms/ToggleCheckbox.jsx'
@@ -30,7 +30,7 @@ const ToolbarIcon = ({ name, label, onClick, active = false, triggerClassName })
30
30
  * frames 2026-08-09): the reference icons nearly fill their box. */
31
31
  className={`inline-flex cursor-pointer rounded-sm border-0 p-0.5 transition-colors duration-150 ${active ? 'bg-fg-08 text-emphasis' : 'bg-transparent text-oq-64 hover:text-emphasis'}`}
32
32
  >
33
- <Icon name={name} size={20} />
33
+ <IconLoader name={name} size={20} />
34
34
  </button>
35
35
  </Tooltip>
36
36
  )
@@ -231,7 +231,7 @@ export default function RecordManager({
231
231
  className="inline-flex w-4 cursor-grab touch-none justify-center border-0 bg-transparent p-0 text-oq-48 hover:text-emphasis"
232
232
  onPointerDown={(e) => startDrag(e, i)}
233
233
  >
234
- <Icon name="drag-handle" size={16} />
234
+ <IconLoader name="drag-handle" size={16} />
235
235
  </button>
236
236
  )}
237
237
  <ToggleCheckbox
@@ -7,6 +7,7 @@ import LabeledControl from '../molecules/LabeledControl.jsx'
7
7
  import ToggleSwitch from '../atoms/ToggleSwitch.jsx'
8
8
  import Rail from './Rail.jsx'
9
9
  import FullscreenOverlay from '../molecules/FullscreenOverlay.jsx'
10
+ import ModalShell from '../molecules/ModalShell.jsx'
10
11
  import { Tooltip } from '../utilities/Popover.jsx'
11
12
  import { RailHeader } from './RailKit.jsx'
12
13
 
@@ -97,16 +98,19 @@ export default function SettingsPanel({
97
98
  const width = widthProp ?? 'min(32rem, calc(100vw - 32px))'
98
99
  return (
99
100
  <FullscreenOverlay open scrim closeButton={false} onClose={onClose}>
100
- <div
101
- className={`kol-overlay-panel flex flex-col p-[var(--kol-pad-overlay)] ${className}`}
101
+ {/* the panel is ModalShell's (W2.2, 2026-11-08) — the lift and the one modal radius; ShortcutsOverlay draws here */}
102
+ <ModalShell
103
+ className={`p-[var(--kol-pad-overlay)] ${className}`}
102
104
  style={{ width: typeof width === 'number' ? `${width}px` : width, maxWidth: '100%', maxHeight: '85vh', overflowY: 'auto' }}
105
+ header={(
106
+ <div className="mb-6 flex items-center gap-4">
107
+ <div className="min-w-0 flex-1">{header}</div>
108
+ <CloseButton onClick={onClose} hover={false} className="shrink-0" />
109
+ </div>
110
+ )}
103
111
  >
104
- <div className="mb-6 flex items-center gap-4">
105
- <div className="min-w-0 flex-1">{header}</div>
106
- <CloseButton onClick={onClose} hover={false} className="shrink-0" />
107
- </div>
108
112
  <div className="flex flex-col gap-4"><Divider />{body}{footer && <div className="mt-2">{footer}</div>}</div>
109
- </div>
113
+ </ModalShell>
110
114
  </FullscreenOverlay>
111
115
  )
112
116
  }
@@ -1,5 +1,5 @@
1
1
  import { useMemo, useState } from 'react'
2
- import { Icon } from '@kolkrabbi/kol-icons'
2
+ import { IconLoader } from '@kolkrabbi/kol-icons'
3
3
  import { INDICATOR } from '../hooks/glyphLadders.js'
4
4
 
5
5
  /**
@@ -93,7 +93,7 @@ const Table = ({ caption, columns, rows, variant = 'default', className = '', wi
93
93
  onClick={() => cycle(column.accessor)}
94
94
  >
95
95
  {column.header}
96
- <Icon
96
+ <IconLoader
97
97
  name={sort.key === column.accessor && sort.dir === 'desc' ? 'chevron-down' : 'chevron-up'}
98
98
  size={INDICATOR.sm}
99
99
  className={sort.key === column.accessor ? 'opacity-100' : 'opacity-0 group-hover:opacity-40'}
@@ -138,7 +138,7 @@ function FloatTable({ caption, columns, rows, sort, cycle, framed, rowClassName,
138
138
  {c.sortable ? (
139
139
  <button type="button" onClick={() => cycle(c.accessor)} className="inline-flex items-center gap-1 uppercase cursor-pointer">
140
140
  {c.header}
141
- <Icon name={sort.key === c.accessor && sort.dir === 'desc' ? 'arrow-down' : 'arrow-up'} size={10} className={sort.key === c.accessor ? 'text-oq-96' : 'opacity-0'} />
141
+ <IconLoader name={sort.key === c.accessor && sort.dir === 'desc' ? 'arrow-down' : 'arrow-up'} size={10} className={sort.key === c.accessor ? 'text-oq-96' : 'opacity-0'} />
142
142
  </button>
143
143
  ) : c.header}
144
144
  </th>
@@ -1,4 +1,4 @@
1
- import { Icon } from '@kolkrabbi/kol-icons'
1
+ import { IconLoader } from '@kolkrabbi/kol-icons'
2
2
  import Button from '../atoms/Button.jsx'
3
3
  import Divider from '../atoms/Divider.jsx'
4
4
  import SplitToolButton from '../molecules/SplitToolButton.jsx'
@@ -42,7 +42,7 @@ const ToolPalette = ({
42
42
  onAction,
43
43
  orientation = 'horizontal',
44
44
  size = 'md',
45
- iconComponent = Icon,
45
+ iconComponent = IconLoader,
46
46
  className = '',
47
47
  }) => {
48
48
  const vertical = orientation === 'vertical'