@octaviaflow/core 3.1.0-beta.54 → 3.1.0-beta.55
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/components/StatusList/StatusList.d.ts +48 -0
- package/dist/components/StatusList/StatusList.d.ts.map +1 -0
- package/dist/components/StatusList/index.d.ts +2 -0
- package/dist/components/StatusList/index.d.ts.map +1 -0
- package/dist/index.cjs +820 -737
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +730 -648
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { type ComponentPropsWithoutRef, type ReactNode } from "react";
|
|
2
|
+
export type StatusListTone = "success" | "running" | "warning" | "danger" | "neutral" | "info";
|
|
3
|
+
export interface StatusListItem {
|
|
4
|
+
id: string;
|
|
5
|
+
/** Primary label — e.g. "postgres_prod → snowflake_dw". */
|
|
6
|
+
name: ReactNode;
|
|
7
|
+
/** Secondary line — e.g. "2.3M rows/min" or "Auth expired". */
|
|
8
|
+
meta?: ReactNode;
|
|
9
|
+
/** Status pill text — e.g. "RUNNING". Omit to hide the badge. */
|
|
10
|
+
status?: ReactNode;
|
|
11
|
+
/** Semantic tone → rail dot colour + status-pill variant. Default `neutral`. */
|
|
12
|
+
tone?: StatusListTone;
|
|
13
|
+
/** Optional leading icon (replaces the tone dot). */
|
|
14
|
+
icon?: ReactNode;
|
|
15
|
+
/** Optional inline trend (e.g. last-N run durations). */
|
|
16
|
+
sparkline?: number[];
|
|
17
|
+
/** Optional custom trailing content (rendered after the status pill). */
|
|
18
|
+
trailing?: ReactNode;
|
|
19
|
+
/** Render the row as a link. */
|
|
20
|
+
href?: string;
|
|
21
|
+
/** Disable / mute this row (e.g. a paused pipeline). */
|
|
22
|
+
muted?: boolean;
|
|
23
|
+
}
|
|
24
|
+
export interface StatusListProps extends Omit<ComponentPropsWithoutRef<"div">, "title" | "onClick"> {
|
|
25
|
+
items: StatusListItem[];
|
|
26
|
+
title?: ReactNode;
|
|
27
|
+
/** Right-aligned header slot (count, "View all" link, filter…). */
|
|
28
|
+
action?: ReactNode;
|
|
29
|
+
/** Tighter row height. */
|
|
30
|
+
dense?: boolean;
|
|
31
|
+
/** Cap visible rows; a "+N more" footer is shown for the remainder. */
|
|
32
|
+
max?: number;
|
|
33
|
+
/** Empty-state copy. Default "Nothing to show". */
|
|
34
|
+
emptyLabel?: ReactNode;
|
|
35
|
+
/** Row click handler — makes every row a button (unless it has `href`). */
|
|
36
|
+
onItemClick?: (item: StatusListItem) => void;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* StatusList — a compact, scannable list of status rows (dot · name · meta ·
|
|
40
|
+
* status pill). The lightweight alternative to dumping a log table on a
|
|
41
|
+
* dashboard: "5 connectors, here's each one's health" at a glance. Each row is
|
|
42
|
+
* optionally a link or button, and can carry an inline sparkline.
|
|
43
|
+
*/
|
|
44
|
+
export declare function StatusList({ items, title, action, dense, max, emptyLabel, onItemClick, className, ...rest }: StatusListProps): import("react/jsx-runtime").JSX.Element;
|
|
45
|
+
export declare namespace StatusList {
|
|
46
|
+
var displayName: string;
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=StatusList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StatusList.d.ts","sourceRoot":"","sources":["../../../src/components/StatusList/StatusList.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,wBAAwB,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAStE,MAAM,MAAM,cAAc,GACtB,SAAS,GACT,SAAS,GACT,SAAS,GACT,QAAQ,GACR,SAAS,GACT,MAAM,CAAC;AAEX,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,2DAA2D;IAC3D,IAAI,EAAE,SAAS,CAAC;IAChB,+DAA+D;IAC/D,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,iEAAiE;IACjE,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,gFAAgF;IAChF,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,qDAAqD;IACrD,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,yDAAyD;IACzD,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,yEAAyE;IACzE,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,gCAAgC;IAChC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,wDAAwD;IACxD,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,eACf,SAAQ,IAAI,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAClE,KAAK,EAAE,cAAc,EAAE,CAAC;IACxB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,mEAAmE;IACnE,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,0BAA0B;IAC1B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,uEAAuE;IACvE,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,mDAAmD;IACnD,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,2EAA2E;IAC3E,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,cAAc,KAAK,IAAI,CAAC;CAC9C;AAmBD;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,EACzB,KAAK,EACL,KAAK,EACL,MAAM,EACN,KAAa,EACb,GAAG,EACH,UAA8B,EAC9B,WAAW,EACX,SAAS,EACT,GAAG,IAAI,EACR,EAAE,eAAe,2CA8FjB;yBAxGe,UAAU"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/StatusList/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,cAAc,GACpB,MAAM,cAAc,CAAC"}
|