@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.
Files changed (71) 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 +7 -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 +1 -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/ModalHeader.jsx +2 -2
  37. package/src/molecules/MultiSelect.jsx +2 -2
  38. package/src/molecules/OptionRow.jsx +2 -2
  39. package/src/molecules/PasswordInput.jsx +2 -2
  40. package/src/molecules/ProfileCard.jsx +2 -2
  41. package/src/molecules/QuantityInput.jsx +3 -3
  42. package/src/molecules/QuickLookFrame.jsx +2 -2
  43. package/src/molecules/QuickLookHeader.jsx +4 -4
  44. package/src/molecules/ReadingChapterNav.jsx +3 -3
  45. package/src/molecules/SearchInput.jsx +5 -5
  46. package/src/molecules/SectionCardItem.jsx +4 -4
  47. package/src/molecules/ShapeDropdown.jsx +2 -2
  48. package/src/molecules/SplitToolButton.jsx +4 -4
  49. package/src/molecules/StepList.jsx +3 -3
  50. package/src/molecules/Stepper.jsx +5 -5
  51. package/src/molecules/SwatchControls.jsx +3 -3
  52. package/src/molecules/TabsRow.jsx +8 -8
  53. package/src/molecules/TaskRow.jsx +2 -2
  54. package/src/molecules/TreeRow.jsx +3 -3
  55. package/src/organisms/AppItemMenuProvider.jsx +2 -2
  56. package/src/organisms/ColorPickerPopover.jsx +2 -2
  57. package/src/organisms/ColumnBrowser.jsx +22 -18
  58. package/src/organisms/CommandOverlay.jsx +2 -2
  59. package/src/organisms/ContentFilters.jsx +2 -2
  60. package/src/organisms/LayerStack.jsx +3 -3
  61. package/src/organisms/MediaLibrary.jsx +11 -11
  62. package/src/organisms/MediaLibraryPages.jsx +35 -35
  63. package/src/organisms/MediaViewer.jsx +3 -3
  64. package/src/organisms/NavDrawer.jsx +2 -2
  65. package/src/organisms/NavRail.jsx +1 -1
  66. package/src/organisms/NavRailFloat.jsx +5 -5
  67. package/src/organisms/NavRailSite.jsx +5 -5
  68. package/src/organisms/Rail.jsx +1 -1
  69. package/src/organisms/RecordManager.jsx +3 -3
  70. package/src/organisms/Table.jsx +3 -3
  71. package/src/organisms/ToolPalette.jsx +2 -2
@@ -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
@@ -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'