@kolkrabbi/kol-component 0.377.0 → 0.379.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 (81) hide show
  1. package/package.json +5 -4
  2. package/src/atoms/BezierPathEditor.jsx +1 -1
  3. package/src/atoms/Button.jsx +84 -1
  4. package/src/atoms/Figure.jsx +19 -1
  5. package/src/atoms/FunctionPlot.jsx +1 -1
  6. package/src/atoms/Input.jsx +105 -1
  7. package/src/atoms/Kbd.jsx +42 -2
  8. package/src/atoms/Link.jsx +20 -0
  9. package/src/atoms/OriginPicker.jsx +9 -5
  10. package/src/atoms/SectionFooter.jsx +22 -0
  11. package/src/atoms/SectionHeader.jsx +24 -0
  12. package/src/atoms/SizeOrDownload.jsx +1 -1
  13. package/src/atoms/Textarea.jsx +11 -2
  14. package/src/atoms/ToggleCheckbox.jsx +23 -1
  15. package/src/atoms/ToggleSwitch.jsx +39 -0
  16. package/src/atoms/ViewToggle.jsx +2 -2
  17. package/src/atoms/XYPad.jsx +25 -0
  18. package/src/hooks/useDragResize.js +1 -1
  19. package/src/index.js +26 -3
  20. package/src/molecules/AccountMenu.jsx +14 -1
  21. package/src/molecules/AlignmentGrid.jsx +13 -1
  22. package/src/molecules/ButtonGroup.jsx +73 -1
  23. package/src/molecules/ButtonSplit.jsx +64 -3
  24. package/src/molecules/Chip.jsx +26 -0
  25. package/src/molecules/CodeBlock.jsx +39 -2
  26. package/src/molecules/ColorInputRow.jsx +125 -4
  27. package/src/molecules/ColorSwatch.jsx +43 -2
  28. package/src/molecules/ContentCard.jsx +104 -3
  29. package/src/molecules/ContentMedia.jsx +1 -1
  30. package/src/molecules/ContentRow.jsx +3 -3
  31. package/src/molecules/DividerLabel.jsx +19 -0
  32. package/src/molecules/Dropdown.jsx +111 -1
  33. package/src/molecules/DropdownStepper.jsx +29 -0
  34. package/src/molecules/FieldPair.jsx +41 -2
  35. package/src/molecules/Header.jsx +8 -4
  36. package/src/molecules/LabeledControl.jsx +51 -0
  37. package/src/molecules/Menu.jsx +239 -3
  38. package/src/molecules/Modal.jsx +216 -10
  39. package/src/molecules/ModalShell.jsx +21 -8
  40. package/src/molecules/OptionRow.jsx +1 -1
  41. package/src/molecules/ParamBindDot.jsx +29 -2
  42. package/src/molecules/QuantityInput.jsx +48 -0
  43. package/src/molecules/RailFloat.jsx +4 -3
  44. package/src/molecules/RailHeader.jsx +32 -2
  45. package/src/molecules/SectionText.jsx +54 -1
  46. package/src/molecules/Slider.jsx +101 -2
  47. package/src/molecules/SplitToolButton.jsx +4 -6
  48. package/src/molecules/SwatchControls.jsx +28 -0
  49. package/src/molecules/SwatchGrid.jsx +39 -0
  50. package/src/molecules/TabsDocument.jsx +131 -0
  51. package/src/molecules/TabsRow.jsx +35 -1
  52. package/src/molecules/Toast.jsx +55 -0
  53. package/src/molecules/TreeRow.jsx +87 -1
  54. package/src/organisms/AppItemMenuProvider.jsx +2 -2
  55. package/src/organisms/ColorPickerPopover.jsx +133 -4
  56. package/src/organisms/ColumnBrowser.jsx +1 -1
  57. package/src/organisms/CommandOverlay.jsx +396 -21
  58. package/src/organisms/FindBar.jsx +70 -0
  59. package/src/organisms/FramedMediaBand.jsx +2 -2
  60. package/src/organisms/GalleryCarousel.jsx +1 -1
  61. package/src/organisms/LogoSystem.jsx +38 -0
  62. package/src/organisms/LogoTuner.jsx +32 -0
  63. package/src/organisms/MediaLibrary.jsx +1 -1
  64. package/src/organisms/MediaLibraryPages.jsx +1 -1
  65. package/src/organisms/Rail.jsx +33 -1
  66. package/src/organisms/RailSwitcher.jsx +62 -0
  67. package/src/organisms/ReadingContents.jsx +63 -1
  68. package/src/organisms/SectionSplit.jsx +1 -1
  69. package/src/organisms/SettingsPanel.jsx +64 -6
  70. package/src/organisms/ShortcutsOverlay.jsx +46 -2
  71. package/src/organisms/SpectrumControls.jsx +112 -19
  72. package/src/organisms/StatusBar.jsx +30 -0
  73. package/src/organisms/Table.jsx +141 -2
  74. package/src/organisms/TimelineDock.jsx +281 -1
  75. package/src/organisms/logoBoard.jsx +61 -0
  76. package/src/utilities/AssetPlaceholder.jsx +1 -1
  77. package/src/utilities/EditorShell.jsx +42 -1
  78. package/src/utilities/OverlayGlassPanel.jsx +1 -1
  79. package/src/utilities/Popover.jsx +298 -2
  80. package/src/utilities/SelectionOverlay.jsx +74 -1
  81. package/src/utilities/kolboxGlyph.jsx +10 -0
@@ -1,6 +1,12 @@
1
- import { useEffect, useId, useRef, useState } from 'react'
1
+ import { Fragment, useEffect, useId, useRef, useState } from 'react'
2
+ import Input from '../atoms/Input.jsx'
3
+ import Kbd, { KbdKeys } from '../atoms/Kbd.jsx'
4
+ import TreeRow from '../molecules/TreeRow.jsx'
5
+ import OptionRow from '../molecules/OptionRow.jsx'
6
+ import { PopoverLayer } from '../utilities/Popover.jsx'
2
7
  import { IconLoader } from '@kolkrabbi/kol-icons'
3
8
  import SearchInput from '../molecules/SearchInput.jsx'
9
+ import ModalShell from '../molecules/ModalShell.jsx'
4
10
  import Tag from '../atoms/Tag.jsx'
5
11
  import TabsRow from '../molecules/TabsRow.jsx'
6
12
  import Button from '../atoms/Button.jsx'
@@ -154,12 +160,15 @@ function unfold(rows, opened) {
154
160
  * @param {string} [selectLabel] the footer's Enter line while a row is highlighted (default
155
161
  * `Go to page`) — a modal whose rows are not pages says what
156
162
  * Enter does instead (the rack's module search: `Add module`)
157
- * @param {'solid'|'glass-dark'|'glass-light'} [surface='solid'] ONE SEARCH STYLE (plan-2026-11-05-float-editor 7.7, his
158
- * frame float-more 30:914 — *"anchored search (along with same style regular search)"*):
159
- * every search modal is the float card — RailTrigger's (`kol-more-sheet-float` on
160
- * `--kol-float-menu-r`, the float surface and shadow), the float SearchInput, the float
161
- * rows (Inter, `--kol-float-row`, the lit row fg-16, the hint right), eyebrow groups, and
162
- * the key-hint foot under a full-width rule. `surface` only picks what the card is made of
163
+ * @param {'default'|'float'|'kolbox'|'folio'} [variant='default'] the look. `folio`: Folio's search modal and command list (`mode`
164
+ * search, commands), see `CommandOverlayFolio`. `default` is the KOL search modal (the overlay
165
+ * panel on oq-04, the field in a grey tone, OptionRow rows, the Kbd footer), as it was
166
+ * drawn up to 0.341.1. `float` is the float card (plan-2026-11-05-float-editor 7.7, his
167
+ * frame float-more 30:914): RailTrigger's (`kol-more-sheet-float` on `--kol-float-menu-r`,
168
+ * the float surface and shadow), the float SearchInput, the float rows (Inter,
169
+ * `--kol-float-row`, the lit row fg-16, the hint right), eyebrow groups, and the key-hint
170
+ * foot under a full-width rule. Float apps only (his ruling 2026-11-20, plan W17.1)
171
+ * @param {'solid'|'glass-dark'|'glass-light'} [surface='solid'] with `variant="float"`, what the card is made of
163
172
  * @param {Array} [tabs] `[{ id, label }]` — his All · Actions · Tools · Pages: the first shows every row, the
164
173
  * rest the rows whose `tab` is their id. Tab / ⇧Tab step through them from the field
165
174
  * @param {Object|Element} [anchor] a ref (or element) the card ANCHORS ABOVE — the dock's ⌘K: the card takes the anchor's
@@ -169,7 +178,7 @@ function unfold(rows, opened) {
169
178
  * the tree while it leaves (FloatActionStatesAndMotion, 2026-11-04): `true` the
170
179
  * `--kol-float-*` tokens · `false` none · `{ duration, ease }` per app
171
180
  */
172
- export default function CommandOverlay({
181
+ function CommandOverlayDefault({
173
182
  open,
174
183
  onClose,
175
184
  results: rawResults = [],
@@ -196,13 +205,14 @@ export default function CommandOverlay({
196
205
  mode = 'search',
197
206
  shortcuts = [],
198
207
  currentPath,
208
+ variant = 'default',
199
209
  surface = 'solid',
200
210
  tabs,
201
211
  anchor,
202
212
  shortcutHint,
203
213
  motion = true,
204
214
  }) {
205
- const float = true
215
+ const float = variant === 'float'
206
216
  const fm = floatMotion(motion)
207
217
  const presence = useFloatPresence(open, float ? fm.ms : 0)
208
218
  const exit = float && presence.exiting ? '' : undefined
@@ -356,7 +366,7 @@ export default function CommandOverlay({
356
366
  const hintBtn = `${hint} hover:text-fg-emphasis transition-colors cursor-pointer`
357
367
 
358
368
  return (
359
- <div className={`fixed inset-0 ${place ? '' : 'flex items-start justify-center pt-[20vh]'}`} style={{ zIndex: 'var(--kol-z-modal, 100)', ...fm.style }}>
369
+ <div className={`fixed inset-0 ${place ? '' : 'flex items-start justify-center pt-[20vh]'}`} style={{ zIndex: 'var(--kol-z-modal, 100)', ...(float ? fm.style : null) }}>
360
370
  {/* A BUTTON, not a div (OverlayScrimTapDismiss, 2026-09-01): iOS Safari
361
371
  * does not bubble tap-clicks from non-interactive elements, so the div's
362
372
  * onClick never fired on a phone and the only way out was the close
@@ -365,7 +375,7 @@ export default function CommandOverlay({
365
375
  <button
366
376
  type="button"
367
377
  aria-label="Close search"
368
- className={`absolute inset-0 ${place ? 'cursor-default' : 'kol-overlay-scrim kol-float-fade'}`}
378
+ className={`absolute inset-0 ${place ? 'cursor-default' : `kol-overlay-scrim${float ? ' kol-float-fade' : ''}`}`}
369
379
  data-exit={exit}
370
380
  onClick={onClose}
371
381
  />
@@ -380,24 +390,52 @@ export default function CommandOverlay({
380
390
  data-exit={exit}
381
391
  data-side={place ? 'top' : undefined}
382
392
  style={place ? { position: 'fixed', left: place.left, width: place.width, bottom: place.bottom } : undefined}
383
- className={`kol-command kol-more-sheet kol-more-sheet-float kol-float-chrome kol-float-motion ${floatSurfaceClass(surface, true)} overflow-hidden ${place ? '' : `relative w-full mx-4 ${expanded ? 'max-w-[var(--kol-content-panel)]' : 'max-w-xl'}`} ${noField ? 'outline-none' : ''}`.replace(/\s+/g, ' ').trim()}
393
+ className={float
394
+ ? `kol-command kol-more-sheet kol-more-sheet-float kol-float-chrome kol-float-motion ${floatSurfaceClass(surface, true)} overflow-hidden ${place ? '' : `relative w-full mx-4 ${expanded ? 'max-w-[var(--kol-content-panel)]' : 'max-w-xl'}`} ${noField ? 'outline-none' : ''}`.replace(/\s+/g, ' ').trim()
395
+ : `kol-overlay-panel ${place ? '' : 'mx-4 '}${noField ? 'outline-none ' : ''}${expanded ? 'max-w-[var(--kol-content-panel)]' : 'max-w-lg'}`}
384
396
  >
385
397
  {/* THE MODE, said out loud (user 2026-08-01: "how do you set search
386
398
  * mode? theres no helper, message or mode clearly readble"). Two
387
399
  * modes exist — FILTER (tags narrow a set) and FIND (a keyword jumps
388
400
  * to a destination) — and the only signal was whether chips happened
389
401
  * to be present. The chips ARE the mode, so they get a label. */}
390
- {chips.length > 0 && (
402
+ {chips.length > 0 && (float ? (
391
403
  <div className="flex flex-wrap items-center gap-1.5 px-3 pt-2 pb-1">
392
404
  <span className="kol-float-label text-oq-64 shrink-0">Filtering by</span>
393
405
  {chips.map((t) => (
394
406
  <Tag key={t} onRemove={() => onRemoveChip?.(t)}>{t}</Tag>
395
407
  ))}
396
408
  </div>
397
- )}
409
+ ) : (
410
+ <div className="flex flex-wrap items-center gap-1.5 px-4 pt-3">
411
+ <span className="kol-helper-10 text-fg-48 shrink-0">FILTERING BY</span>
412
+ {chips.map((t) => (
413
+ <Tag key={t} onRemove={() => onRemoveChip?.(t)}>{t}</Tag>
414
+ ))}
415
+ </div>
416
+ ))}
398
417
  {/* THE BACK ARROW TAKES THE SEARCH GLYPH'S SLOT (user 2026-10-18: *"why would the back move the input?!"*) —
399
418
  * a button beside the field shrank it and shifted the caret on every drill-in */}
400
- {!noField && (
419
+ {!noField && !float && (
420
+ /* A REAL FIELD, inset in the panel (2026-09-30, shadcn's search modal as the aim) */
421
+ <div className="kol-tone-grey p-2 flex items-center gap-2">
422
+ <SearchInput
423
+ className="w-full min-w-0 flex-1"
424
+ value={query}
425
+ onChange={(e) => onQueryChange?.(e.target.value)}
426
+ placeholder={chips.length > 0 ? 'Narrow these results…' : placeholder}
427
+ onKeyDown={handleKeyDown}
428
+ onBack={back}
429
+ backLabel={backLabel}
430
+ shortcutHint={shortcutHint}
431
+ role="combobox"
432
+ aria-expanded={results.length > 0}
433
+ aria-controls={listId}
434
+ aria-activedescendant={active >= 0 ? optionId(results[active]) : undefined}
435
+ />
436
+ </div>
437
+ )}
438
+ {!noField && float && (
401
439
  <SearchInput
402
440
  className="w-full min-w-0"
403
441
  value={query}
@@ -417,7 +455,7 @@ export default function CommandOverlay({
417
455
  )}
418
456
  {/* his tabs — All · Actions · Tools · Pages — the float TabsRow under the field */}
419
457
  {tabs?.length > 0 && !expanded && (
420
- <TabsRow variant="float" size="md" tabs={tabs} value={tabNow} onChange={setTab} className="pt-2" />
458
+ <TabsRow variant={float ? 'float' : undefined} size="md" tabs={tabs} value={tabNow} onChange={setTab} className={float ? 'pt-2' : 'px-2 pt-2'} />
421
459
  )}
422
460
 
423
461
  {/* WHY THIS IS NOT `molecules/Dropdown` (asked 2026-08-01). Dropdown is
@@ -441,19 +479,20 @@ export default function CommandOverlay({
441
479
  * its items, a "← All" row back); the consumer swaps `suggestions`/`results`
442
480
  * Built by `buildShellSearchItems` (showcase/src/nav/shell-nav.js). */}
443
481
  {expanded ? (
444
- <div className="border-t border-fg-08 max-h-[70vh] overflow-y-auto" style={RULE}>{children}</div>
482
+ <div className="border-t border-fg-08 max-h-[70vh] overflow-y-auto" style={float ? RULE : undefined}>{children}</div>
445
483
  ) : results.length > 0 && (
446
484
  /* FIXED BODY HEIGHT — the panel holds still while the list narrows. */
447
- <ul ref={listRef} id={listId} role="listbox" className="flex h-80 flex-col gap-[var(--kol-spacing-0-5)] overflow-y-auto">
485
+ <ul ref={listRef} id={listId} role="listbox" className={float ? 'flex h-80 flex-col gap-[var(--kol-spacing-0-5)] overflow-y-auto' : `kol-tone-grey h-80 overflow-y-auto px-2 pb-2${noField ? ' pt-2' : ''}`}>
448
486
  {results.map((item, i) => {
449
487
  const heading = (item.group ?? '') !== (results[i - 1]?.group ?? '') || i === 0
450
488
  return (
451
489
  <li key={item.id} role="presentation">
452
490
  {heading && item.group && (
453
491
  /* the rail's eyebrow (user 2026-10-18: *"sections shoudl be uppercase eyebrow like in siderail"*) */
454
- <p className="kol-eyebrow text-oq-64 px-3 pt-3 pb-2">{item.group}</p>
492
+ <p className={float ? 'kol-eyebrow text-oq-64 px-3 pt-3 pb-2' : 'kol-eyebrow text-fg-80 px-4 border-x border-transparent pt-3 pb-2'}>{item.group}</p>
455
493
  )}
456
- {/* the float row: RailTrigger's card row, lit on the float selection while it is the cursor */}
494
+ {float ? (
495
+ /* the float row: RailTrigger's card row, lit on the float selection while it is the cursor */
457
496
  <Button
458
497
  id={optionId(item)}
459
498
  role="option"
@@ -474,13 +513,68 @@ export default function CommandOverlay({
474
513
  {((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
514
  </span>
476
515
  </Button>
516
+ ) : (
517
+ <OptionRow
518
+ id={optionId(item)}
519
+ role="option"
520
+ aria-selected={i === active}
521
+ aria-disabled={item.disabled || undefined}
522
+ active={i === active}
523
+ disabled={item.disabled}
524
+ icon={typeof item.icon === 'string' ? item.icon : undefined}
525
+ /* a fold's key row sits under its category's label, past the chevron */
526
+ leading={item.indent ? <span className="inline-block w-4" /> : typeof item.icon === 'string' ? undefined : item.icon}
527
+ label={<HighlightMatch label={item.label} query={query} ranges={item.highlights} />}
528
+ hint={(item.disabled && item.disabledHint) || item.hint}
529
+ /* preventDefault keeps focus in the input through the click */
530
+ onMouseDown={(e) => e.preventDefault()}
531
+ onClick={() => select(item)}
532
+ onMouseEnter={() => { if (!item.disabled) { setActiveIndex(i); setNavigated(true) } }}
533
+ />
534
+ )}
477
535
  </li>
478
536
  )
479
537
  })}
480
538
  </ul>
481
539
  )}
482
540
  {/* THE FOOT — his key hints under a rule that runs the card's full width; it always says what Enter does. */}
483
- {!expanded && (results.length > 0 || (query && (enterLabel || onOpenResults))) && (
541
+ {!expanded && !float && (results.length > 0 || (query && (enterLabel || onOpenResults))) && (
542
+ <div className="border-t border-fg-08 py-2">
543
+ {/* Enter's line names what Enter does NOW: a row is highlighted → it opens that row; no rows → it commits the query */}
544
+ {enterWord && (
545
+ /* 44px on touch — a finger-sized line */
546
+ <p className="flex items-center gap-2 kol-helper-12 text-fg-48 mx-2 px-4 border-x border-transparent pointer-coarse:min-h-11">
547
+ <Kbd icon="corner-down-left" />
548
+ {enterWord}
549
+ {/* the second action on the same line, right — ⌘↵, the footer's idiom for "the other one" */}
550
+ {folds.length > 0 && !query && (
551
+ <button
552
+ type="button"
553
+ className="ml-auto flex items-center gap-2 text-fg-48 hover:text-fg-default transition-colors cursor-pointer"
554
+ onMouseDown={(e) => e.preventDefault()}
555
+ onClick={toggleAll}
556
+ >
557
+ <Kbd icon="command"><IconLoader name="corner-down-left" size={12} /></Kbd>
558
+ {allOpen ? 'Collapse all' : 'Expand all'}
559
+ </button>
560
+ )}
561
+ </p>
562
+ )}
563
+ {/* THE RESULTS LINE IS A LINK (user 2026-10-01) — the same door ⌘Enter opens */}
564
+ {query && onOpenResults && (
565
+ <button
566
+ type="button"
567
+ className="flex items-center gap-2 kol-helper-12 text-fg-48 hover:text-fg-default transition-colors mx-2 px-4 border-x border-transparent pt-1"
568
+ onMouseDown={(e) => e.preventDefault()}
569
+ onClick={() => { onOpenResults(query); onClose?.() }}
570
+ >
571
+ <Kbd icon="command"><IconLoader name="corner-down-left" size={12} /></Kbd>
572
+ {resultsLabel}
573
+ </button>
574
+ )}
575
+ </div>
576
+ )}
577
+ {!expanded && float && (results.length > 0 || (query && (enterLabel || onOpenResults))) && (
484
578
  <div className="kol-float-hint flex flex-wrap items-center gap-x-5 gap-y-1 border-t border-fg-08 py-3 pointer-coarse:min-h-11" style={RULE}>
485
579
  {results.length > 1 && <span className={hint}><span aria-hidden>↑↓</span>Navigate</span>}
486
580
  {enterWord && <span className={hint}><span aria-hidden>↵</span>{enterWord}</span>}
@@ -503,3 +597,284 @@ export default function CommandOverlay({
503
597
  </div>
504
598
  )
505
599
  }
600
+
601
+ /* ── kolbox (plan-2026-11-18-kolbox-system W31.2 batch 5, 2026-11-18) ─────────────────────────────────────────────────
602
+ * kolbox's ModalSearch (round 3, 9.1; round 4, 14.1), carried from apps/kolbox/src/ui/ModalSearch.jsx: the panel 576 wide
603
+ * (`--kol-kolbox-search-w`), radius 16, on the one floating surface, in PopoverLayer's body on the dim, 20% down. The
604
+ * field (Input kolbox lg, the lens, the ⌘K mark while empty), the tabs, then the groups: a title and its rows (TreeRow
605
+ * kolbox lg, touching, the active one lit, the hint at the right), then a rule and the foot (↑↓ Navigate, ↵ Run, Esc
606
+ * Close). Presentational: the host passes the rows and keeps the state. CommandOverlay's words: `open`, `onClose`,
607
+ * `query`, `onQueryChange`, `placeholder`, `tabs` [{ value, label }], `onSelect(row)` (kolbox's onRun), `mode` ('search',
608
+ * or 'shortcuts': the real S sheet, the same panel with no field and no tabs, Enter folds a key's section back up and
609
+ * never runs it). kolbox's own: `tab`, `onTab`, `groups` [{ title, rows: [{ id, icon, label, body, hint, kbd, disabled,
610
+ * disabledHint, items, open }] }] (a row with `items` is a fold), `active` (an index into the rows in group order),
611
+ * `onActive(index)`, `empty` (what can be searched, said when nothing is found:
612
+ * plan-2026-11-19 C5.1b). Keys in the field: ↑↓ move the lit row over disabled rows,
613
+ * Enter runs it, Tab and ⇧Tab step the tabs, → and ← open and close a fold while the field is empty, ⌘↵ all folds;
614
+ * Escape is the layer's. */
615
+ function MatchKolbox({ label, query }) {
616
+ /* a label the host has marked itself (a node) is drawn as it is */
617
+ if (typeof label !== 'string') return label
618
+ const at = query ? label.toLowerCase().indexOf(query.toLowerCase()) : -1
619
+ if (at < 0) return label
620
+ return <>{label.slice(0, at)}<span className="underline decoration-2 underline-offset-[3px]">{label.slice(at, at + query.length)}</span>{label.slice(at + query.length)}</>
621
+ }
622
+ const KeyKolbox = ({ k, children }) => <span className="flex items-center gap-1"><KbdKeys variant="kolbox" size="sm" keys={k} />{children}</span>
623
+ /* a fold's rows indented to its label: the row's 12 inset, the 20 icon and its 12 gap */
624
+ const INDENT_KOLBOX = { paddingLeft: 'calc(var(--kol-spacing-3) * 2 + 20px)' }
625
+
626
+ function CommandOverlayKolbox({ open, onClose, mode = 'search', query = '', onQueryChange, placeholder = 'Search tools, actions, pages…', tabs = [], tab, onTab, groups = [], active = -1, onActive, onSelect, empty, mark = '⌘K', 'aria-label': ariaLabel }) {
627
+ const field = mode !== 'shortcuts'
628
+ const input = useRef(null)
629
+ const panel = useRef(null)
630
+ const list = useRef(null)
631
+ const listId = useId()
632
+ const folds = groups.flatMap((g) => g.rows).filter((r) => Array.isArray(r.items))
633
+ const [opened, setOpened] = useState(() => new Set())
634
+ const toggle = (id, on) => setOpened((o) => { const n = new Set(o); (on ?? !n.has(id)) ? n.add(id) : n.delete(id); return n })
635
+ const allOpen = folds.length > 0 && folds.every((r) => opened.has(r.id))
636
+ const toggleAll = () => setOpened(allOpen ? new Set() : new Set(folds.map((r) => r.id)))
637
+ const shown = groups.map((g) => ({
638
+ ...g,
639
+ rows: g.rows.flatMap((r) => (Array.isArray(r.items)
640
+ ? [{ ...r, icon: opened.has(r.id) ? 'arrow-down' : 'arrow-right', fold: true }, ...(opened.has(r.id) ? r.items.map((c) => ({ ...c, id: `${r.id}/${c.id}`, of: r.id })) : [])]
641
+ : [r])),
642
+ }))
643
+ const rows = shown.flatMap((g) => g.rows)
644
+
645
+ useEffect(() => {
646
+ if (!open) return
647
+ const back = document.activeElement
648
+ ;(field ? input.current : panel.current)?.focus({ preventScroll: true })
649
+ setOpened(new Set(folds.filter((r) => r.open).map((r) => r.id)))
650
+ return () => back?.focus?.({ preventScroll: true })
651
+ }, [open]) // eslint-disable-line react-hooks/exhaustive-deps
652
+ useEffect(() => { list.current?.querySelector(`[data-search-row="${active}"]`)?.scrollIntoView({ block: 'nearest' }) }, [active])
653
+
654
+ const step = (dir) => {
655
+ for (let i = active + dir; i >= 0 && i < rows.length; i += dir) if (!rows[i].disabled) return i
656
+ return active
657
+ }
658
+ const at = (id) => rows.findIndex((r) => r.id === id)
659
+ const pick = (r) => {
660
+ if (!r || r.disabled) return
661
+ if (r.fold) return toggle(r.id)
662
+ if (!field) { if (r.of) { toggle(r.of, false); onActive?.(at(r.of)) } return }
663
+ onSelect?.(r)
664
+ }
665
+ const key = (e) => {
666
+ if (e.key === 'Escape') return
667
+ if (field || /^(Arrow|Enter$|Tab$)/.test(e.key)) e.stopPropagation()
668
+ const r = rows[active]
669
+ if (!query && (e.key === 'ArrowRight' || e.key === 'ArrowLeft') && r && (r.fold || r.of)) {
670
+ e.preventDefault()
671
+ if (e.key === 'ArrowRight' && r.fold) toggle(r.id, true)
672
+ if (e.key === 'ArrowLeft') { toggle(r.fold ? r.id : r.of, false); if (!r.fold) onActive?.(at(r.of)) }
673
+ }
674
+ if (e.key === 'ArrowDown') { e.preventDefault(); onActive?.(step(1)) }
675
+ if (e.key === 'ArrowUp') { e.preventDefault(); onActive?.(step(-1)) }
676
+ if (e.key === 'Enter') {
677
+ e.preventDefault()
678
+ if ((e.metaKey || e.ctrlKey) && folds.length && !query) toggleAll()
679
+ else pick(r)
680
+ }
681
+ if (e.key === 'Tab') {
682
+ e.preventDefault()
683
+ const now = tabs.findIndex((t) => t.value === tab)
684
+ if (field && tabs.length) onTab?.(tabs[(now + (e.shiftKey ? -1 : 1) + tabs.length) % tabs.length].value)
685
+ }
686
+ }
687
+ const enter = rows[active]?.fold ? (opened.has(rows[active].id) ? 'Collapse' : 'Expand') : field ? 'Run' : 'Collapse'
688
+
689
+ let n = -1
690
+ return (
691
+ <PopoverLayer open={open} onClose={onClose} placement="center" kind="modal">
692
+ <section
693
+ ref={panel}
694
+ role="dialog"
695
+ aria-modal="true"
696
+ aria-label={ariaLabel ?? (field ? 'Search' : 'Shortcuts')}
697
+ data-kolbox-search=""
698
+ tabIndex={field ? undefined : -1}
699
+ onKeyDown={field ? undefined : key}
700
+ className="kol-command--kolbox kol-kolbox-surface mt-[20vh] flex max-w-[calc(100vw-var(--kol-spacing-8))] flex-col self-start overflow-hidden outline-none"
701
+ >
702
+ {field && (
703
+ <div className="flex flex-col gap-2 p-2">
704
+ <Input variant="kolbox"
705
+ ref={input}
706
+ size="lg"
707
+ iconLeft="search"
708
+ placeholder={placeholder}
709
+ aria-label="Search"
710
+ role="combobox"
711
+ aria-expanded={rows.length > 0}
712
+ aria-controls={listId}
713
+ aria-activedescendant={active >= 0 && rows[active] ? `${listId}-${active}` : undefined}
714
+ value={query}
715
+ onChange={(e) => onQueryChange?.(e.target.value)}
716
+ onKeyDown={key}
717
+ slotRight={!query && mark && <KbdKeys variant="kolbox" size="sm" keys={mark} />} />
718
+ {tabs.length > 0 && <TabsRow variant="kolbox" tabs={tabs} value={tab} onChange={onTab} className="h-10! w-full [&>button]:flex-1 [&>button]:px-4" />}
719
+ </div>
720
+ )}
721
+ {(rows.length > 0 || field) && (
722
+ <>
723
+ {rows.length === 0 && (
724
+ <div className="flex h-80 flex-col items-center justify-center gap-2 px-8 text-center" data-search-empty="">
725
+ <span className="kol-command-group">{query ? `Nothing found for “${query}”` : 'Nothing to show'}</span>
726
+ {empty && <span className="kol-command-group">{empty}</span>}
727
+ </div>
728
+ )}
729
+ {rows.length > 0 && <div ref={list} id={listId} role="listbox" className={`flex h-80 flex-col gap-0.5 overflow-y-auto px-2 ${field ? '' : 'pt-2'}`}>
730
+ {shown.map((g, gi) => (
731
+ <Fragment key={gi}>
732
+ {g.title && g.rows.length > 0 && <div className="kol-command-group shrink-0 px-3 pt-3 pb-2 tracking-wider uppercase">{g.title}</div>}
733
+ {g.rows.map((r) => {
734
+ const i = ++n
735
+ const hint = (r.disabled && r.disabledHint) || r.hint
736
+ return (
737
+ <TreeRow
738
+ key={r.id}
739
+ variant="kolbox"
740
+ size="lg"
741
+ id={`${listId}-${i}`}
742
+ role="option"
743
+ aria-selected={i === active}
744
+ aria-expanded={r.fold ? opened.has(r.id) : undefined}
745
+ tabIndex={-1}
746
+ data-search-row={i}
747
+ data-fold={r.fold ? '' : undefined}
748
+ icon={r.of ? undefined : r.icon}
749
+ label={r.body
750
+ /* `body`, an optional second line (Folio's word): the row grows to hold it; a row without one is as before */
751
+ ? <span className="flex min-w-0 flex-col"><span className="truncate"><MatchKolbox label={r.label} query={query} /></span><span className="kol-command-body truncate">{r.body}</span></span>
752
+ : <MatchKolbox label={r.label} query={query} />}
753
+ className={r.body ? 'h-auto! min-h-10 py-1.5' : undefined}
754
+ active={i === active}
755
+ disabled={r.disabled}
756
+ onMouseDown={(e) => e.preventDefault()}
757
+ onMouseEnter={() => !r.disabled && onActive?.(i)}
758
+ onClick={() => pick(r)}
759
+ trailing={hint && (r.kbd && hint === r.hint ? <KbdKeys variant="kolbox" keys={hint} size="md" className="pl-3" /> : <span className="kol-command-hint max-w-1/2 shrink-0 truncate pl-3">{hint}</span>)}
760
+ {...(r.of ? { style: INDENT_KOLBOX } : {})}
761
+ />
762
+ )
763
+ })}
764
+ </Fragment>
765
+ ))}
766
+ </div>}
767
+ <div role="separator" className="kol-command-rule mt-2 h-px shrink-0" />
768
+ <footer className="kol-command-foot flex h-10 shrink-0 items-center gap-4 px-4">
769
+ {rows.length > 1 && <KeyKolbox k="↑↓">Navigate</KeyKolbox>}
770
+ {rows.length > 0 && <KeyKolbox k="↵">{enter}</KeyKolbox>}
771
+ <button type="button" onMouseDown={(e) => e.preventDefault()} onClick={onClose} className="outline-none">
772
+ <KeyKolbox k="Esc">Close</KeyKolbox>
773
+ </button>
774
+ {folds.length > 0 && !query && (
775
+ <button type="button" onMouseDown={(e) => e.preventDefault()} onClick={toggleAll} className="ml-auto outline-none" data-fold-all>
776
+ <KeyKolbox k="⌘↵">{allOpen ? 'Collapse all' : 'Expand all'}</KeyKolbox>
777
+ </button>
778
+ )}
779
+ </footer>
780
+ </>
781
+ )}
782
+ </section>
783
+ </PopoverLayer>
784
+ )
785
+ }
786
+
787
+ /* ── folio (Folio migration batch B, 2026-11-22) ──────────────────────────────────────────────────────────────────────────
788
+ * Folio's two search windows carried class for class, the chrome in kol-theme `.kol-command--folio`, on `ModalShell
789
+ * variant="folio"`, 12% down, drawn in place (never portalled, so they keep the frame's `data-folio-*`); a press outside
790
+ * closes. Presentational, as kolbox's: the host keeps the query, the rows and the lit row.
791
+ * mode 'search' the search modal (Folio's SearchOverlay): 720 wide on the Folio dim, the field (the lens, `esc`),
792
+ * then each row: `label` (a node, the matches marked by the host) with `group` at the right, `hint`
793
+ * under it, `body` (Folio's word: a line of the text) under that
794
+ * mode 'commands' the command list (Folio's CommandPalette, ⇧⌘P): 640 wide, no dim, the field, then rows of `label`
795
+ * with `hint` (the keys) at the right
796
+ * CommandOverlay's words: `open`, `onClose`, `query`, `onQueryChange`, `placeholder`, `results` `[{ id, label, group,
797
+ * hint, body }]`, `onSelect(row)` (also on Enter with no row in `commands`, so Enter there always closes), `aria-label`.
798
+ * kolbox's: `active`, `onActive`, `empty` (said under the field when it is set). Keys in the field: ↑↓ move the lit
799
+ * row, Enter picks, Escape closes. */
800
+ function CommandOverlayFolio({ open, onClose, mode = 'search', query = '', onQueryChange, placeholder, results = [], active = 0, onActive, onSelect, empty, 'aria-label': label }) {
801
+ const commands = mode === 'commands'
802
+ const input = useRef(null)
803
+ useEffect(() => { if (open && !commands) setTimeout(() => input.current?.focus(), 0) }, [open]) // eslint-disable-line react-hooks/exhaustive-deps
804
+ if (!open) return null
805
+ const onKey = (e) => {
806
+ if (e.key === 'Escape') onClose?.()
807
+ if (e.key === 'ArrowDown') { e.preventDefault(); onActive?.(Math.min(active + 1, results.length - 1)) }
808
+ if (e.key === 'ArrowUp') { e.preventDefault(); onActive?.(Math.max(active - 1, 0)) }
809
+ if (e.key === 'Enter') {
810
+ if (commands) { e.preventDefault(); onSelect?.(results[active]) }
811
+ else if (results[active]) onSelect?.(results[active])
812
+ }
813
+ }
814
+ if (commands) {
815
+ return (
816
+ <div className="fixed inset-0 z-50 flex items-start justify-center px-[16px] pt-[12vh]" onMouseDown={onClose}>
817
+ <ModalShell variant="folio" role="dialog" aria-label={label} onMouseDown={(e) => e.stopPropagation()} className="kol-command--folio kol-command--folio-commands max-h-[60vh] w-[640px] max-w-full overflow-hidden">
818
+ <input autoFocus aria-label="Command" placeholder={placeholder} value={query} onChange={(e) => onQueryChange?.(e.target.value)} onKeyDown={onKey}
819
+ className="kol-command-field--folio h-[48px] shrink-0 border-b bg-transparent px-[16px] outline-none" />
820
+ <div role="listbox" aria-label={label} className="min-h-0 overflow-y-auto py-[6px]">
821
+ {results.map((r, i) => (
822
+ <button key={r.id ?? r.label} type="button" role="option" aria-selected={i === active} onMouseEnter={() => onActive?.(i)} onClick={() => onSelect?.(r)} className={`kol-command-row--folio${i === active ? ' is-active' : ''} flex h-[32px] w-full items-center px-[16px] text-left`}>
823
+ {r.label}<span className="kol-command-hint--folio ml-auto">{r.hint ?? ''}</span>
824
+ </button>
825
+ ))}
826
+ {empty && <p className="kol-folio-meta kol-command-empty--folio px-[16px] py-[8px]">{empty}</p>}
827
+ </div>
828
+ </ModalShell>
829
+ </div>
830
+ )
831
+ }
832
+ return (
833
+ <div className="kol-modal-dim--folio fixed inset-0 z-50 flex items-start justify-center px-[16px] pt-[12vh]" onMouseDown={onClose}>
834
+ <ModalShell variant="folio" role="dialog" aria-label={label} className="kol-command--folio kol-command--folio-search max-h-[70vh] w-full max-w-[720px] overflow-hidden" onMouseDown={(e) => e.stopPropagation()}>
835
+ <label className="kol-command-head--folio flex h-[56px] shrink-0 items-center gap-[12px] border-b px-[18px]">
836
+ <IconLoader name="search" size={18} />
837
+ <input ref={input} value={query} onChange={(e) => onQueryChange?.(e.target.value)} onKeyDown={onKey} placeholder={placeholder} className="kol-command-search--folio min-w-0 flex-1 bg-transparent outline-none" />
838
+ <span className="kol-folio-meta kol-command-hint--folio">esc</span>
839
+ </label>
840
+ <div className="overflow-y-auto">
841
+ {empty && <p className="kol-folio-body kol-command-empty--folio px-[18px] py-[20px]">{empty}</p>}
842
+ {results.map((r, i) => (
843
+ <button key={r.id} type="button" onMouseEnter={() => onActive?.(i)} onClick={() => onSelect?.(r)} className={`kol-command-result--folio${i === active ? ' is-active' : ''} flex w-full flex-col gap-[6px] border-b px-[18px] py-[14px] text-left`}>
844
+ <span className="flex items-baseline justify-between gap-[16px]">
845
+ <span className="kol-folio-shelf">{r.label}</span>
846
+ <span className="kol-folio-label kol-command-hint--folio shrink-0">{r.group}</span>
847
+ </span>
848
+ {r.hint && <span className="kol-folio-meta kol-command-hint--folio">{r.hint}</span>}
849
+ {r.body && <span className="kol-folio-body kol-command-hint--folio">{r.body}</span>}
850
+ </button>
851
+ ))}
852
+ </div>
853
+ </ModalShell>
854
+ </div>
855
+ )
856
+ }
857
+
858
+ /* ── kolbox, from `results` (Folio on kolbox, 2026-11-22) ──
859
+ * The folio branch's words under the kolbox look, so a host switches by the variant alone: `results` `[{ id, label, group,
860
+ * hint, body }]` become kolbox's groups (each `group` a titled group, in the order they first come; `hint` at the row's
861
+ * right, as key caps when it is one combo); `body`, when a row has one, is a second line under its label. `mode`
862
+ * 'commands' is the same panel with no group titles: the command list. The row handed to `onSelect` is the host's own. */
863
+ export const isKeyCombo = (s) => typeof s === 'string' && /^[⌘⇧⌥⌃]*[^\s⌘⇧⌥⌃]+$/.test(s)
864
+ function CommandOverlayKolboxResults({ results, mode, ...props }) {
865
+ const groups = []
866
+ results.forEach((r, i) => {
867
+ const title = mode === 'commands' ? undefined : r.group
868
+ let g = groups.find((x) => x.title === title)
869
+ if (!g) groups.push((g = { title, rows: [] }))
870
+ g.rows.push({ ...r, id: r.id ?? `${i}:${typeof r.label === 'string' ? r.label : ''}`, hint: r.hint || undefined, kbd: isKeyCombo(r.hint) })
871
+ })
872
+ /* the field's ⌘K mark is the search modal's own key; the command list does not open on it */
873
+ return <CommandOverlayKolbox {...props} mode="search" groups={groups} mark={mode === 'commands' ? null : undefined} />
874
+ }
875
+
876
+ export default function CommandOverlay(props) {
877
+ if (props.variant === 'folio') return <CommandOverlayFolio {...props} />
878
+ if (props.variant === 'kolbox') return props.results ? <CommandOverlayKolboxResults {...props} /> : <CommandOverlayKolbox {...props} />
879
+ return <CommandOverlayDefault {...props} />
880
+ }
@@ -0,0 +1,70 @@
1
+ import { IconLoader } from '@kolkrabbi/kol-icons'
2
+ import Input from '../atoms/Input.jsx'
3
+ import Button from '../atoms/Button.jsx'
4
+ import ButtonGroup from '../molecules/ButtonGroup.jsx'
5
+
6
+ /**
7
+ * FindBar — find and replace over a document, one bar across its top (Folio's FindBar, 2026-11-22). It holds no
8
+ * document state: the host keeps the query, the replacement, the count and match case, and does the finding.
9
+ *
10
+ * The find field takes focus when the bar mounts. In either field Enter is the next match, Shift+Enter the previous;
11
+ * Escape anywhere in the bar closes it. Chrome in kol-theme `.kol-find-bar--kolbox` and `.kol-find-bar--folio`.
12
+ *
13
+ * <FindBar query={q} onQueryChange={setQ} replacement={r} onReplacementChange={setR} count="3 found"
14
+ * onPrev={prev} onNext={next} onReplace={one} onReplaceAll={all} matchCase={mc} onMatchCase={setMc} onClose={close} />
15
+ *
16
+ * @param {'kolbox'|'folio'} [variant='kolbox'] - kolbox: 48 high on the rail ground, the kolbox line under it, kolbox's
17
+ * Input md (the rail's search) and Buttons. folio: Folio's bar carried class for class (48, its surface, its rule).
18
+ * @param {string} query - The find field's text
19
+ * @param {(value: string) => void} onQueryChange
20
+ * @param {string} replacement - The replace field's text
21
+ * @param {(value: string) => void} onReplacementChange
22
+ * @param {ReactNode} [count] - What the find matched, as the host words it ("3 found", "none")
23
+ * @param {() => void} onPrev - The previous match
24
+ * @param {() => void} onNext - The next match
25
+ * @param {() => void} onReplace - Replace the current match
26
+ * @param {() => void} onReplaceAll - Replace every match
27
+ * @param {boolean} matchCase
28
+ * @param {(on: boolean) => void} onMatchCase
29
+ * @param {() => void} onClose
30
+ * @param {string} [className] - Extra classes on the bar
31
+ */
32
+ export default function FindBar({ variant = 'kolbox', query, onQueryChange, replacement, onReplacementChange, count, onPrev, onNext, onReplace, onReplaceAll, matchCase, onMatchCase, onClose, className = '' }) {
33
+ /* Enter steps only from a field, so a focused button still presses on Enter */
34
+ const onKeyDown = (e) => {
35
+ if (e.key === 'Escape') { e.preventDefault(); onClose?.() }
36
+ if (e.key === 'Enter' && e.target.tagName === 'INPUT') { e.preventDefault(); e.shiftKey ? onPrev?.() : onNext?.() }
37
+ }
38
+
39
+ if (variant === 'folio') return (
40
+ <div className={`kol-find-bar--folio flex h-[48px] shrink-0 items-center gap-[10px] border-b px-[56px] ${className}`.trim()} onKeyDown={onKeyDown}>
41
+ <IconLoader name="search" size={16} />
42
+ <Input variant="folio" autoFocus aria-label="Find" placeholder="Find" value={query} onChange={(e) => onQueryChange(e.target.value)} className="w-[220px]" />
43
+ <span className="kol-find-bar-count w-[64px] tabular-nums">{count}</span>
44
+ <ButtonGroup layout="joined" variant="folio" ariaLabel="Matches" options={[{ icon: 'arrow-left', ariaLabel: 'Previous match', onPress: onPrev }, { icon: 'arrow-right', ariaLabel: 'Next match', onPress: onNext }]} />
45
+ <button type="button" aria-pressed={matchCase} onClick={() => onMatchCase(!matchCase)} className={`kol-find-bar-case${matchCase ? ' is-on' : ''} h-[28px] rounded-[3px] px-[8px]`}>Aa</button>
46
+ <span className="kol-find-bar-rule mx-[8px] h-[20px] w-px" />
47
+ <Input variant="folio" aria-label="Replace with" placeholder="Replace with" value={replacement} onChange={(e) => onReplacementChange(e.target.value)} className="w-[220px]" />
48
+ <Button variant="folio" onClick={onReplace}>Replace</Button>
49
+ <Button variant="folio" onClick={onReplaceAll}>Replace all</Button>
50
+ <Button variant="folio" iconOnly="x" aria-label="Close find" onClick={onClose} className="kol-find-bar-close ml-auto" />
51
+ </div>
52
+ )
53
+
54
+ /* kolbox: the rail header's 48 and its insets (12 in, 8 at the end), the rail's search field (Input md) and kolbox's
55
+ own find's buttons; Folio's order and words */
56
+ return (
57
+ <div className={`kol-find-bar--kolbox flex h-12 shrink-0 items-center gap-2 border-b pr-2 pl-3 ${className}`.trim()} onKeyDown={onKeyDown}>
58
+ <Input variant="kolbox" size="md" iconLeft="search" autoFocus aria-label="Find" placeholder="Find" value={query} onChange={(e) => onQueryChange(e.target.value)} className="w-60" />
59
+ <span className="kol-find-bar-count kol-kolbox-row w-16 shrink-0 tabular-nums">{count}</span>
60
+ <Button variant="kolbox" iconOnly="chevron-up" aria-label="Previous match" onClick={onPrev} />
61
+ <Button variant="kolbox" iconOnly="chevron-down" aria-label="Next match" onClick={onNext} />
62
+ <Button variant="kolbox" tone="ghost" pressed={Boolean(matchCase)} aria-label="Match case" onClick={() => onMatchCase(!matchCase)}>Aa</Button>
63
+ <span className="kol-find-bar-rule mx-2 h-5 w-px shrink-0" />
64
+ <Input variant="kolbox" size="md" iconLeft="arrow-right" aria-label="Replace with" placeholder="Replace with" value={replacement} onChange={(e) => onReplacementChange(e.target.value)} className="w-60" />
65
+ <Button variant="kolbox" onClick={onReplace}>Replace</Button>
66
+ <Button variant="kolbox" onClick={onReplaceAll}>Replace all</Button>
67
+ <Button variant="kolbox" iconOnly="x" aria-label="Close find" onClick={onClose} className="ml-auto" />
68
+ </div>
69
+ )
70
+ }
@@ -5,7 +5,7 @@ import Image from '../atoms/Image.jsx'
5
5
  * frame (bordered surface-secondary panel, rounded) holding one object-cover
6
6
  * image. Extracted from the foundry TypefacePage, where it sat inlined 5x
7
7
  * verbatim between content sections. The double radius (`rounded` panel,
8
- * `rounded-[var(--kol-radius-sm)]` image) is intentional — the image nests inside the border.
8
+ * `rounded-[var(--kol-radius-4)]` image) is intentional — the image nests inside the border.
9
9
  *
10
10
  * Presentational — the caller passes finished `src`/`srcSet` strings; any
11
11
  * CDN size-ladder generation stays at the call site. `media` swaps an
@@ -44,7 +44,7 @@ export default function FramedMediaBand({
44
44
  srcSet={srcSet}
45
45
  sizes={sizes}
46
46
  alt={alt}
47
- className="w-full h-full object-cover rounded-[var(--kol-radius-sm)]"
47
+ className="w-full h-full object-cover rounded-[var(--kol-radius-4)]"
48
48
  />
49
49
  )}
50
50
  </div>
@@ -58,7 +58,7 @@ export default function GalleryCarousel({ media = [], title = '', defaultAspect
58
58
  return (
59
59
  <div
60
60
  key={item.url || i}
61
- className="w-full overflow-hidden rounded-[var(--kol-radius-xs)] cursor-pointer"
61
+ className="w-full overflow-hidden rounded-[var(--kol-radius-2)] cursor-pointer"
62
62
  style={{ aspectRatio: aspect }}
63
63
  onPointerDown={onPointerDown}
64
64
  onPointerMove={onPointerMove}