strata-react 1.0.44 → 1.0.45
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/UPGRADING.md +4 -0
- package/dist/components/selectable-grid.d.ts +1 -1
- package/dist/index.js +179 -100
- package/dist/index.js.map +1 -1
- package/dist/lib/grouped-grid-layout.d.ts +14 -0
- package/package.json +1 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { GridLayout } from 'react-aria-components';
|
|
2
|
+
import { LayoutInfo, Rect } from 'react-stately';
|
|
3
|
+
/** Keys of group headings start with this, so a tile key that is a plain id can never be mistaken for one. */
|
|
4
|
+
export declare const GROUP_PREFIX = "\u2063group\u2063";
|
|
5
|
+
export declare const groupKey: (group: string) => string;
|
|
6
|
+
export declare const isGroupKey: (key: unknown) => key is string;
|
|
7
|
+
/** The height of a group's heading row, in px. */
|
|
8
|
+
export declare const HEADER_HEIGHT = 40;
|
|
9
|
+
/** `GridLayout` with full-width group headings (items keyed by `groupKey`) that stay at the top of the scroll box while their group is in view. */
|
|
10
|
+
export declare class GroupedGridLayout<T = unknown> extends GridLayout<T> {
|
|
11
|
+
private headers;
|
|
12
|
+
update(context: Parameters<GridLayout<T>["update"]>[0]): void;
|
|
13
|
+
getVisibleLayoutInfos(rect: Rect): LayoutInfo[];
|
|
14
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "strata-react",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.45",
|
|
4
4
|
"description": "React + Tailwind v4 components that ship structure, behaviour, states and a token contract, and no look: each product brings a theme generated from its own subject.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|