@kolkrabbi/kol-component 0.354.0 → 0.355.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +5 -5
- package/src/atoms/Badge.jsx +2 -2
- package/src/atoms/Button.jsx +2 -2
- package/src/atoms/Delta.jsx +2 -2
- package/src/atoms/FileIcon.jsx +2 -2
- package/src/atoms/IconFrame.jsx +2 -2
- package/src/atoms/IconPlate.jsx +1 -1
- package/src/atoms/IconToggle.jsx +2 -2
- package/src/atoms/Input.jsx +4 -4
- package/src/atoms/Kbd.jsx +2 -2
- package/src/atoms/Label.jsx +2 -2
- package/src/atoms/SectionLabel.jsx +4 -4
- package/src/atoms/SizeOrDownload.jsx +2 -2
- package/src/atoms/SortHeader.jsx +2 -2
- package/src/atoms/Tag.jsx +3 -3
- package/src/atoms/Textarea.jsx +2 -2
- package/src/atoms/ValueField.jsx +2 -2
- package/src/atoms/ViewToggle.jsx +3 -3
- package/src/index.js +1 -1
- package/src/molecules/ActionButton.jsx +3 -3
- package/src/molecules/AlignmentGrid.jsx +2 -2
- package/src/molecules/AppItem.jsx +4 -4
- package/src/molecules/CloseButton.jsx +2 -2
- package/src/molecules/ColorInputRow.jsx +2 -2
- package/src/molecules/ContentRow.jsx +2 -2
- package/src/molecules/DocFrontmatter.jsx +2 -2
- package/src/molecules/Dropdown.jsx +4 -4
- package/src/molecules/EmblaNav.jsx +3 -3
- package/src/molecules/FieldRow.jsx +6 -6
- package/src/molecules/LayerRow.jsx +2 -2
- package/src/molecules/LinkAddRow.jsx +2 -2
- package/src/molecules/Menu.jsx +2 -2
- package/src/molecules/MenuItem.jsx +6 -6
- package/src/molecules/MenuList.jsx +2 -2
- package/src/molecules/ModalHeader.jsx +2 -2
- package/src/molecules/MultiSelect.jsx +2 -2
- package/src/molecules/OptionRow.jsx +2 -2
- package/src/molecules/PasswordInput.jsx +2 -2
- package/src/molecules/ProfileCard.jsx +2 -2
- package/src/molecules/QuantityInput.jsx +3 -3
- package/src/molecules/QuickLookFrame.jsx +2 -2
- package/src/molecules/QuickLookHeader.jsx +4 -4
- package/src/molecules/ReadingChapterNav.jsx +3 -3
- package/src/molecules/SearchInput.jsx +5 -5
- package/src/molecules/SectionCardItem.jsx +4 -4
- package/src/molecules/ShapeDropdown.jsx +2 -2
- package/src/molecules/SplitToolButton.jsx +4 -4
- package/src/molecules/StepList.jsx +3 -3
- package/src/molecules/Stepper.jsx +5 -5
- package/src/molecules/SwatchControls.jsx +3 -3
- package/src/molecules/TabsRow.jsx +8 -8
- package/src/molecules/TaskRow.jsx +2 -2
- package/src/molecules/TreeRow.jsx +3 -3
- package/src/organisms/AppItemMenuProvider.jsx +2 -2
- package/src/organisms/ColorPickerPopover.jsx +2 -2
- package/src/organisms/ColumnBrowser.jsx +8 -8
- package/src/organisms/CommandOverlay.jsx +2 -2
- package/src/organisms/ContentFilters.jsx +2 -2
- package/src/organisms/LayerStack.jsx +3 -3
- package/src/organisms/MediaLibrary.jsx +11 -11
- package/src/organisms/MediaLibraryPages.jsx +35 -35
- package/src/organisms/MediaViewer.jsx +3 -3
- package/src/organisms/NavDrawer.jsx +2 -2
- package/src/organisms/NavRail.jsx +1 -1
- package/src/organisms/NavRailFloat.jsx +5 -5
- package/src/organisms/NavRailSite.jsx +5 -5
- package/src/organisms/Rail.jsx +1 -1
- package/src/organisms/RecordManager.jsx +3 -3
- package/src/organisms/Table.jsx +3 -3
- package/src/organisms/ToolPalette.jsx +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useEffect, useLayoutEffect, useRef, useState } from 'react'
|
|
2
2
|
import { createPortal } from 'react-dom'
|
|
3
|
-
import {
|
|
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"><
|
|
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 ??
|
|
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'}`}><
|
|
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
|
-
<
|
|
606
|
+
<IconLoader name="chevron-down" size={12} />
|
|
607
607
|
</span>
|
|
608
608
|
</button>
|
|
609
609
|
)
|
package/src/organisms/Rail.jsx
CHANGED
|
@@ -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 {
|
|
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 {
|
|
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
|
-
<
|
|
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
|
-
<
|
|
234
|
+
<IconLoader name="drag-handle" size={16} />
|
|
235
235
|
</button>
|
|
236
236
|
)}
|
|
237
237
|
<ToggleCheckbox
|
package/src/organisms/Table.jsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useMemo, useState } from 'react'
|
|
2
|
-
import {
|
|
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
|
-
<
|
|
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
|
-
<
|
|
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 {
|
|
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 =
|
|
45
|
+
iconComponent = IconLoader,
|
|
46
46
|
className = '',
|
|
47
47
|
}) => {
|
|
48
48
|
const vertical = orientation === 'vertical'
|