@sakaniui/react 0.4.1 → 0.4.3
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/README.md +47 -8
- package/dist/TopBar-CKPoRCEM.cjs +1 -0
- package/dist/{TopBar-CqbWhR1n.js → TopBar-DXx49iZq.js} +936 -635
- package/dist/blocks/LiquidDashboardBlock/DashboardContent.d.ts +4 -1
- package/dist/blocks/LiquidDashboardBlock/parts/RailTooltip.d.ts +12 -0
- package/dist/blocks.cjs +2 -2
- package/dist/blocks.mjs +2139 -2022
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +528 -528
- package/dist/style.css +1 -1
- package/dist/tokens.css +24 -30
- package/package.json +1 -1
- package/dist/TopBar-D4DLhfly.cjs +0 -1
|
@@ -3,5 +3,8 @@ export interface DashboardContentProps {
|
|
|
3
3
|
/** Photos for the activity feed, keyed by person. Optional: Avatar falls back to a neutral placeholder. */
|
|
4
4
|
people?: Partial<Record<PersonKey, string>>;
|
|
5
5
|
}
|
|
6
|
-
|
|
6
|
+
declare function DashboardContentImpl({ people }: DashboardContentProps): import("react").JSX.Element;
|
|
7
|
+
/** Memoized: the sidebar toggles, lens measurements and hover state re-render the block
|
|
8
|
+
* many times a second, and none of it touches these charts and tables. */
|
|
9
|
+
export declare const DashboardContent: import('react').MemoExoticComponent<typeof DashboardContentImpl>;
|
|
7
10
|
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* The collapsed rail's tooltip: the library Tooltip, but portaled to <body> and
|
|
4
|
+
* positioned with `fixed`. The rail scrolls (so it clips anything that sticks out
|
|
5
|
+
* of it) and the main panel is painted after it (so it would cover a tooltip that
|
|
6
|
+
* did escape); a portal avoids both. Shows on hover and keyboard focus, closes on
|
|
7
|
+
* leave, blur and Esc.
|
|
8
|
+
*/
|
|
9
|
+
export declare const RailTooltip: React.FC<{
|
|
10
|
+
title: string;
|
|
11
|
+
children: React.ReactNode;
|
|
12
|
+
}>;
|