@hanzo/ui 8.0.2 → 8.0.5
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/package.json +63 -4
- package/src/billing.ts +9 -0
- package/src/canvas.ts +11 -0
- package/src/cd/layout.ts +184 -0
- package/src/cd/status.ts +158 -0
- package/src/cd/time.ts +52 -0
- package/src/cd/types.ts +318 -0
- package/src/dashboard.ts +8 -0
- package/src/gitops.ts +5 -0
- package/src/network.ts +11 -0
- package/src/product/AppHeader.tsx +175 -0
- package/src/product/BrandMark.tsx +27 -0
- package/src/product/HanzoMark.tsx +7 -4
- package/src/product/OrgSwitcher.tsx +332 -0
- package/src/product/index.ts +10 -5
- package/src/product/scope.test.ts +92 -0
- package/src/product/scope.ts +123 -0
- package/src/usage.ts +8 -0
- package/src/wallet.ts +11 -0
- package/types/billing.d.ts +2 -0
- package/types/billing.d.ts.map +1 -0
- package/types/canvas.d.ts +2 -0
- package/types/canvas.d.ts.map +1 -0
- package/types/cd/layout.d.ts +57 -0
- package/types/cd/layout.d.ts.map +1 -0
- package/types/cd/status.d.ts +50 -0
- package/types/cd/status.d.ts.map +1 -0
- package/types/cd/time.d.ts +15 -0
- package/types/cd/time.d.ts.map +1 -0
- package/types/cd/types.d.ts +269 -0
- package/types/cd/types.d.ts.map +1 -0
- package/types/dashboard.d.ts +2 -0
- package/types/dashboard.d.ts.map +1 -0
- package/types/gitops.d.ts +2 -0
- package/types/gitops.d.ts.map +1 -0
- package/types/network.d.ts +2 -0
- package/types/network.d.ts.map +1 -0
- package/types/product/AppHeader.d.ts +49 -0
- package/types/product/AppHeader.d.ts.map +1 -0
- package/types/product/BrandMark.d.ts +8 -0
- package/types/product/BrandMark.d.ts.map +1 -0
- package/types/product/Charts.d.ts +5 -5
- package/types/product/Charts.d.ts.map +1 -1
- package/types/product/ComboBox.d.ts +1 -1
- package/types/product/ComboBox.d.ts.map +1 -1
- package/types/product/DataTable.d.ts +1 -1
- package/types/product/DataTable.d.ts.map +1 -1
- package/types/product/Donut.d.ts +1 -1
- package/types/product/Donut.d.ts.map +1 -1
- package/types/product/EmptyState.d.ts +1 -1
- package/types/product/EmptyState.d.ts.map +1 -1
- package/types/product/FadeIn.d.ts +1 -1
- package/types/product/FadeIn.d.ts.map +1 -1
- package/types/product/Field.d.ts +6 -6
- package/types/product/Field.d.ts.map +1 -1
- package/types/product/HanzoMark.d.ts +6 -5
- package/types/product/HanzoMark.d.ts.map +1 -1
- package/types/product/Metric.d.ts +4 -4
- package/types/product/Metric.d.ts.map +1 -1
- package/types/product/OrgSwitcher.d.ts +19 -0
- package/types/product/OrgSwitcher.d.ts.map +1 -0
- package/types/product/PageHeader.d.ts +1 -1
- package/types/product/PageHeader.d.ts.map +1 -1
- package/types/product/PrimaryButton.d.ts +1 -1
- package/types/product/PrimaryButton.d.ts.map +1 -1
- package/types/product/ProductIcon.d.ts +1 -1
- package/types/product/ProductIcon.d.ts.map +1 -1
- package/types/product/ProviderLogo.d.ts +2 -2
- package/types/product/ProviderLogo.d.ts.map +1 -1
- package/types/product/Reorder.d.ts +1 -1
- package/types/product/Reorder.d.ts.map +1 -1
- package/types/product/SelectMenu.d.ts +1 -1
- package/types/product/SelectMenu.d.ts.map +1 -1
- package/types/product/SlideOver.d.ts +1 -1
- package/types/product/SlideOver.d.ts.map +1 -1
- package/types/product/StatusTag.d.ts +1 -1
- package/types/product/StatusTag.d.ts.map +1 -1
- package/types/product/ThemeToggle.d.ts +1 -1
- package/types/product/ThemeToggle.d.ts.map +1 -1
- package/types/product/Toast.d.ts +1 -1
- package/types/product/Toast.d.ts.map +1 -1
- package/types/product/index.d.ts +4 -2
- package/types/product/index.d.ts.map +1 -1
- package/types/product/scope.d.ts +56 -0
- package/types/product/scope.d.ts.map +1 -0
- package/types/usage.d.ts +2 -0
- package/types/usage.d.ts.map +1 -0
- package/types/wallet.d.ts +2 -0
- package/types/wallet.d.ts.map +1 -0
- package/src/product/social/CampaignCard.tsx +0 -62
- package/src/product/social/ChannelBadge.tsx +0 -60
- package/src/product/social/PostCard.tsx +0 -80
- package/src/product/social/index.ts +0 -6
- package/src/product/usage/UsageDashboard.tsx +0 -54
- package/src/product/usage/UsageMeter.tsx +0 -75
- package/src/product/usage/UsageProviderCard.tsx +0 -153
- package/src/product/usage/index.ts +0 -10
- package/types/product/social/CampaignCard.d.ts +0 -14
- package/types/product/social/CampaignCard.d.ts.map +0 -1
- package/types/product/social/ChannelBadge.d.ts +0 -7
- package/types/product/social/ChannelBadge.d.ts.map +0 -1
- package/types/product/social/PostCard.d.ts +0 -16
- package/types/product/social/PostCard.d.ts.map +0 -1
- package/types/product/social/index.d.ts +0 -4
- package/types/product/social/index.d.ts.map +0 -1
- package/types/product/usage/UsageDashboard.d.ts +0 -10
- package/types/product/usage/UsageDashboard.d.ts.map +0 -1
- package/types/product/usage/UsageMeter.d.ts +0 -15
- package/types/product/usage/UsageMeter.d.ts.map +0 -1
- package/types/product/usage/UsageProviderCard.d.ts +0 -35
- package/types/product/usage/UsageProviderCard.d.ts.map +0 -1
- package/types/product/usage/index.d.ts +0 -4
- package/types/product/usage/index.d.ts.map +0 -1
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CD status → colour, tone, label, priority — the ONE semantic mapping, pure and
|
|
3
|
+
* unit-tested. Everything visual reads from here so a health/sync verdict looks
|
|
4
|
+
* identical in a pill, a tree node's accent, a mini-bar, and the minimap.
|
|
5
|
+
*
|
|
6
|
+
* The hues keep the GitOps meaning (green = healthy/synced, amber = out-of-sync /
|
|
7
|
+
* missing, red = degraded, blue = progressing, purple = suspended, grey =
|
|
8
|
+
* unknown) but are re-tuned for a dark-first surface so they stay legible on
|
|
9
|
+
* near-black without the washed-out look of the light-theme originals.
|
|
10
|
+
*/
|
|
11
|
+
import type { HealthStatus, OperationPhase, PodPhase, SyncStatus } from './types';
|
|
12
|
+
/** A coarse tone bucket, shared with the rest of @hanzo/ui's tag vocabulary. */
|
|
13
|
+
export type StatusTone = 'green' | 'yellow' | 'red' | 'blue' | 'purple' | 'neutral';
|
|
14
|
+
/** The concrete swatch a status renders in: dot/text hue + a soft chip fill. */
|
|
15
|
+
export interface StatusColor {
|
|
16
|
+
/** The saturated hue — the dot, the accent bar, the pill text. */
|
|
17
|
+
hue: string;
|
|
18
|
+
tone: StatusTone;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Worst-first ordering (lower = worse), so a rollup surfaces the most broken
|
|
22
|
+
* verdict and a sort puts problems on top — matching the GitOps engine's own
|
|
23
|
+
* health precedence.
|
|
24
|
+
*/
|
|
25
|
+
export declare const HEALTH_PRIORITY: Record<HealthStatus, number>;
|
|
26
|
+
export declare const SYNC_PRIORITY: Record<SyncStatus, number>;
|
|
27
|
+
/** Coerce a free-form backend string into a known health code (fails to Unknown). */
|
|
28
|
+
export declare function normalizeHealth(s?: string): HealthStatus;
|
|
29
|
+
/** Coerce a free-form backend string into a known sync code (fails to Unknown). */
|
|
30
|
+
export declare function normalizeSync(s?: string): SyncStatus;
|
|
31
|
+
export declare function healthColor(status: HealthStatus): StatusColor;
|
|
32
|
+
export declare function syncColor(status: SyncStatus): StatusColor;
|
|
33
|
+
export declare function operationColor(phase: OperationPhase): StatusColor;
|
|
34
|
+
export declare function podColor(phase: PodPhase): StatusColor;
|
|
35
|
+
/** The saturated hue for a tone (for callers that already have a tone). */
|
|
36
|
+
export declare function toneHue(tone: StatusTone): string;
|
|
37
|
+
/**
|
|
38
|
+
* Roll a set of resource healths up to the single verdict that best describes
|
|
39
|
+
* the whole — the worst one present. Empty ⇒ `Unknown` (honest, never `Healthy`).
|
|
40
|
+
*/
|
|
41
|
+
export declare function worstHealth(statuses: HealthStatus[]): HealthStatus;
|
|
42
|
+
/** Roll a set of sync verdicts up to one — OutOfSync wins, then Unknown. */
|
|
43
|
+
export declare function worstSync(statuses: SyncStatus[]): SyncStatus;
|
|
44
|
+
/**
|
|
45
|
+
* Parse a `#rgb`/`#rrggbb` hue into an `rgba()` at the given alpha — for the
|
|
46
|
+
* soft chip fills and translucent accents. Non-hex input passes through (so a
|
|
47
|
+
* caller may hand a hue that's already `rgba(...)`).
|
|
48
|
+
*/
|
|
49
|
+
export declare function withAlpha(hex: string, alpha: number): string;
|
|
50
|
+
//# sourceMappingURL=status.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../src/cd/status.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAEjF,gFAAgF;AAChF,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG,MAAM,GAAG,QAAQ,GAAG,SAAS,CAAA;AAEnF,gFAAgF;AAChF,MAAM,WAAW,WAAW;IAC1B,kEAAkE;IAClE,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,UAAU,CAAA;CACjB;AA6CD;;;;GAIG;AACH,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,YAAY,EAAE,MAAM,CAOxD,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAIpD,CAAA;AAKD,qFAAqF;AACrF,wBAAgB,eAAe,CAAC,CAAC,CAAC,EAAE,MAAM,GAAG,YAAY,CAExD;AAED,mFAAmF;AACnF,wBAAgB,aAAa,CAAC,CAAC,CAAC,EAAE,MAAM,GAAG,UAAU,CAEpD;AAED,wBAAgB,WAAW,CAAC,MAAM,EAAE,YAAY,GAAG,WAAW,CAG7D;AAED,wBAAgB,SAAS,CAAC,MAAM,EAAE,UAAU,GAAG,WAAW,CAGzD;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,cAAc,GAAG,WAAW,CAGjE;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,QAAQ,GAAG,WAAW,CAGrD;AAED,2EAA2E;AAC3E,wBAAgB,OAAO,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM,CAEhD;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,QAAQ,EAAE,YAAY,EAAE,GAAG,YAAY,CAKlE;AAED,4EAA4E;AAC5E,wBAAgB,SAAS,CAAC,QAAQ,EAAE,UAAU,EAAE,GAAG,UAAU,CAK5D;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAU5D"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Compact relative time — pure and deterministic given `now`. Future or invalid
|
|
3
|
+
* timestamps degrade honestly (`—` / `now`), never a fabricated duration. Shared
|
|
4
|
+
* by the tile's last-synced, the drawer's created/age, and the history rows.
|
|
5
|
+
*/
|
|
6
|
+
export declare function relativeTime(epochMs: number | undefined | null, now?: number): string;
|
|
7
|
+
/**
|
|
8
|
+
* Parse an ISO-8601 (or any `Date`-parseable) timestamp to epoch **ms**, or
|
|
9
|
+
* `undefined` when absent/unparseable — so the contract's string timestamps
|
|
10
|
+
* (`createdAt`, event times) flow into `relativeTime` without throwing.
|
|
11
|
+
*/
|
|
12
|
+
export declare function toEpochMs(v: string | number | undefined | null): number | undefined;
|
|
13
|
+
/** Relative time for a string/number timestamp (parses, then formats). */
|
|
14
|
+
export declare function relativeTimeOf(v: string | number | undefined | null, now?: number): string;
|
|
15
|
+
//# sourceMappingURL=time.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"time.d.ts","sourceRoot":"","sources":["../../src/cd/time.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,wBAAgB,YAAY,CAC1B,OAAO,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,EAClC,GAAG,GAAE,MAAmB,GACvB,MAAM,CAmBR;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,GAAG,IAAI,GAAG,MAAM,GAAG,SAAS,CASnF;AAED,0EAA0E;AAC1E,wBAAgB,cAAc,CAC5B,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,GAAG,IAAI,EACrC,GAAG,GAAE,MAAmB,GACvB,MAAM,CAER"}
|
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @hanzo/ui/cd — the Hanzo CD (continuous-delivery) data contract.
|
|
3
|
+
*
|
|
4
|
+
* This is the FE↔BE handshake for the `/v1/gitops` API. Every component in this
|
|
5
|
+
* module is presentational and data-prop-driven: a host console fetches these
|
|
6
|
+
* rows (via the injected `GitopsClient`) and hands them to the views. The shapes
|
|
7
|
+
* live in ONE place so the pure folds (status → tone, tree → graph, diff → hunks)
|
|
8
|
+
* are unit-tested in isolation and the visual components never reach into a data
|
|
9
|
+
* layer.
|
|
10
|
+
*
|
|
11
|
+
* The vocabulary mirrors a GitOps engine's model (health/sync verdicts, the
|
|
12
|
+
* owner-reference resource graph, operation phases) so a backend that projects a
|
|
13
|
+
* cluster's live state maps onto it directly, but the names are engine-neutral.
|
|
14
|
+
*
|
|
15
|
+
* Attribution: the information design of these views is a derivative port of the
|
|
16
|
+
* Argo CD web UI (Apache-2.0). See ./NOTICE.
|
|
17
|
+
*/
|
|
18
|
+
/**
|
|
19
|
+
* A resource/application health verdict. `Unknown` is honest — a missing signal
|
|
20
|
+
* is never guessed up to `Healthy`.
|
|
21
|
+
*/
|
|
22
|
+
export type HealthStatus = 'Healthy' | 'Progressing' | 'Degraded' | 'Suspended' | 'Missing' | 'Unknown';
|
|
23
|
+
/** Whether live state matches the desired (Git) state. */
|
|
24
|
+
export type SyncStatus = 'Synced' | 'OutOfSync' | 'Unknown';
|
|
25
|
+
/** The phase of an in-flight sync/rollback operation. */
|
|
26
|
+
export type OperationPhase = 'Running' | 'Terminating' | 'Failed' | 'Error' | 'Succeeded' | 'Pending';
|
|
27
|
+
/** A pod's lifecycle phase (drives the pod-status dot). */
|
|
28
|
+
export type PodPhase = 'Pending' | 'Running' | 'Succeeded' | 'Failed' | 'Unknown';
|
|
29
|
+
/** Per-resource result code within a sync operation. */
|
|
30
|
+
export type SyncResultCode = 'Synced' | 'Pruned' | 'SyncFailed' | 'Unknown';
|
|
31
|
+
/** A group/version/kind/namespace/name coordinate for a cluster object. */
|
|
32
|
+
export interface ResourceRef {
|
|
33
|
+
/** Stable unique id (k8s uid, or a synthesized `group/kind/ns/name`). */
|
|
34
|
+
uid: string;
|
|
35
|
+
group: string;
|
|
36
|
+
version: string;
|
|
37
|
+
kind: string;
|
|
38
|
+
namespace: string;
|
|
39
|
+
name: string;
|
|
40
|
+
}
|
|
41
|
+
/** A labelled datum shown as a chip on a node / in the summary (e.g. `Revision: 3`). */
|
|
42
|
+
export interface InfoItem {
|
|
43
|
+
name: string;
|
|
44
|
+
value: string;
|
|
45
|
+
}
|
|
46
|
+
/** Ingress/service surface of a networked resource (Service, Ingress). */
|
|
47
|
+
export interface ResourceNetworking {
|
|
48
|
+
/** Objects this resource routes to (Service → Pods, Ingress → Service). */
|
|
49
|
+
targetRefs?: ResourceRef[];
|
|
50
|
+
labels?: Record<string, string>;
|
|
51
|
+
/** Externally reachable URLs (a domain's live site). */
|
|
52
|
+
externalURLs?: string[];
|
|
53
|
+
ingress?: {
|
|
54
|
+
hostname?: string;
|
|
55
|
+
ip?: string;
|
|
56
|
+
}[];
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* One node of the live resource graph. Ownership is expressed by `parentRefs`
|
|
60
|
+
* (an object may have several owners); the graph is the transitive closure of
|
|
61
|
+
* those edges rooted at the application. Pure data — no React, no back-refs.
|
|
62
|
+
*/
|
|
63
|
+
export interface ResourceNode extends ResourceRef {
|
|
64
|
+
/** The object(s) that own this one — the edges of the graph. */
|
|
65
|
+
parentRefs?: ResourceRef[];
|
|
66
|
+
/** Health verdict for this object, when the engine computes one. */
|
|
67
|
+
health?: {
|
|
68
|
+
status: HealthStatus;
|
|
69
|
+
message?: string;
|
|
70
|
+
};
|
|
71
|
+
/** Sync verdict for this object (managed objects only). */
|
|
72
|
+
status?: SyncStatus;
|
|
73
|
+
/** Glanceable facts shown as chips (revision, replicas, image tag, …). */
|
|
74
|
+
info?: InfoItem[];
|
|
75
|
+
networkingInfo?: ResourceNetworking;
|
|
76
|
+
images?: string[];
|
|
77
|
+
createdAt?: string;
|
|
78
|
+
/** True for hook/sync-operation objects; `resourceVersion` for freshness. */
|
|
79
|
+
hook?: boolean;
|
|
80
|
+
resourceVersion?: string;
|
|
81
|
+
/** Present on Pod nodes — drives pod-specific rendering. */
|
|
82
|
+
podInfo?: PodInfo;
|
|
83
|
+
}
|
|
84
|
+
/** Extra facts a Pod node carries (containers, phase, restarts, node/host). */
|
|
85
|
+
export interface PodInfo {
|
|
86
|
+
phase: PodPhase;
|
|
87
|
+
/** Reason string when the phase alone is ambiguous (CrashLoopBackOff, …). */
|
|
88
|
+
reason?: string;
|
|
89
|
+
ready?: string;
|
|
90
|
+
restarts?: number;
|
|
91
|
+
node?: string;
|
|
92
|
+
age?: string;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* The full resource graph for an application: the managed nodes plus any
|
|
96
|
+
* orphaned objects (live in the app's namespace but not owned by it).
|
|
97
|
+
*/
|
|
98
|
+
export interface ResourceTree {
|
|
99
|
+
nodes: ResourceNode[];
|
|
100
|
+
orphanedNodes?: ResourceNode[];
|
|
101
|
+
}
|
|
102
|
+
/** Where an application's desired state comes from (a Git repo path @ revision). */
|
|
103
|
+
export interface AppSource {
|
|
104
|
+
repoURL: string;
|
|
105
|
+
path?: string;
|
|
106
|
+
targetRevision?: string;
|
|
107
|
+
chart?: string;
|
|
108
|
+
}
|
|
109
|
+
/** The destination cluster + namespace an application deploys to. */
|
|
110
|
+
export interface AppDestination {
|
|
111
|
+
server?: string;
|
|
112
|
+
name?: string;
|
|
113
|
+
namespace: string;
|
|
114
|
+
}
|
|
115
|
+
/** Revision metadata resolved from the source repo (for the status panel). */
|
|
116
|
+
export interface RevisionMetadata {
|
|
117
|
+
revision: string;
|
|
118
|
+
author?: string;
|
|
119
|
+
date?: string;
|
|
120
|
+
message?: string;
|
|
121
|
+
tags?: string[];
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* A summary of one application — the shape the list/tiles render. Enough to draw
|
|
125
|
+
* a row without fetching the tree.
|
|
126
|
+
*/
|
|
127
|
+
export interface AppSummary {
|
|
128
|
+
name: string;
|
|
129
|
+
namespace?: string;
|
|
130
|
+
project?: string;
|
|
131
|
+
health: HealthStatus;
|
|
132
|
+
sync: SyncStatus;
|
|
133
|
+
/** Short revision (sha/tag) currently reconciled. */
|
|
134
|
+
revision?: string;
|
|
135
|
+
source?: AppSource;
|
|
136
|
+
destination?: AppDestination;
|
|
137
|
+
/** Epoch ms of the last successful sync (rendered relative). */
|
|
138
|
+
lastSyncedAt?: number;
|
|
139
|
+
/** Phase of an in-flight operation, when one is running. */
|
|
140
|
+
operationPhase?: OperationPhase;
|
|
141
|
+
/** Rollup counts of managed resources by health, for the tile mini-bar. */
|
|
142
|
+
resourceCounts?: Partial<Record<HealthStatus, number>>;
|
|
143
|
+
labels?: Record<string, string>;
|
|
144
|
+
}
|
|
145
|
+
/** A single sync/deploy in the history (for the rollback list). */
|
|
146
|
+
export interface DeployRevision {
|
|
147
|
+
/** Monotonic history id — the handle passed to `rollback`. */
|
|
148
|
+
id: number;
|
|
149
|
+
revision: string;
|
|
150
|
+
deployedAt?: number;
|
|
151
|
+
source?: AppSource;
|
|
152
|
+
metadata?: RevisionMetadata;
|
|
153
|
+
}
|
|
154
|
+
/** The result of (or progress of) the most recent sync/rollback operation. */
|
|
155
|
+
export interface OperationState {
|
|
156
|
+
phase: OperationPhase;
|
|
157
|
+
message?: string;
|
|
158
|
+
startedAt?: number;
|
|
159
|
+
finishedAt?: number;
|
|
160
|
+
/** The revision the operation targeted. */
|
|
161
|
+
revision?: string;
|
|
162
|
+
/** Per-resource results (kind/name → code + message). */
|
|
163
|
+
syncResult?: {
|
|
164
|
+
ref: ResourceRef;
|
|
165
|
+
result: SyncResultCode;
|
|
166
|
+
message?: string;
|
|
167
|
+
hookPhase?: string;
|
|
168
|
+
}[];
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* The full application detail — everything the status panel + controls need
|
|
172
|
+
* beyond the tree. Returned by `getApp`.
|
|
173
|
+
*/
|
|
174
|
+
export interface AppDetail extends AppSummary {
|
|
175
|
+
/** Resolved metadata for the reconciled revision. */
|
|
176
|
+
revisionMetadata?: RevisionMetadata;
|
|
177
|
+
/** Deploy/rollout history, newest last (matches engine ordering). */
|
|
178
|
+
history?: DeployRevision[];
|
|
179
|
+
/** In-flight or last-completed operation. */
|
|
180
|
+
operationState?: OperationState;
|
|
181
|
+
/** Free-form conditions/warnings surfaced by the engine. */
|
|
182
|
+
conditions?: {
|
|
183
|
+
type: string;
|
|
184
|
+
message: string;
|
|
185
|
+
lastTransitionTime?: string;
|
|
186
|
+
}[];
|
|
187
|
+
}
|
|
188
|
+
/** A k8s-style event row shown in the node drawer's Events tab. */
|
|
189
|
+
export interface ResourceEvent {
|
|
190
|
+
reason: string;
|
|
191
|
+
message: string;
|
|
192
|
+
type?: 'Normal' | 'Warning';
|
|
193
|
+
count?: number;
|
|
194
|
+
firstSeen?: string;
|
|
195
|
+
lastSeen?: string;
|
|
196
|
+
source?: string;
|
|
197
|
+
}
|
|
198
|
+
/** One log line (optionally tagged with its container + a parsed timestamp). */
|
|
199
|
+
export interface LogEntry {
|
|
200
|
+
content: string;
|
|
201
|
+
timestamp?: string;
|
|
202
|
+
container?: string;
|
|
203
|
+
/** True for stderr — rendered in the warn tone. */
|
|
204
|
+
err?: boolean;
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* Everything the node drawer needs for a single resource: the live manifest
|
|
208
|
+
* (YAML), recent events, a recent-logs snapshot (pods), and the desired/live
|
|
209
|
+
* pair for the inline diff. Returned by `getResource`.
|
|
210
|
+
*/
|
|
211
|
+
export interface ResourceDetail {
|
|
212
|
+
ref: ResourceRef;
|
|
213
|
+
health?: {
|
|
214
|
+
status: HealthStatus;
|
|
215
|
+
message?: string;
|
|
216
|
+
};
|
|
217
|
+
syncStatus?: SyncStatus;
|
|
218
|
+
/** Live manifest as YAML (or JSON) text. */
|
|
219
|
+
liveManifest?: string;
|
|
220
|
+
/** Desired manifest as YAML text — enables the drawer's inline diff. */
|
|
221
|
+
desiredManifest?: string;
|
|
222
|
+
events?: ResourceEvent[];
|
|
223
|
+
/** Recent log lines for a pod/container (a snapshot; streaming is optional). */
|
|
224
|
+
logs?: LogEntry[];
|
|
225
|
+
/** Container names, when the resource is a Pod (drives the log selector). */
|
|
226
|
+
containers?: string[];
|
|
227
|
+
info?: InfoItem[];
|
|
228
|
+
}
|
|
229
|
+
/** One resource's desired/live manifest pair for the application diff view. */
|
|
230
|
+
export interface ResourceDiff {
|
|
231
|
+
ref: ResourceRef;
|
|
232
|
+
/** Sync verdict for this resource (drives the section pill). */
|
|
233
|
+
status?: SyncStatus;
|
|
234
|
+
desired?: string;
|
|
235
|
+
live?: string;
|
|
236
|
+
/** True when the resource is unmanaged/hook (rendered muted). */
|
|
237
|
+
hook?: boolean;
|
|
238
|
+
}
|
|
239
|
+
/** The full application diff payload. Returned by `getDiff`. */
|
|
240
|
+
export interface AppDiff {
|
|
241
|
+
items: ResourceDiff[];
|
|
242
|
+
}
|
|
243
|
+
/** Body for `POST /v1/gitops/{name}/sync`. */
|
|
244
|
+
export interface SyncRequest {
|
|
245
|
+
/** Target revision; omit to sync to the source's configured revision. */
|
|
246
|
+
revision?: string;
|
|
247
|
+
/** Prune resources that no longer exist in the desired state. */
|
|
248
|
+
prune?: boolean;
|
|
249
|
+
/** Server-side dry-run (compute the plan without applying). */
|
|
250
|
+
dryRun?: boolean;
|
|
251
|
+
/** Restrict the sync to specific resources (default: all). */
|
|
252
|
+
resources?: ResourceRef[];
|
|
253
|
+
}
|
|
254
|
+
/** Body for `POST /v1/gitops/{name}/rollback`. */
|
|
255
|
+
export interface RollbackRequest {
|
|
256
|
+
/** The history id (from `DeployRevision.id`) to roll back to. */
|
|
257
|
+
id: number;
|
|
258
|
+
prune?: boolean;
|
|
259
|
+
dryRun?: boolean;
|
|
260
|
+
}
|
|
261
|
+
/** The response to a sync/rollback — the operation the engine kicked off. */
|
|
262
|
+
export interface OperationResponse {
|
|
263
|
+
operationState: OperationState;
|
|
264
|
+
}
|
|
265
|
+
/** The apps-list response: `GET /v1/gitops`. */
|
|
266
|
+
export interface AppListResponse {
|
|
267
|
+
items: AppSummary[];
|
|
268
|
+
}
|
|
269
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/cd/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAMH;;;GAGG;AACH,MAAM,MAAM,YAAY,GACpB,SAAS,GACT,aAAa,GACb,UAAU,GACV,WAAW,GACX,SAAS,GACT,SAAS,CAAA;AAEb,0DAA0D;AAC1D,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,WAAW,GAAG,SAAS,CAAA;AAE3D,yDAAyD;AACzD,MAAM,MAAM,cAAc,GACtB,SAAS,GACT,aAAa,GACb,QAAQ,GACR,OAAO,GACP,WAAW,GACX,SAAS,CAAA;AAEb,2DAA2D;AAC3D,MAAM,MAAM,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,GAAG,SAAS,CAAA;AAEjF,wDAAwD;AACxD,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,QAAQ,GAAG,YAAY,GAAG,SAAS,CAAA;AAM3E,2EAA2E;AAC3E,MAAM,WAAW,WAAW;IAC1B,yEAAyE;IACzE,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,M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CAAA;IACb,iEAAiE;IACjE,IAAI,CAAC,EAAE,OAAO,CAAA;CACf;AAED,gEAAgE;AAChE,MAAM,WAAW,OAAO;IACtB,KAAK,EAAE,YAAY,EAAE,CAAA;CACtB;AAMD,8CAA8C;AAC9C,MAAM,WAAW,WAAW;IAC1B,yEAAyE;IACzE,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,iEAAiE;IACjE,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,+DAA+D;IAC/D,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,8DAA8D;IAC9D,SAAS,CAAC,EAAE,WAAW,EAAE,CAAA;CAC1B;AAED,kDAAkD;AAClD,MAAM,WAAW,eAAe;IAC9B,iEAAiE;IACjE,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB;AAED,6EAA6E;AAC7E,MAAM,WAAW,iBAAiB;IAChC,cAAc,EAAE,cAAc,CAAA;CAC/B;AAED,gDAAgD;AAChD,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,UAAU,EAAE,CAAA;CACpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dashboard.d.ts","sourceRoot":"","sources":["../src/dashboard.ts"],"names":[],"mappings":"AAOA,cAAc,kBAAkB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gitops.d.ts","sourceRoot":"","sources":["../src/gitops.ts"],"names":[],"mappings":"AAIA,cAAc,eAAe,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"network.d.ts","sourceRoot":"","sources":["../src/network.ts"],"names":[],"mappings":"AAUA,cAAc,0BAA0B,CAAA"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AppHeader — the shared shell header every Hanzo surface renders: the brand
|
|
3
|
+
* mark top-left (from @hanzo/logo, white-label via `wordmark`/`brand`), an
|
|
4
|
+
* org/project slot (usually `<OrgSwitcher/>`), an app switcher listing the
|
|
5
|
+
* Hanzo surfaces (modeled on the console's AppLauncher), and an identity menu
|
|
6
|
+
* (Profile · Theme · Team settings · Billing · Sign out).
|
|
7
|
+
*
|
|
8
|
+
* Host-agnostic: every action is an injected handler; a row renders only when
|
|
9
|
+
* its handler is provided (honest — no dead menu items). Mobile-first: fluid
|
|
10
|
+
* flex + truncation, the wordmark collapse is the brand motion itself.
|
|
11
|
+
*/
|
|
12
|
+
import { type ReactNode } from 'react';
|
|
13
|
+
/** One Hanzo surface the app switcher offers. */
|
|
14
|
+
export type Surface = {
|
|
15
|
+
id: string;
|
|
16
|
+
label: string;
|
|
17
|
+
href: string;
|
|
18
|
+
hint?: string;
|
|
19
|
+
};
|
|
20
|
+
/** The five Hanzo surfaces (cloud opens the console). */
|
|
21
|
+
export declare const SURFACES: Surface[];
|
|
22
|
+
export type AppHeaderProps = {
|
|
23
|
+
/** Brand slot — defaults to the animated `<BrandMark/>`. */
|
|
24
|
+
brand?: ReactNode;
|
|
25
|
+
/** White-label wordmark for the default brand mark. */
|
|
26
|
+
wordmark?: string;
|
|
27
|
+
/** Brand press (usually "go home"). */
|
|
28
|
+
onBrand?: () => void;
|
|
29
|
+
/** Org/project slot — usually `<OrgSwitcher/>` (+ a project switcher). */
|
|
30
|
+
org?: ReactNode;
|
|
31
|
+
/** Free slot between the org slot and the right cluster. */
|
|
32
|
+
children?: ReactNode;
|
|
33
|
+
/** App-switcher surfaces; [] hides the switcher. */
|
|
34
|
+
surfaces?: Surface[];
|
|
35
|
+
/** Open a surface — default `window.open` (new tab). */
|
|
36
|
+
open?: (surface: Surface) => void;
|
|
37
|
+
/** Identity-menu trigger label (the signed-in user's name/email). */
|
|
38
|
+
user?: string;
|
|
39
|
+
/** Replace the whole identity menu content. */
|
|
40
|
+
menu?: ReactNode;
|
|
41
|
+
/** Theme row content — default `<ThemeToggle/>`; null hides the row. */
|
|
42
|
+
theme?: ReactNode;
|
|
43
|
+
onProfile?: () => void;
|
|
44
|
+
onTeam?: () => void;
|
|
45
|
+
onBilling?: () => void;
|
|
46
|
+
onSignOut?: () => void;
|
|
47
|
+
};
|
|
48
|
+
export declare function AppHeader({ brand, wordmark, onBrand, org, children, surfaces, open, user, menu, theme, onProfile, onTeam, onBilling, onSignOut, }: AppHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
49
|
+
//# sourceMappingURL=AppHeader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AppHeader.d.ts","sourceRoot":"","sources":["../../src/product/AppHeader.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AACH,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAOhD,iDAAiD;AACjD,MAAM,MAAM,OAAO,GAAG;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,CAAA;AAEhF,yDAAyD;AACzD,eAAO,MAAM,QAAQ,EAAE,OAAO,EAM7B,CAAA;AAiBD,MAAM,MAAM,cAAc,GAAG;IAC3B,4DAA4D;IAC5D,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,uDAAuD;IACvD,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,uCAAuC;IACvC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,0EAA0E;IAC1E,GAAG,CAAC,EAAE,SAAS,CAAA;IACf,4DAA4D;IAC5D,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,oDAAoD;IACpD,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAA;IACpB,wDAAwD;IACxD,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAA;IACjC,qEAAqE;IACrE,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,+CAA+C;IAC/C,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,wEAAwE;IACxE,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IACtB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IACtB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;CACvB,CAAA;AAED,wBAAgB,SAAS,CAAC,EACxB,KAAK,EACL,QAAkB,EAClB,OAAO,EACP,GAAG,EACH,QAAQ,EACR,QAAmB,EACnB,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,KAAK,EACL,SAAS,EACT,MAAM,EACN,SAAS,EACT,SAAS,GACV,EAAE,cAAc,2CAqFhB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare function BrandMark({ size, wordmark, animated, }: {
|
|
2
|
+
size?: number;
|
|
3
|
+
/** Wordmark text (white-label): "Hanzo", "Lux", "Zoo", … */
|
|
4
|
+
wordmark?: string;
|
|
5
|
+
/** false = the static mark alone (no motion shell, no wordmark). */
|
|
6
|
+
animated?: boolean;
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=BrandMark.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BrandMark.d.ts","sourceRoot":"","sources":["../../src/product/BrandMark.tsx"],"names":[],"mappings":"AAaA,wBAAgB,SAAS,CAAC,EACxB,IAAS,EACT,QAAkB,EAClB,QAAe,GAChB,EAAE;IACD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,4DAA4D;IAC5D,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,oEAAoE;IACpE,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,2CAGA"}
|
|
@@ -39,19 +39,19 @@ export declare function Sparkline({ values, width, height, color, }: {
|
|
|
39
39
|
width?: number;
|
|
40
40
|
height?: number;
|
|
41
41
|
color?: string;
|
|
42
|
-
}): import("react").JSX.Element | null;
|
|
42
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
43
43
|
export declare function LineChart({ data, height, color, formatValue, }: {
|
|
44
44
|
data: ChartPoint[];
|
|
45
45
|
height?: number;
|
|
46
46
|
color?: string;
|
|
47
47
|
formatValue?: (v: number) => string;
|
|
48
|
-
}): import("react").JSX.Element;
|
|
48
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
49
49
|
export declare function BarChart({ data, height, color, formatValue, }: {
|
|
50
50
|
data: ChartPoint[];
|
|
51
51
|
height?: number;
|
|
52
52
|
color?: string;
|
|
53
53
|
formatValue?: (v: number) => string;
|
|
54
|
-
}): import("react").JSX.Element;
|
|
54
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
55
55
|
export declare function Donut({ slices, size, thickness, center, legend, }: {
|
|
56
56
|
slices: Slice[];
|
|
57
57
|
size?: number;
|
|
@@ -63,8 +63,8 @@ export declare function Donut({ slices, size, thickness, center, legend, }: {
|
|
|
63
63
|
* a consumer can compose a richer legend (amounts, click targets) itself.
|
|
64
64
|
*/
|
|
65
65
|
legend?: boolean;
|
|
66
|
-
}): import("react").JSX.Element;
|
|
66
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
67
67
|
export declare function BarRows({ bars }: {
|
|
68
68
|
bars: Slice[];
|
|
69
|
-
}): import("react").JSX.Element;
|
|
69
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
70
70
|
//# sourceMappingURL=Charts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Charts.d.ts","sourceRoot":"","sources":["../../src/product/Charts.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,EAA+B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAGnE,oFAAoF;AACpF,eAAO,MAAM,aAAa,UASzB,CAAA;AACD,eAAO,MAAM,WAAW,YAAY,CAAA;AAMpC,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C,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,kDAmBA;AA8DD,wBAAgB,SAAS,CAAC,EACxB,IAAI,EACJ,MAAY,EACZ,KAAc,EACd,WAA8B,GAC/B,EAAE;IACD,IAAI,EAAE,UAAU,EAAE,CAAA;IAClB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,MAAM,CAAA;CACpC,2CAmDA;AAID,wBAAgB,QAAQ,CAAC,EACvB,IAAI,EACJ,MAAY,EACZ,KAAc,EACd,WAA8B,GAC/B,EAAE;IACD,IAAI,EAAE,UAAU,EAAE,CAAA;IAClB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,MAAM,CAAA;CACpC,2CA4DA;AAID,wBAAgB,KAAK,CAAC,EACpB,MAAM,EACN,IAAU,EACV,SAAc,EACd,MAAM,EACN,MAAc,GACf,EAAE;IACD,MAAM,EAAE,KAAK,EAAE,CAAA;IACf,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,6EAA6E;IAC7E,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,2CAmFA;AAqCD,wBAAgB,OAAO,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,KAAK,EAAE,CAAA;CAAE,2CA0BlD"}
|
|
@@ -16,5 +16,5 @@ export declare function ComboBox({ value, onChange, options, loading, error, onR
|
|
|
16
16
|
/** Row shown when the filter matches nothing (the typed value is still usable). */
|
|
17
17
|
emptyText?: string;
|
|
18
18
|
minWidth?: number;
|
|
19
|
-
}): import("react").JSX.Element;
|
|
19
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
20
20
|
//# sourceMappingURL=ComboBox.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComboBox.d.ts","sourceRoot":"","sources":["../../src/product/ComboBox.tsx"],"names":[],"mappings":"AAkBA,OAAO,EAAiB,KAAK,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAEnE,YAAY,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAEpD,wBAAgB,QAAQ,CAAC,EACvB,KAAK,EACL,QAAQ,EACR,OAAO,EACP,OAAe,EACf,KAAY,EACZ,OAAO,EACP,WAAW,EACX,QAAQ,EACR,SAAuD,EACvD,QAAc,GACf,EAAE;IACD,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IAC7B,6DAA6D;IAC7D,OAAO,EAAE,WAAW,EAAE,CAAA;IACtB,8EAA8E;IAC9E,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,iFAAiF;IACjF,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,uDAAuD;IACvD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,mFAAmF;IACnF,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB
|
|
1
|
+
{"version":3,"file":"ComboBox.d.ts","sourceRoot":"","sources":["../../src/product/ComboBox.tsx"],"names":[],"mappings":"AAkBA,OAAO,EAAiB,KAAK,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAEnE,YAAY,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAEpD,wBAAgB,QAAQ,CAAC,EACvB,KAAK,EACL,QAAQ,EACR,OAAO,EACP,OAAe,EACf,KAAY,EACZ,OAAO,EACP,WAAW,EACX,QAAQ,EACR,SAAuD,EACvD,QAAc,GACf,EAAE;IACD,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IAC7B,6DAA6D;IAC7D,OAAO,EAAE,WAAW,EAAE,CAAA;IACtB,8EAA8E;IAC9E,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,iFAAiF;IACjF,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,uDAAuD;IACvD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,mFAAmF;IACnF,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,2CAmEA"}
|
|
@@ -21,5 +21,5 @@ export declare function DataTable<T>({ columns, rows, loading, empty, rowKey, on
|
|
|
21
21
|
empty?: string;
|
|
22
22
|
rowKey: (row: T) => string;
|
|
23
23
|
onRowPress?: (row: T) => void;
|
|
24
|
-
}): import("react").JSX.Element;
|
|
24
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
25
25
|
//# sourceMappingURL=DataTable.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTable.d.ts","sourceRoot":"","sources":["../../src/product/DataTable.tsx"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGtC,MAAM,MAAM,MAAM,CAAC,CAAC,IAAI;IACtB,GAAG,EAAE,MAAM,CAAA;IACX,MAAM,EAAE,MAAM,CAAA;IACd,qDAAqD;IACrD,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,SAAS,CAAA;IAC9B,yDAAyD;IACzD,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAA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+DA"}
|
package/types/product/Donut.d.ts
CHANGED
|
@@ -22,5 +22,5 @@ export declare function Donut({ segments, size, thickness, centerValue, centerLa
|
|
|
22
22
|
trackColor?: string;
|
|
23
23
|
valueColor?: string;
|
|
24
24
|
labelColor?: string;
|
|
25
|
-
}): import("react").JSX.Element | null;
|
|
25
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
26
26
|
//# sourceMappingURL=Donut.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Donut.d.ts","sourceRoot":"","sources":["../../src/product/Donut.tsx"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,MAAM,MAAM,YAAY,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAA;AAE1E,wBAAgB,KAAK,CAAC,EACpB,QAAQ,EACR,IAAU,EACV,SAAc,EACd,WAAW,EACX,WAAW,EACX,UAAsB,EACtB,UAAsB,EACtB,UAAsB,GACvB,EAAE;IACD,QAAQ,EAAE,YAAY,EAAE,CAAA;IACxB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,6CAA6C;IAC7C,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,sCAAsC;IACtC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,iFAAiF;IACjF,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB,
|
|
1
|
+
{"version":3,"file":"Donut.d.ts","sourceRoot":"","sources":["../../src/product/Donut.tsx"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,MAAM,MAAM,YAAY,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAA;AAE1E,wBAAgB,KAAK,CAAC,EACpB,QAAQ,EACR,IAAU,EACV,SAAc,EACd,WAAW,EACX,WAAW,EACX,UAAsB,EACtB,UAAsB,EACtB,UAAsB,GACvB,EAAE;IACD,QAAQ,EAAE,YAAY,EAAE,CAAA;IACxB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,6CAA6C;IAC7C,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,sCAAsC;IACtC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,iFAAiF;IACjF,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB,kDAkDA"}
|
|
@@ -33,5 +33,5 @@ export declare function EmptyState({ icon: Icon, title, description, bullets, pr
|
|
|
33
33
|
primary?: EmptyAction;
|
|
34
34
|
/** An optional lower-emphasis action (Docs / CLI / Learn more). */
|
|
35
35
|
secondary?: EmptyAction;
|
|
36
|
-
}): import("react").JSX.Element;
|
|
36
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
37
37
|
//# sourceMappingURL=EmptyState.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmptyState.d.ts","sourceRoot":"","sources":["../../src/product/EmptyState.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;GAYG;AACH,OAAO,KAAK,EAAE,YAAY,EAAa,MAAM,OAAO,CAAA;AAIpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAGvC,+EAA+E;AAC/E,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,MAAM,CAAA;IACb,mCAAmC;IACnC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,0EAA0E;IAC1E,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,YAAY,CAAA;CACpB,CAAA;AAOD,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19,5 +19,5 @@ export declare function FadeIn({ children, index, step, delayMs, style, }: {
|
|
|
19
19
|
delayMs?: number;
|
|
20
20
|
/** Extra styles for the wrapper (e.g. layout/centering). */
|
|
21
21
|
style?: CSSProperties;
|
|
22
|
-
}): import("react").JSX.Element;
|
|
22
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
23
23
|
//# sourceMappingURL=FadeIn.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FadeIn.d.ts","sourceRoot":"","sources":["../../src/product/FadeIn.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAErD,wBAAgB,MAAM,CAAC,EACrB,QAAQ,EACR,KAAS,EACT,IAAS,EACT,OAAO,EACP,KAAK,GACN,EAAE;IACD,QAAQ,EAAE,SAAS,CAAA;IACnB,uEAAuE;IACvE,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,4CAA4C;IAC5C,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,+DAA+D;IAC/D,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,4DAA4D;IAC5D,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB
|
|
1
|
+
{"version":3,"file":"FadeIn.d.ts","sourceRoot":"","sources":["../../src/product/FadeIn.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAErD,wBAAgB,MAAM,CAAC,EACrB,QAAQ,EACR,KAAS,EACT,IAAS,EACT,OAAO,EACP,KAAK,GACN,EAAE;IACD,QAAQ,EAAE,SAAS,CAAA;IACnB,uEAAuE;IACvE,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,4CAA4C;IAC5C,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,+DAA+D;IAC/D,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,4DAA4D;IAC5D,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB,2CAOA"}
|
package/types/product/Field.d.ts
CHANGED
|
@@ -10,31 +10,31 @@ import type { ReactNode } from 'react';
|
|
|
10
10
|
export declare function FieldRow({ label, children }: {
|
|
11
11
|
label: string;
|
|
12
12
|
children: ReactNode;
|
|
13
|
-
}): import("react").JSX.Element;
|
|
13
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
14
14
|
export declare function FieldText({ value, onChange, disabled, secure, placeholder, }: {
|
|
15
15
|
value: string;
|
|
16
16
|
onChange: (v: string) => void;
|
|
17
17
|
disabled?: boolean;
|
|
18
18
|
secure?: boolean;
|
|
19
19
|
placeholder?: string;
|
|
20
|
-
}): import("react").JSX.Element;
|
|
20
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
21
21
|
export declare function FieldTextArea({ value, onChange, disabled, rows, }: {
|
|
22
22
|
value: string;
|
|
23
23
|
onChange: (v: string) => void;
|
|
24
24
|
disabled?: boolean;
|
|
25
25
|
rows?: number;
|
|
26
|
-
}): import("react").JSX.Element;
|
|
26
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
27
27
|
export declare function FieldSwitch({ checked, onChange, disabled, }: {
|
|
28
28
|
checked: boolean;
|
|
29
29
|
onChange: (v: boolean) => void;
|
|
30
30
|
disabled?: boolean;
|
|
31
|
-
}): import("react").JSX.Element;
|
|
31
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
32
32
|
export declare function FieldSelect({ value, options, onChange, disabled, }: {
|
|
33
33
|
value: string;
|
|
34
34
|
options: string[];
|
|
35
35
|
onChange: (v: string) => void;
|
|
36
36
|
disabled?: boolean;
|
|
37
|
-
}): import("react").JSX.Element;
|
|
37
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
38
38
|
export declare function FieldSlider({ value, min, max, step, onChange, disabled, }: {
|
|
39
39
|
value: number;
|
|
40
40
|
min: number;
|
|
@@ -42,5 +42,5 @@ export declare function FieldSlider({ value, min, max, step, onChange, disabled,
|
|
|
42
42
|
step: number;
|
|
43
43
|
onChange: (v: number) => void;
|
|
44
44
|
disabled?: boolean;
|
|
45
|
-
}): import("react").JSX.Element;
|
|
45
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
46
46
|
//# sourceMappingURL=Field.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Field.d.ts","sourceRoot":"","sources":["../../src/product/Field.tsx"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AActC,yDAAyD;AACzD,wBAAgB,QAAQ,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,SAAS,CAAA;CAAE
|
|
1
|
+
{"version":3,"file":"Field.d.ts","sourceRoot":"","sources":["../../src/product/Field.tsx"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AActC,yDAAyD;AACzD,wBAAgB,QAAQ,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,SAAS,CAAA;CAAE,2CAWnF;AAED,wBAAgB,SAAS,CAAC,EACxB,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,WAAW,GACZ,EAAE;IACD,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,2CAWA;AAED,wBAAgB,aAAa,CAAC,EAC5B,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,IAAQ,GACT,EAAE;IACD,KAAK,EAAE,MAAM,CA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