@onehat/ui 0.3.231 → 0.3.232

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onehat/ui",
3
- "version": "0.3.231",
3
+ "version": "0.3.232",
4
4
  "description": "Base UI for OneHat apps",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -420,6 +420,7 @@ function GridComponent(props) {
420
420
  gridRef={gridRef}
421
421
  isHovered={isHovered}
422
422
  isInlineEditorShown={isInlineEditorShown}
423
+ areRowsDragSource={areRowsDragSource}
423
424
  />;
424
425
  }
425
426
 
@@ -1,5 +1,6 @@
1
1
  import { useState, useEffect, useMemo, } from 'react';
2
2
  import {
3
+ Box,
3
4
  Icon,
4
5
  Pressable,
5
6
  Row,
@@ -41,6 +42,7 @@ export default function GridHeaderRow(props) {
41
42
  gridRef,
42
43
  isHovered,
43
44
  isInlineEditorShown,
45
+ areRowsDragSource,
44
46
  } = props,
45
47
  styles = UiGlobals.styles,
46
48
  sortFn = Repository && Repository.getSortFn(),
@@ -442,6 +444,12 @@ export default function GridHeaderRow(props) {
442
444
  />}
443
445
  </Pressable>;
444
446
  });
447
+ if (areRowsDragSource) {
448
+ headerColumns.unshift(<Box
449
+ key="spacer"
450
+ w={3}
451
+ />);
452
+ }
445
453
  if (!hideNavColumn) {
446
454
  headerColumns.push(<AngleRight
447
455
  key="AngleRight"