reifyui 0.6.1 → 0.6.2
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/dist/index.cjs +28 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +28 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/sheet/SheetGrid.jsx +16 -0
- package/styles/sheet.css +4 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "reifyui",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.2",
|
|
4
4
|
"description": "The open-source rendering & interaction layer for agentic applications. Stream and render any agent's output as polished, application-native UI \u2014 model-agnostic, framework-agnostic, design-system-native. The foundation for building generative-UI and agent products.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
package/src/sheet/SheetGrid.jsx
CHANGED
|
@@ -503,6 +503,22 @@ export function SheetGrid({
|
|
|
503
503
|
style={peer ? { boxShadow: `inset 0 0 0 2px ${peer.color}` } : undefined}
|
|
504
504
|
onClick={(e) => { if (!isEditing) openEdit(row.id, col, e.currentTarget); }}
|
|
505
505
|
title={c.error || ''}>
|
|
506
|
+
{/* The boundaries a spreadsheet lets you grab are the ones you can see, and
|
|
507
|
+
from row 20 the header is scrolled away. Both edges of every cell resize
|
|
508
|
+
the same column and row the header and the gutter do — same handler,
|
|
509
|
+
same drag, just reachable where the person already is. */}
|
|
510
|
+
{!readOnly && (
|
|
511
|
+
<>
|
|
512
|
+
<span className="shg-resize-col shg-resize-in-cell"
|
|
513
|
+
onClick={(e) => e.stopPropagation()}
|
|
514
|
+
onMouseDown={(e) => startResize(e, 'col', col.id,
|
|
515
|
+
colWidth(col) || e.currentTarget.closest('td').offsetWidth)} />
|
|
516
|
+
<span className="shg-resize-row shg-resize-in-cell"
|
|
517
|
+
onClick={(e) => e.stopPropagation()}
|
|
518
|
+
onMouseDown={(e) => startResize(e, 'row', row.id,
|
|
519
|
+
rowHeight(row) || e.currentTarget.closest('tr').offsetHeight)} />
|
|
520
|
+
</>
|
|
521
|
+
)}
|
|
506
522
|
{peer && <span className="shg-peer-flag" style={{ background: peer.color }}>{peer.name}</span>}
|
|
507
523
|
{isEditing ? renderEditor(col) : (
|
|
508
524
|
<div className="shg-val"
|
package/styles/sheet.css
CHANGED
|
@@ -168,7 +168,6 @@
|
|
|
168
168
|
.shg-menu-apply:hover { filter: brightness(1.06); }
|
|
169
169
|
|
|
170
170
|
/* ── Resize handles ─────────────────────────────────────────────────────── */
|
|
171
|
-
.shg-col { position: relative; }
|
|
172
171
|
.shg-resize-col {
|
|
173
172
|
position: absolute; top: 0; right: -3px; width: 7px; height: 100%;
|
|
174
173
|
cursor: col-resize; z-index: 5;
|
|
@@ -179,6 +178,10 @@
|
|
|
179
178
|
cursor: row-resize; z-index: 5;
|
|
180
179
|
}
|
|
181
180
|
.shg-resize-row:hover { background: var(--uic-brand-soft, #E1E9FF); opacity: .7; }
|
|
181
|
+
/* Inside a cell the handle sits ON the border rather than 3px beyond it: a cell clips its
|
|
182
|
+
overflow to keep long values from escaping, and a handle hung outside would be clipped with
|
|
183
|
+
them. */
|
|
184
|
+
.shg-resize-in-cell.shg-resize-col { right: 0; }
|
|
182
185
|
.shg-cell, .shg-rownum { overflow: hidden; }
|
|
183
186
|
|
|
184
187
|
/* ── Ghost add-row (Airtable-style, attached to the grid) ───────────────── */
|