@helpwave/hightide 0.11.0 → 0.11.1

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.d.mts CHANGED
@@ -1853,44 +1853,16 @@ type TableHeaderProps = {
1853
1853
  declare const TableHeader: ({ isSticky }: TableHeaderProps) => react_jsx_runtime.JSX.Element;
1854
1854
 
1855
1855
  type TableVirtualizationOptions = {
1856
- /** Estimated row height in px, refined by measurement once rows mount. Default `48`. */
1857
1856
  estimateRowHeight?: number;
1858
- /** Rows rendered above and below the viewport to avoid blank space while scrolling. Default `8`. */
1859
1857
  overscan?: number;
1860
- /**
1861
- * Which scroll context to track:
1862
- * - `'window'` (default) windows against the page/document scroll. Use this when the list
1863
- * scrolls with the page (e.g. a document-scroll infinite list with a sentinel below the table).
1864
- * - `'container'` windows against the table container's own scroll. The container
1865
- * (`data-name="table-container"`) needs a bounded height and `overflow-y: auto` for this.
1866
- */
1867
1858
  scroll?: 'window' | 'container';
1868
1859
  };
1869
1860
  type VirtualizedTableBodyProps = TableVirtualizationOptions;
1870
- /**
1871
- * Drop-in replacement for {@link TableBody} that only mounts the visible rows (plus a small
1872
- * overscan) instead of the whole row model. Rows stay in normal table flow — a single spacer
1873
- * `<tr>` above and below the window reserves the scroll height — so column sizing (driven by the
1874
- * `<colgroup>`), the sticky header, resizing, sorting/filtering, selection and row clicks all keep
1875
- * working unchanged. Per-row heights are measured, so variable-height rows are supported.
1876
- *
1877
- * Filler rows are intentionally ignored here: virtualization already reserves the full scroll
1878
- * height, so `isUsingFillerRows` is a no-op while virtualized.
1879
- */
1880
1861
  declare const VirtualizedTableBody: ({ estimateRowHeight, overscan, scroll, }: VirtualizedTableBodyProps) => react_jsx_runtime.JSX.Element;
1881
1862
 
1882
1863
  interface TableDisplayProps extends TableHTMLAttributes<HTMLTableElement> {
1883
1864
  containerProps?: Omit<React.HTMLAttributes<HTMLDivElement>, 'children'>;
1884
1865
  tableHeaderProps?: Omit<TableHeaderProps, 'children' | 'table'>;
1885
- /**
1886
- * Opt into row virtualization (windowing): only the rows in (or near) the viewport are mounted to
1887
- * the DOM, so very large lists stay responsive. Pass `true` for the defaults or an options object
1888
- * to tune it (see {@link TableVirtualizationOptions}). Defaults to window-scroll, which drops into
1889
- * page-scrolled / infinite-scroll layouts without any change.
1890
- *
1891
- * Filler rows are ignored while virtualized (the reserved scroll height already fills the table),
1892
- * so `isUsingFillerRows` has no effect in this mode. Defaults to `false` (unchanged behaviour).
1893
- */
1894
1866
  virtualized?: boolean | TableVirtualizationOptions;
1895
1867
  }
1896
1868
  /**
package/dist/index.d.ts CHANGED
@@ -1853,44 +1853,16 @@ type TableHeaderProps = {
1853
1853
  declare const TableHeader: ({ isSticky }: TableHeaderProps) => react_jsx_runtime.JSX.Element;
1854
1854
 
1855
1855
  type TableVirtualizationOptions = {
1856
- /** Estimated row height in px, refined by measurement once rows mount. Default `48`. */
1857
1856
  estimateRowHeight?: number;
1858
- /** Rows rendered above and below the viewport to avoid blank space while scrolling. Default `8`. */
1859
1857
  overscan?: number;
1860
- /**
1861
- * Which scroll context to track:
1862
- * - `'window'` (default) windows against the page/document scroll. Use this when the list
1863
- * scrolls with the page (e.g. a document-scroll infinite list with a sentinel below the table).
1864
- * - `'container'` windows against the table container's own scroll. The container
1865
- * (`data-name="table-container"`) needs a bounded height and `overflow-y: auto` for this.
1866
- */
1867
1858
  scroll?: 'window' | 'container';
1868
1859
  };
1869
1860
  type VirtualizedTableBodyProps = TableVirtualizationOptions;
1870
- /**
1871
- * Drop-in replacement for {@link TableBody} that only mounts the visible rows (plus a small
1872
- * overscan) instead of the whole row model. Rows stay in normal table flow — a single spacer
1873
- * `<tr>` above and below the window reserves the scroll height — so column sizing (driven by the
1874
- * `<colgroup>`), the sticky header, resizing, sorting/filtering, selection and row clicks all keep
1875
- * working unchanged. Per-row heights are measured, so variable-height rows are supported.
1876
- *
1877
- * Filler rows are intentionally ignored here: virtualization already reserves the full scroll
1878
- * height, so `isUsingFillerRows` is a no-op while virtualized.
1879
- */
1880
1861
  declare const VirtualizedTableBody: ({ estimateRowHeight, overscan, scroll, }: VirtualizedTableBodyProps) => react_jsx_runtime.JSX.Element;
1881
1862
 
1882
1863
  interface TableDisplayProps extends TableHTMLAttributes<HTMLTableElement> {
1883
1864
  containerProps?: Omit<React.HTMLAttributes<HTMLDivElement>, 'children'>;
1884
1865
  tableHeaderProps?: Omit<TableHeaderProps, 'children' | 'table'>;
1885
- /**
1886
- * Opt into row virtualization (windowing): only the rows in (or near) the viewport are mounted to
1887
- * the DOM, so very large lists stay responsive. Pass `true` for the defaults or an options object
1888
- * to tune it (see {@link TableVirtualizationOptions}). Defaults to window-scroll, which drops into
1889
- * page-scrolled / infinite-scroll layouts without any change.
1890
- *
1891
- * Filler rows are ignored while virtualized (the reserved scroll height already fills the table),
1892
- * so `isUsingFillerRows` has no effect in this mode. Defaults to `false` (unchanged behaviour).
1893
- */
1894
1866
  virtualized?: boolean | TableVirtualizationOptions;
1895
1867
  }
1896
1868
  /**
package/dist/index.js CHANGED
@@ -10920,7 +10920,7 @@ var useFocusTrap = ({
10920
10920
  setPaused(true);
10921
10921
  }, unpause = function() {
10922
10922
  setPaused(false);
10923
- if (!container.current.contains(document.activeElement)) {
10923
+ if (container.current && !container.current.contains(document.activeElement)) {
10924
10924
  focusElement();
10925
10925
  }
10926
10926
  }, focus = function() {