@pattern-stack/frontend-patterns 0.2.0-alpha.16 → 0.2.0-alpha.19
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/CHANGELOG.md +5 -0
- package/dist/atoms/components/data/Duration/Duration.d.ts +11 -0
- package/dist/atoms/components/data/Duration/Duration.d.ts.map +1 -0
- package/dist/atoms/components/data/Duration/index.d.ts +2 -0
- package/dist/atoms/components/data/Duration/index.d.ts.map +1 -0
- package/dist/atoms/components/data/LiveIndicator/LiveIndicator.d.ts +12 -0
- package/dist/atoms/components/data/LiveIndicator/LiveIndicator.d.ts.map +1 -0
- package/dist/atoms/components/data/LiveIndicator/index.d.ts +2 -0
- package/dist/atoms/components/data/LiveIndicator/index.d.ts.map +1 -0
- package/dist/atoms/components/data/Sparkline/Sparkline.d.ts +16 -0
- package/dist/atoms/components/data/Sparkline/Sparkline.d.ts.map +1 -0
- package/dist/atoms/components/data/Sparkline/index.d.ts +2 -0
- package/dist/atoms/components/data/Sparkline/index.d.ts.map +1 -0
- package/dist/atoms/components/data/Timestamp/Timestamp.d.ts +13 -0
- package/dist/atoms/components/data/Timestamp/Timestamp.d.ts.map +1 -0
- package/dist/atoms/components/data/Timestamp/index.d.ts +2 -0
- package/dist/atoms/components/data/Timestamp/index.d.ts.map +1 -0
- package/dist/atoms/components/data/index.d.ts +4 -0
- package/dist/atoms/components/data/index.d.ts.map +1 -1
- package/dist/frontend-patterns.css +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +299 -42
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +299 -42
- package/dist/index.js.map +1 -1
- package/dist/swebrain/SweBrainShowcase.d.ts +8 -0
- package/dist/swebrain/SweBrainShowcase.d.ts.map +1 -0
- package/dist/swebrain/atoms/Card.d.ts +15 -0
- package/dist/swebrain/atoms/Card.d.ts.map +1 -0
- package/dist/swebrain/atoms/Chip.d.ts +17 -0
- package/dist/swebrain/atoms/Chip.d.ts.map +1 -0
- package/dist/swebrain/atoms/Duration.d.ts +7 -0
- package/dist/swebrain/atoms/Duration.d.ts.map +1 -0
- package/dist/swebrain/atoms/EmptyCell.d.ts +5 -0
- package/dist/swebrain/atoms/EmptyCell.d.ts.map +1 -0
- package/dist/swebrain/atoms/Hand.d.ts +8 -0
- package/dist/swebrain/atoms/Hand.d.ts.map +1 -0
- package/dist/swebrain/atoms/ID.d.ts +9 -0
- package/dist/swebrain/atoms/ID.d.ts.map +1 -0
- package/dist/swebrain/atoms/IdTag.d.ts +9 -0
- package/dist/swebrain/atoms/IdTag.d.ts.map +1 -0
- package/dist/swebrain/atoms/KV.d.ts +7 -0
- package/dist/swebrain/atoms/KV.d.ts.map +1 -0
- package/dist/swebrain/atoms/LiveIndicator.d.ts +7 -0
- package/dist/swebrain/atoms/LiveIndicator.d.ts.map +1 -0
- package/dist/swebrain/atoms/PoolChip.d.ts +14 -0
- package/dist/swebrain/atoms/PoolChip.d.ts.map +1 -0
- package/dist/swebrain/atoms/Row.d.ts +10 -0
- package/dist/swebrain/atoms/Row.d.ts.map +1 -0
- package/dist/swebrain/atoms/Sparkline.d.ts +11 -0
- package/dist/swebrain/atoms/Sparkline.d.ts.map +1 -0
- package/dist/swebrain/atoms/StatusBadge.d.ts +11 -0
- package/dist/swebrain/atoms/StatusBadge.d.ts.map +1 -0
- package/dist/swebrain/atoms/StatusDot.d.ts +11 -0
- package/dist/swebrain/atoms/StatusDot.d.ts.map +1 -0
- package/dist/swebrain/atoms/Timestamp.d.ts +8 -0
- package/dist/swebrain/atoms/Timestamp.d.ts.map +1 -0
- package/dist/swebrain/atoms/index.d.ts +34 -0
- package/dist/swebrain/atoms/index.d.ts.map +1 -0
- package/dist/swebrain/atoms/pool-tokens.d.ts +14 -0
- package/dist/swebrain/atoms/pool-tokens.d.ts.map +1 -0
- package/dist/swebrain/atoms/tokens.d.ts +96 -0
- package/dist/swebrain/atoms/tokens.d.ts.map +1 -0
- package/dist/swebrain/index.d.ts +4 -0
- package/dist/swebrain/index.d.ts.map +1 -0
- package/dist/swebrain/lib/favs.d.ts +5 -0
- package/dist/swebrain/lib/favs.d.ts.map +1 -0
- package/dist/swebrain/lib/vendors.d.ts +14 -0
- package/dist/swebrain/lib/vendors.d.ts.map +1 -0
- package/dist/swebrain/molecules/PoolLegend.d.ts +8 -0
- package/dist/swebrain/molecules/PoolLegend.d.ts.map +1 -0
- package/dist/swebrain/molecules/SearchInput.d.ts +17 -0
- package/dist/swebrain/molecules/SearchInput.d.ts.map +1 -0
- package/dist/swebrain/molecules/StatCard.d.ts +11 -0
- package/dist/swebrain/molecules/StatCard.d.ts.map +1 -0
- package/dist/swebrain/molecules/TimeRangePicker.d.ts +18 -0
- package/dist/swebrain/molecules/TimeRangePicker.d.ts.map +1 -0
- package/dist/swebrain/molecules/index.d.ts +9 -0
- package/dist/swebrain/molecules/index.d.ts.map +1 -0
- package/dist/sync/createEntityHooks.d.ts.map +1 -1
- package/dist/sync/index.d.ts +1 -1
- package/dist/sync/index.d.ts.map +1 -1
- package/dist/sync/types.d.ts +110 -23
- package/dist/sync/types.d.ts.map +1 -1
- package/dist/templates/factory.d.ts.map +1 -1
- package/package.json +2 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import "./app/theme-chalky-primary.css";
|
|
2
|
+
import "./app/theme-chalkboard.css";
|
|
3
|
+
import "./app/theme-swe-brain.css";
|
|
4
|
+
/** Showcase shell: three-theme switcher + a primitives gallery. Atom files only
|
|
5
|
+
reference tokens (T / `var(--…)`) — swapping data-theme reskins everything. */
|
|
6
|
+
export declare function SweBrainShowcase(): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default SweBrainShowcase;
|
|
8
|
+
//# sourceMappingURL=SweBrainShowcase.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SweBrainShowcase.d.ts","sourceRoot":"","sources":["../../src/swebrain/SweBrainShowcase.tsx"],"names":[],"mappings":"AAqBA,OAAO,gCAAgC,CAAC;AACxC,OAAO,4BAA4B,CAAC;AACpC,OAAO,2BAA2B,CAAC;AAiBnC;iFACiF;AACjF,wBAAgB,gBAAgB,4CA0K/B;AA+FD,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { CSSProperties } from "react";
|
|
2
|
+
export interface CardProps {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
title?: React.ReactNode;
|
|
5
|
+
subtitle?: React.ReactNode;
|
|
6
|
+
headerRight?: React.ReactNode;
|
|
7
|
+
pad?: string;
|
|
8
|
+
noPad?: boolean;
|
|
9
|
+
className?: string;
|
|
10
|
+
bodyClassName?: string;
|
|
11
|
+
/** Optional outer style override — merges over the default card surface. */
|
|
12
|
+
style?: CSSProperties;
|
|
13
|
+
}
|
|
14
|
+
export declare function Card({ children, title, subtitle, headerRight, pad, noPad, className, bodyClassName, style, }: CardProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
//# sourceMappingURL=Card.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../src/swebrain/atoms/Card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAI3C,MAAM,WAAW,SAAS;IACxB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,4EAA4E;IAC5E,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB;AAED,wBAAgB,IAAI,CAAC,EACnB,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,WAAW,EACX,GAAsB,EACtB,KAAa,EACb,SAAS,EACT,aAAa,EACb,KAAK,GACN,EAAE,SAAS,2CAiEX"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface ChipProps {
|
|
2
|
+
children: React.ReactNode;
|
|
3
|
+
/** Any valid CSS color, e.g. "hsl(var(--status-running-bg))" */
|
|
4
|
+
bgColor: string;
|
|
5
|
+
/** Any valid CSS color — text + border ink */
|
|
6
|
+
inkColor: string;
|
|
7
|
+
size?: "sm" | "md" | "lg";
|
|
8
|
+
/** 45-deg repeating stripe overlay for reserved/degraded states */
|
|
9
|
+
hatched?: boolean;
|
|
10
|
+
active?: boolean;
|
|
11
|
+
onClick?: () => void;
|
|
12
|
+
className?: string;
|
|
13
|
+
"aria-label"?: string;
|
|
14
|
+
role?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare function Chip({ children, bgColor, inkColor, size, hatched, active, onClick, className, "aria-label": ariaLabel, role, }: ChipProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
//# sourceMappingURL=Chip.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Chip.d.ts","sourceRoot":"","sources":["../../../src/swebrain/atoms/Chip.tsx"],"names":[],"mappings":"AAGA,MAAM,WAAW,SAAS;IACxB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,gEAAgE;IAChE,OAAO,EAAE,MAAM,CAAC;IAChB,8CAA8C;IAC9C,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,mEAAmE;IACnE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAWD,wBAAgB,IAAI,CAAC,EACnB,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,IAAW,EACX,OAAe,EACf,MAAc,EACd,OAAO,EACP,SAAS,EACT,YAAY,EAAE,SAAS,EACvB,IAAI,GACL,EAAE,SAAS,2CAsDX"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export interface DurationProps {
|
|
2
|
+
ms: number;
|
|
3
|
+
precision?: "auto" | "s" | "ms";
|
|
4
|
+
className?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function Duration({ ms, precision, className, }: DurationProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=Duration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Duration.d.ts","sourceRoot":"","sources":["../../../src/swebrain/atoms/Duration.tsx"],"names":[],"mappings":"AAEA,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,CAAC,EAAE,MAAM,GAAG,GAAG,GAAG,IAAI,CAAC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AA6CD,wBAAgB,QAAQ,CAAC,EACvB,EAAE,EACF,SAAkB,EAClB,SAAS,GACV,EAAE,aAAa,2CAgBf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EmptyCell.d.ts","sourceRoot":"","sources":["../../../src/swebrain/atoms/EmptyCell.tsx"],"names":[],"mappings":"AAGA,MAAM,WAAW,cAAc;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,SAAS,CAAC,EAAE,SAAS,EAAE,EAAE,cAAc,2CAetD"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface HandProps {
|
|
2
|
+
children: React.ReactNode;
|
|
3
|
+
size?: number;
|
|
4
|
+
color?: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function Hand({ children, size, color, className, }: HandProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=Hand.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Hand.d.ts","sourceRoot":"","sources":["../../../src/swebrain/atoms/Hand.tsx"],"names":[],"mappings":"AAGA,MAAM,WAAW,SAAS;IACxB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,IAAI,CAAC,EACnB,QAAQ,EACR,IAAS,EACT,KAA6B,EAC7B,SAAS,GACV,EAAE,SAAS,2CAcX"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface IDProps {
|
|
2
|
+
value: string;
|
|
3
|
+
truncate?: number;
|
|
4
|
+
copyable?: boolean;
|
|
5
|
+
muted?: boolean;
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare function ID({ value, truncate, copyable, muted, className, }: IDProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
//# sourceMappingURL=ID.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ID.d.ts","sourceRoot":"","sources":["../../../src/swebrain/atoms/ID.tsx"],"names":[],"mappings":"AAIA,MAAM,WAAW,OAAO;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAYD,wBAAgB,EAAE,CAAC,EACjB,KAAK,EACL,QAAQ,EACR,QAAe,EACf,KAAa,EACb,SAAS,GACV,EAAE,OAAO,2CAkET"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface IdTagProps {
|
|
2
|
+
id: string;
|
|
3
|
+
prefix?: string;
|
|
4
|
+
truncate?: number;
|
|
5
|
+
copyable?: boolean;
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare function IdTag({ id, prefix, truncate, copyable, className, }: IdTagProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
//# sourceMappingURL=IdTag.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IdTag.d.ts","sourceRoot":"","sources":["../../../src/swebrain/atoms/IdTag.tsx"],"names":[],"mappings":"AAGA,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAoBD,wBAAgB,KAAK,CAAC,EACpB,EAAE,EACF,MAAM,EACN,QAAY,EACZ,QAAe,EACf,SAAS,GACV,EAAE,UAAU,2CAuCZ"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export interface KVProps {
|
|
2
|
+
rows: Array<[label: React.ReactNode, value: React.ReactNode]>;
|
|
3
|
+
labelWidth?: number;
|
|
4
|
+
className?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function KV({ rows, labelWidth, className }: KVProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=KV.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KV.d.ts","sourceRoot":"","sources":["../../../src/swebrain/atoms/KV.tsx"],"names":[],"mappings":"AAGA,MAAM,WAAW,OAAO;IACtB,IAAI,EAAE,KAAK,CAAC,CAAC,KAAK,EAAE,KAAK,CAAC,SAAS,EAAE,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC;IAC9D,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,EAAE,CAAC,EAAE,IAAI,EAAE,UAAgB,EAAE,SAAS,EAAE,EAAE,OAAO,2CA0ChE"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export interface LiveIndicatorProps {
|
|
2
|
+
active: boolean;
|
|
3
|
+
label?: string;
|
|
4
|
+
className?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function LiveIndicator({ active, label, className, }: LiveIndicatorProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=LiveIndicator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LiveIndicator.d.ts","sourceRoot":"","sources":["../../../src/swebrain/atoms/LiveIndicator.tsx"],"names":[],"mappings":"AAEA,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,aAAa,CAAC,EAC5B,MAAM,EACN,KAAc,EACd,SAAS,GACV,EAAE,kBAAkB,2CAyBpB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { PoolId } from "./pool-tokens";
|
|
2
|
+
export type { PoolId } from "./pool-tokens";
|
|
3
|
+
export interface PoolChipProps {
|
|
4
|
+
pool: PoolId;
|
|
5
|
+
size?: "sm" | "md" | "lg";
|
|
6
|
+
iconSize?: number;
|
|
7
|
+
showIcon?: boolean;
|
|
8
|
+
showLabel?: boolean;
|
|
9
|
+
active?: boolean;
|
|
10
|
+
onClick?: () => void;
|
|
11
|
+
className?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare function PoolChip({ pool, size, iconSize, showIcon, showLabel, active, onClick, className, }: PoolChipProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
//# sourceMappingURL=PoolChip.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PoolChip.d.ts","sourceRoot":"","sources":["../../../src/swebrain/atoms/PoolChip.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAE5C,YAAY,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAE5C,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,QAAQ,CAAC,EACvB,IAAI,EACJ,IAAW,EACX,QAAQ,EACR,QAAe,EACf,SAAgB,EAChB,MAAc,EACd,OAAO,EACP,SAAS,GACV,EAAE,aAAa,2CA8Bf"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface RowProps {
|
|
2
|
+
children: React.ReactNode;
|
|
3
|
+
onClick?: () => void;
|
|
4
|
+
selected?: boolean;
|
|
5
|
+
accentColor?: string;
|
|
6
|
+
height?: string;
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function Row({ children, onClick, selected, accentColor, height, className, }: RowProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
//# sourceMappingURL=Row.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Row.d.ts","sourceRoot":"","sources":["../../../src/swebrain/atoms/Row.tsx"],"names":[],"mappings":"AAEA,MAAM,WAAW,QAAQ;IACvB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,GAAG,CAAC,EAClB,QAAQ,EACR,OAAO,EACP,QAAgB,EAChB,WAAmC,EACnC,MAAiC,EACjC,SAAS,GACV,EAAE,QAAQ,2CAoDV"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface SparklineProps {
|
|
2
|
+
data: number[];
|
|
3
|
+
width?: number;
|
|
4
|
+
height?: number;
|
|
5
|
+
color?: string;
|
|
6
|
+
fill?: string;
|
|
7
|
+
strokeWidth?: number;
|
|
8
|
+
markLast?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare function Sparkline({ data, width, height, color, fill, strokeWidth, markLast, }: SparklineProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
//# sourceMappingURL=Sparkline.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Sparkline.d.ts","sourceRoot":"","sources":["../../../src/swebrain/atoms/Sparkline.tsx"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,wBAAgB,SAAS,CAAC,EACxB,IAAI,EACJ,KAAW,EACX,MAAW,EACX,KAAsC,EACtC,IAAI,EACJ,WAAiB,EACjB,QAAgB,GACjB,EAAE,cAAc,2CA+DhB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { StatusVariant } from "./tokens";
|
|
2
|
+
export type { StatusVariant } from "./tokens";
|
|
3
|
+
export interface StatusBadgeProps {
|
|
4
|
+
status: StatusVariant;
|
|
5
|
+
size?: "sm" | "md" | "lg";
|
|
6
|
+
withDot?: boolean;
|
|
7
|
+
label?: string;
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function StatusBadge({ status, size, withDot, label, className, }: StatusBadgeProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
//# sourceMappingURL=StatusBadge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StatusBadge.d.ts","sourceRoot":"","sources":["../../../src/swebrain/atoms/StatusBadge.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE9C,YAAY,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE9C,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,aAAa,CAAC;IACtB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAYD,wBAAgB,WAAW,CAAC,EAC1B,MAAM,EACN,IAAW,EACX,OAAe,EACf,KAAK,EACL,SAAS,GACV,EAAE,gBAAgB,2CAwBlB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { StatusVariant } from "./tokens";
|
|
2
|
+
export type StatusDotVariant = StatusVariant;
|
|
3
|
+
export interface StatusDotProps {
|
|
4
|
+
status: StatusVariant;
|
|
5
|
+
size?: "sm" | "md";
|
|
6
|
+
pulse?: boolean;
|
|
7
|
+
label?: string;
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function StatusDot({ status, size, pulse, label, className, }: StatusDotProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
//# sourceMappingURL=StatusDot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StatusDot.d.ts","sourceRoot":"","sources":["../../../src/swebrain/atoms/StatusDot.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAG9C,MAAM,MAAM,gBAAgB,GAAG,aAAa,CAAC;AAE7C,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,aAAa,CAAC;IACtB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,SAAS,CAAC,EACxB,MAAM,EACN,IAAW,EACX,KAAK,EACL,KAAK,EACL,SAAS,GACV,EAAE,cAAc,2CA4BhB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface TimestampProps {
|
|
2
|
+
value: string | Date | number;
|
|
3
|
+
format?: "relative" | "absolute" | "both";
|
|
4
|
+
tz?: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function Timestamp({ value, format, tz, className, }: TimestampProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=Timestamp.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Timestamp.d.ts","sourceRoot":"","sources":["../../../src/swebrain/atoms/Timestamp.tsx"],"names":[],"mappings":"AAIA,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAAC;IAC9B,MAAM,CAAC,EAAE,UAAU,GAAG,UAAU,GAAG,MAAM,CAAC;IAC1C,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAmCD,wBAAgB,SAAS,CAAC,EACxB,KAAK,EACL,MAAmB,EACnB,EAAE,EACF,SAAS,GACV,EAAE,cAAc,2CA4BhB"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export { T } from "./tokens";
|
|
2
|
+
export type { StatusVariant } from "./tokens";
|
|
3
|
+
export { POOL_TOKENS, POOL_IDS } from "./pool-tokens";
|
|
4
|
+
export type { PoolToken } from "./pool-tokens";
|
|
5
|
+
export { Card } from "./Card";
|
|
6
|
+
export type { CardProps } from "./Card";
|
|
7
|
+
export { Chip } from "./Chip";
|
|
8
|
+
export type { ChipProps } from "./Chip";
|
|
9
|
+
export { Duration } from "./Duration";
|
|
10
|
+
export type { DurationProps } from "./Duration";
|
|
11
|
+
export { EmptyCell } from "./EmptyCell";
|
|
12
|
+
export type { EmptyCellProps } from "./EmptyCell";
|
|
13
|
+
export { Hand } from "./Hand";
|
|
14
|
+
export type { HandProps } from "./Hand";
|
|
15
|
+
export { ID } from "./ID";
|
|
16
|
+
export type { IDProps } from "./ID";
|
|
17
|
+
export { IdTag } from "./IdTag";
|
|
18
|
+
export { KV } from "./KV";
|
|
19
|
+
export type { KVProps } from "./KV";
|
|
20
|
+
export { LiveIndicator } from "./LiveIndicator";
|
|
21
|
+
export type { LiveIndicatorProps } from "./LiveIndicator";
|
|
22
|
+
export { PoolChip } from "./PoolChip";
|
|
23
|
+
export type { PoolChipProps, PoolId } from "./PoolChip";
|
|
24
|
+
export { Row } from "./Row";
|
|
25
|
+
export type { RowProps } from "./Row";
|
|
26
|
+
export { Sparkline } from "./Sparkline";
|
|
27
|
+
export type { SparklineProps } from "./Sparkline";
|
|
28
|
+
export { StatusBadge } from "./StatusBadge";
|
|
29
|
+
export type { StatusBadgeProps } from "./StatusBadge";
|
|
30
|
+
export { StatusDot } from "./StatusDot";
|
|
31
|
+
export type { StatusDotProps, StatusDotVariant } from "./StatusDot";
|
|
32
|
+
export { Timestamp } from "./Timestamp";
|
|
33
|
+
export type { TimestampProps } from "./Timestamp";
|
|
34
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/swebrain/atoms/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAC7B,YAAY,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACtD,YAAY,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE/C,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,YAAY,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,YAAY,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,YAAY,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACxC,OAAO,EAAE,EAAE,EAAE,MAAM,MAAM,CAAC;AAC1B,YAAY,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,EAAE,EAAE,MAAM,MAAM,CAAC;AAC1B,YAAY,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AACxD,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5B,YAAY,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,YAAY,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AACpE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { LucideIcon } from "lucide-react";
|
|
2
|
+
export type PoolId = "events_inbound" | "events_change" | "events_outbound" | "interactive" | "batch" | "onboarding" | "billing" | "crm_sync";
|
|
3
|
+
export interface PoolToken {
|
|
4
|
+
id: PoolId;
|
|
5
|
+
label: string;
|
|
6
|
+
icon: LucideIcon;
|
|
7
|
+
/** CSS var name (without `var()`) — resolves per active theme */
|
|
8
|
+
bgVar: `--pool-${string}-bg`;
|
|
9
|
+
inkVar: `--pool-${string}-ink`;
|
|
10
|
+
reserved: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare const POOL_TOKENS: Record<PoolId, PoolToken>;
|
|
13
|
+
export declare const POOL_IDS: PoolId[];
|
|
14
|
+
//# sourceMappingURL=pool-tokens.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pool-tokens.d.ts","sourceRoot":"","sources":["../../../src/swebrain/atoms/pool-tokens.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAY/C,MAAM,MAAM,MAAM,GACd,gBAAgB,GAChB,eAAe,GACf,iBAAiB,GACjB,aAAa,GACb,OAAO,GACP,YAAY,GACZ,SAAS,GACT,UAAU,CAAC;AAEf,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,UAAU,CAAC;IACjB,iEAAiE;IACjE,KAAK,EAAE,UAAU,MAAM,KAAK,CAAC;IAC7B,MAAM,EAAE,UAAU,MAAM,MAAM,CAAC;IAC/B,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CASjD,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,MAAM,EAAyC,CAAC"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Typed wrapper over CSS custom properties.
|
|
3
|
+
* All values are references — CSS vars remain the source of truth.
|
|
4
|
+
* Import T in atoms; never import raw hex or px strings elsewhere.
|
|
5
|
+
*/
|
|
6
|
+
export declare const T: {
|
|
7
|
+
readonly fz: {
|
|
8
|
+
readonly micro: "var(--fz-micro)";
|
|
9
|
+
readonly tiny: "var(--fz-tiny)";
|
|
10
|
+
readonly small: "var(--fz-small)";
|
|
11
|
+
readonly base: "var(--fz-base)";
|
|
12
|
+
readonly md: "var(--fz-md)";
|
|
13
|
+
readonly lg: "var(--fz-lg)";
|
|
14
|
+
readonly xl: "var(--fz-xl)";
|
|
15
|
+
readonly xxl: "var(--fz-xxl)";
|
|
16
|
+
readonly hero: "var(--fz-hero)";
|
|
17
|
+
};
|
|
18
|
+
readonly lh: {
|
|
19
|
+
readonly tight: "var(--lh-tight)";
|
|
20
|
+
readonly base: "var(--lh-base)";
|
|
21
|
+
readonly loose: "var(--lh-loose)";
|
|
22
|
+
};
|
|
23
|
+
readonly state: {
|
|
24
|
+
readonly hoverBg: "hsl(var(--hover-bg))";
|
|
25
|
+
readonly rowSelectedBg: "hsl(var(--row-selected-bg))";
|
|
26
|
+
readonly focusRing: "hsl(var(--focus-ring))";
|
|
27
|
+
};
|
|
28
|
+
readonly font: {
|
|
29
|
+
readonly sans: "var(--font-sans)";
|
|
30
|
+
readonly serif: "var(--font-serif)";
|
|
31
|
+
readonly mono: "var(--font-mono)";
|
|
32
|
+
readonly hand: "var(--font-hand)";
|
|
33
|
+
};
|
|
34
|
+
readonly density: {
|
|
35
|
+
readonly rowH: "var(--row-height-cozy)";
|
|
36
|
+
readonly rowPadX: "var(--row-pad-x)";
|
|
37
|
+
readonly rowPadY: "var(--row-pad-y)";
|
|
38
|
+
};
|
|
39
|
+
readonly radius: {
|
|
40
|
+
readonly sm: "var(--radius-sm)";
|
|
41
|
+
readonly md: "var(--radius-md)";
|
|
42
|
+
readonly lg: "var(--radius-lg)";
|
|
43
|
+
readonly pill: "var(--radius-pill)";
|
|
44
|
+
};
|
|
45
|
+
readonly shadow: {
|
|
46
|
+
readonly s1: "var(--shadow-1)";
|
|
47
|
+
readonly s2: "var(--shadow-2)";
|
|
48
|
+
readonly s3: "var(--shadow-3)";
|
|
49
|
+
readonly chalk: "var(--chalk-inset)";
|
|
50
|
+
};
|
|
51
|
+
readonly motion: {
|
|
52
|
+
readonly fast: "var(--motion-fast)";
|
|
53
|
+
readonly mid: "var(--motion-mid)";
|
|
54
|
+
readonly slow: "var(--motion-slow)";
|
|
55
|
+
readonly ease: "var(--ease-out)";
|
|
56
|
+
};
|
|
57
|
+
readonly statusVar: {
|
|
58
|
+
pending: {
|
|
59
|
+
bg: string;
|
|
60
|
+
ink: string;
|
|
61
|
+
dot: string;
|
|
62
|
+
};
|
|
63
|
+
running: {
|
|
64
|
+
bg: string;
|
|
65
|
+
ink: string;
|
|
66
|
+
dot: string;
|
|
67
|
+
};
|
|
68
|
+
waiting: {
|
|
69
|
+
bg: string;
|
|
70
|
+
ink: string;
|
|
71
|
+
dot: string;
|
|
72
|
+
};
|
|
73
|
+
completed: {
|
|
74
|
+
bg: string;
|
|
75
|
+
ink: string;
|
|
76
|
+
dot: string;
|
|
77
|
+
};
|
|
78
|
+
failed: {
|
|
79
|
+
bg: string;
|
|
80
|
+
ink: string;
|
|
81
|
+
dot: string;
|
|
82
|
+
};
|
|
83
|
+
timed_out: {
|
|
84
|
+
bg: string;
|
|
85
|
+
ink: string;
|
|
86
|
+
dot: string;
|
|
87
|
+
};
|
|
88
|
+
canceled: {
|
|
89
|
+
bg: string;
|
|
90
|
+
ink: string;
|
|
91
|
+
dot: string;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
export type StatusVariant = keyof typeof T.statusVar;
|
|
96
|
+
//# sourceMappingURL=tokens.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../../src/swebrain/atoms/tokens.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6DJ,CAAC;AAEX,MAAM,MAAM,aAAa,GAAG,MAAM,OAAO,CAAC,CAAC,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/swebrain/index.ts"],"names":[],"mappings":"AAIA,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"favs.d.ts","sourceRoot":"","sources":["../../../src/swebrain/lib/favs.ts"],"names":[],"mappings":"AAqBA,wBAAgB,OAAO;;kBAaY,MAAM;EAQxC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface VendorLogo {
|
|
2
|
+
src: string;
|
|
3
|
+
name: string;
|
|
4
|
+
}
|
|
5
|
+
/** Vendors with a real logo mark. Keys are the ids used across the surfaces. */
|
|
6
|
+
export declare const VENDOR_LOGOS: Record<string, VendorLogo>;
|
|
7
|
+
/** Vendors with no mark yet — tinted letter chip. Brand-ish hues kept from the wireframe. */
|
|
8
|
+
export declare const VENDOR_FALLBACK: Record<string, {
|
|
9
|
+
letter: string;
|
|
10
|
+
bg: string;
|
|
11
|
+
fg: string;
|
|
12
|
+
name: string;
|
|
13
|
+
}>;
|
|
14
|
+
//# sourceMappingURL=vendors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vendors.d.ts","sourceRoot":"","sources":["../../../src/swebrain/lib/vendors.ts"],"names":[],"mappings":"AAeA,MAAM,WAAW,UAAU;IACzB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;CACd;AAED,gFAAgF;AAChF,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAiBnD,CAAC;AAEF,6FAA6F;AAC7F,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAUpG,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type PoolId } from "../atoms";
|
|
2
|
+
export interface PoolLegendProps {
|
|
3
|
+
selected: PoolId | null;
|
|
4
|
+
onSelect: (pool: PoolId | null) => void;
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function PoolLegend({ selected, onSelect, className }: PoolLegendProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=PoolLegend.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PoolLegend.d.ts","sourceRoot":"","sources":["../../../src/swebrain/molecules/PoolLegend.tsx"],"names":[],"mappings":"AACA,OAAO,EAA4B,KAAK,MAAM,EAAE,MAAM,UAAU,CAAC;AAEjE,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IACxC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,UAAU,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,eAAe,2CA8C5E"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export type SearchInputKind = "uuid" | "text";
|
|
2
|
+
export interface SearchInputParsed {
|
|
3
|
+
raw: string;
|
|
4
|
+
parsed: {
|
|
5
|
+
kind: SearchInputKind;
|
|
6
|
+
value: string;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export declare function parseSearch(raw: string): SearchInputParsed;
|
|
10
|
+
export interface SearchInputProps {
|
|
11
|
+
value: string;
|
|
12
|
+
onChange: (next: SearchInputParsed) => void;
|
|
13
|
+
placeholder?: string;
|
|
14
|
+
className?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare function SearchInput({ value, onChange, placeholder, className, }: SearchInputProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
//# sourceMappingURL=SearchInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SearchInput.d.ts","sourceRoot":"","sources":["../../../src/swebrain/molecules/SearchInput.tsx"],"names":[],"mappings":"AAIA,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,MAAM,CAAC;AAE9C,MAAM,WAAW,iBAAiB;IAChC,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE;QAAE,IAAI,EAAE,eAAe,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;CAClD;AAKD,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,iBAAiB,CAM1D;AAED,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,IAAI,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAC5C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,QAAQ,EACR,WAAmD,EACnD,SAAS,GACV,EAAE,gBAAgB,2CAgBlB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export interface StatCardProps {
|
|
3
|
+
label: string;
|
|
4
|
+
value: ReactNode;
|
|
5
|
+
sublabel?: ReactNode;
|
|
6
|
+
tone?: "default" | "positive" | "warning" | "destructive";
|
|
7
|
+
loading?: boolean;
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function StatCard({ label, value, sublabel, tone, loading, className, }: StatCardProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
//# sourceMappingURL=StatCard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StatCard.d.ts","sourceRoot":"","sources":["../../../src/swebrain/molecules/StatCard.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,SAAS,CAAC;IACjB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,IAAI,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,SAAS,GAAG,aAAa,CAAC;IAC1D,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AASD,wBAAgB,QAAQ,CAAC,EACvB,KAAK,EACL,KAAK,EACL,QAAQ,EACR,IAAgB,EAChB,OAAO,EACP,SAAS,GACV,EAAE,aAAa,2CA0Bf"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type TimeRangePreset = "last_1h" | "last_24h" | "custom";
|
|
2
|
+
export interface TimeRange {
|
|
3
|
+
preset: TimeRangePreset;
|
|
4
|
+
sinceISO: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Computes the `since` timestamp for a preset relative to now, truncated to
|
|
8
|
+
* the minute so React Query keys stay stable across re-renders. A 1-minute
|
|
9
|
+
* drift is fine — we refetch every 3s independently.
|
|
10
|
+
*/
|
|
11
|
+
export declare function resolveRange(preset: TimeRangePreset, customSinceISO?: string): TimeRange;
|
|
12
|
+
export interface TimeRangePickerProps {
|
|
13
|
+
value: TimeRangePreset;
|
|
14
|
+
onChange: (next: TimeRangePreset) => void;
|
|
15
|
+
className?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare function TimeRangePicker({ value, onChange, className, }: TimeRangePickerProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
//# sourceMappingURL=TimeRangePicker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TimeRangePicker.d.ts","sourceRoot":"","sources":["../../../src/swebrain/molecules/TimeRangePicker.tsx"],"names":[],"mappings":"AAEA,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,UAAU,GAAG,QAAQ,CAAC;AAEhE,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,eAAe,CAAC;IACxB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAC1B,MAAM,EAAE,eAAe,EACvB,cAAc,CAAC,EAAE,MAAM,GACtB,SAAS,CAmBX;AAED,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,eAAe,CAAC;IACvB,QAAQ,EAAE,CAAC,IAAI,EAAE,eAAe,KAAK,IAAI,CAAC;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAOD,wBAAgB,eAAe,CAAC,EAC9B,KAAK,EACL,QAAQ,EACR,SAAS,GACV,EAAE,oBAAoB,2CA8BtB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { SearchInput, parseSearch } from "./SearchInput";
|
|
2
|
+
export type { SearchInputProps, SearchInputKind, SearchInputParsed } from "./SearchInput";
|
|
3
|
+
export { TimeRangePicker, resolveRange } from "./TimeRangePicker";
|
|
4
|
+
export type { TimeRangePickerProps, TimeRangePreset, TimeRange } from "./TimeRangePicker";
|
|
5
|
+
export { PoolLegend } from "./PoolLegend";
|
|
6
|
+
export type { PoolLegendProps } from "./PoolLegend";
|
|
7
|
+
export { StatCard } from "./StatCard";
|
|
8
|
+
export type { StatCardProps } from "./StatCard";
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/swebrain/molecules/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACzD,YAAY,EAAE,gBAAgB,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAE1F,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAClE,YAAY,EAAE,oBAAoB,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE1F,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createEntityHooks.d.ts","sourceRoot":"","sources":["../../src/sync/createEntityHooks.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EACV,gBAAgB,EAChB,WAAW,
|
|
1
|
+
{"version":3,"file":"createEntityHooks.d.ts","sourceRoot":"","sources":["../../src/sync/createEntityHooks.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EACV,gBAAgB,EAChB,WAAW,EAMZ,MAAM,YAAY,CAAA;AAEnB;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,iBAAiB,CAC/B,OAAO,SAAS;IAAE,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,EACtC,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,EAC1B,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,EAC1B,MAAM,EAAE,gBAAgB,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,GAAG,WAAW,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,CAwgB7F"}
|
package/dist/sync/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { createEntityHooks } from './createEntityHooks.js';
|
|
2
2
|
export { createStore } from './createStore.js';
|
|
3
3
|
export { EntityStoreProvider, useStore } from './EntityStoreProvider.js';
|
|
4
|
-
export type { EntityHookConfig, EntityHooks, EntityApi, EntityQueryKeys, ListParams, WhereClause, UseListOptions, UseGetOptions, UseListResult, UseGetResult, } from './types.js';
|
|
4
|
+
export type { EntityHookConfig, EntityHooks, EntityApi, EntityQueryKeys, Page, ListQuery, ListParams, WhereClause, UseListOptions, UseGetOptions, UseListResult, UseGetResult, } from './types.js';
|
|
5
5
|
export type { StoreConfig, Store, Resolvers, Lookups, LookupMap, } from './createStore.js';
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/sync/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sync/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,EAAE,mBAAmB,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAA;AAExE,YAAY,EACV,gBAAgB,EAChB,WAAW,EACX,SAAS,EACT,eAAe,EACf,UAAU,EACV,WAAW,EACX,cAAc,EACd,aAAa,EACb,aAAa,EACb,YAAY,GACb,MAAM,YAAY,CAAA;AAEnB,YAAY,EACV,WAAW,EACX,KAAK,EACL,SAAS,EACT,OAAO,EACP,SAAS,GACV,MAAM,kBAAkB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sync/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,EAAE,mBAAmB,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAA;AAExE,YAAY,EACV,gBAAgB,EAChB,WAAW,EACX,SAAS,EACT,eAAe,EACf,IAAI,EACJ,SAAS,EACT,UAAU,EACV,WAAW,EACX,cAAc,EACd,aAAa,EACb,aAAa,EACb,YAAY,GACb,MAAM,YAAY,CAAA;AAEnB,YAAY,EACV,WAAW,EACX,KAAK,EACL,SAAS,EACT,OAAO,EACP,SAAS,GACV,MAAM,kBAAkB,CAAA"}
|