@papernote/ui 1.10.26 → 1.11.0
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/ActionCard.d.ts +48 -0
- package/dist/components/ActionCard.d.ts.map +1 -0
- package/dist/components/AnomalyBanner.d.ts +27 -0
- package/dist/components/AnomalyBanner.d.ts.map +1 -0
- package/dist/components/CaseQueueItem.d.ts +35 -0
- package/dist/components/CaseQueueItem.d.ts.map +1 -0
- package/dist/components/ConfidenceBadge.d.ts +19 -0
- package/dist/components/ConfidenceBadge.d.ts.map +1 -0
- package/dist/components/ConfidenceIndicator.d.ts +25 -0
- package/dist/components/ConfidenceIndicator.d.ts.map +1 -0
- package/dist/components/EntityCard.d.ts +46 -0
- package/dist/components/EntityCard.d.ts.map +1 -0
- package/dist/components/FunnelChart.d.ts +31 -0
- package/dist/components/FunnelChart.d.ts.map +1 -0
- package/dist/components/MatchIndicator.d.ts +20 -0
- package/dist/components/MatchIndicator.d.ts.map +1 -0
- package/dist/components/PersonaDashboard.d.ts +39 -0
- package/dist/components/PersonaDashboard.d.ts.map +1 -0
- package/dist/components/ProcessHealthBar.d.ts +28 -0
- package/dist/components/ProcessHealthBar.d.ts.map +1 -0
- package/dist/components/ProcessIndicator.d.ts +38 -0
- package/dist/components/ProcessIndicator.d.ts.map +1 -0
- package/dist/components/ReviewDecisionCard.d.ts +53 -0
- package/dist/components/ReviewDecisionCard.d.ts.map +1 -0
- package/dist/components/SLAIndicator.d.ts +24 -0
- package/dist/components/SLAIndicator.d.ts.map +1 -0
- package/dist/components/SplitPane.d.ts +33 -0
- package/dist/components/SplitPane.d.ts.map +1 -0
- package/dist/components/SystemActionEntry.d.ts +42 -0
- package/dist/components/SystemActionEntry.d.ts.map +1 -0
- package/dist/components/VarianceDisplay.d.ts +26 -0
- package/dist/components/VarianceDisplay.d.ts.map +1 -0
- package/dist/components/index.d.ts +32 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/index.d.ts +529 -2
- package/dist/index.esm.js +661 -28
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +675 -26
- package/dist/index.js.map +1 -1
- package/dist/styles.css +369 -0
- package/package.json +1 -1
- package/src/components/ActionCard.tsx +176 -0
- package/src/components/AnomalyBanner.tsx +113 -0
- package/src/components/CaseQueueItem.tsx +145 -0
- package/src/components/ConfidenceBadge.tsx +62 -0
- package/src/components/ConfidenceIndicator.tsx +96 -0
- package/src/components/EntityCard.tsx +216 -0
- package/src/components/FunnelChart.tsx +160 -0
- package/src/components/MatchIndicator.tsx +73 -0
- package/src/components/PersonaDashboard.tsx +105 -0
- package/src/components/ProcessHealthBar.tsx +107 -0
- package/src/components/ProcessIndicator.tsx +167 -0
- package/src/components/ReviewDecisionCard.tsx +186 -0
- package/src/components/SLAIndicator.tsx +108 -0
- package/src/components/SplitPane.tsx +150 -0
- package/src/components/SystemActionEntry.tsx +175 -0
- package/src/components/VarianceDisplay.tsx +116 -0
- package/src/components/index.ts +48 -0
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface ActionCardAction {
|
|
3
|
+
/** Button label */
|
|
4
|
+
label: string;
|
|
5
|
+
/** Button variant */
|
|
6
|
+
variant?: 'primary' | 'secondary' | 'danger' | 'ghost';
|
|
7
|
+
/** Click handler */
|
|
8
|
+
onClick: () => void;
|
|
9
|
+
/** Whether the action is disabled */
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
/** Icon to show */
|
|
12
|
+
icon?: React.ReactNode;
|
|
13
|
+
}
|
|
14
|
+
export interface ActionCardProps {
|
|
15
|
+
/** Card title — what needs action */
|
|
16
|
+
title: string;
|
|
17
|
+
/** Description — why the system flagged it */
|
|
18
|
+
description?: string;
|
|
19
|
+
/** Affected entity type and ID */
|
|
20
|
+
entityType?: string;
|
|
21
|
+
entityId?: string;
|
|
22
|
+
/** Entity link click handler */
|
|
23
|
+
onEntityClick?: () => void;
|
|
24
|
+
/** Reasoning text — why the system flagged this */
|
|
25
|
+
reasoning?: string;
|
|
26
|
+
/** Available actions */
|
|
27
|
+
actions: ActionCardAction[];
|
|
28
|
+
/** Priority/urgency level */
|
|
29
|
+
priority?: 'high' | 'medium' | 'low';
|
|
30
|
+
/** Icon */
|
|
31
|
+
icon?: React.ReactNode;
|
|
32
|
+
/** Confidence score (0-100) */
|
|
33
|
+
confidence?: number;
|
|
34
|
+
/** Timestamp */
|
|
35
|
+
timestamp?: string;
|
|
36
|
+
/** Whether the card is selected */
|
|
37
|
+
selected?: boolean;
|
|
38
|
+
/** Additional className */
|
|
39
|
+
className?: string;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* ActionCard — Approval workflow card with action buttons
|
|
43
|
+
*
|
|
44
|
+
* Shows what needs action, why it was flagged, and provides quick-action buttons.
|
|
45
|
+
* Used in the Approvals & Review queue across all process domains.
|
|
46
|
+
*/
|
|
47
|
+
export default function ActionCard({ title, description, entityType, entityId, onEntityClick, reasoning, actions, priority, icon, confidence, timestamp, selected, className, }: ActionCardProps): import("react/jsx-runtime").JSX.Element;
|
|
48
|
+
//# sourceMappingURL=ActionCard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActionCard.d.ts","sourceRoot":"","sources":["../../src/components/ActionCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,MAAM,WAAW,gBAAgB;IAC/B,mBAAmB;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,qBAAqB;IACrB,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,QAAQ,GAAG,OAAO,CAAC;IACvD,oBAAoB;IACpB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,qCAAqC;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,mBAAmB;IACnB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACxB;AAED,MAAM,WAAW,eAAe;IAC9B,qCAAqC;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,8CAA8C;IAC9C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kCAAkC;IAClC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gCAAgC;IAChC,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,mDAAmD;IACnD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wBAAwB;IACxB,OAAO,EAAE,gBAAgB,EAAE,CAAC;IAC5B,6BAA6B;IAC7B,QAAQ,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,KAAK,CAAC;IACrC,WAAW;IACX,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,+BAA+B;IAC/B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gBAAgB;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mCAAmC;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAuBD;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EACjC,KAAK,EACL,WAAW,EACX,UAAU,EACV,QAAQ,EACR,aAAa,EACb,SAAS,EACT,OAAO,EACP,QAAQ,EACR,IAAI,EACJ,UAAU,EACV,SAAS,EACT,QAAgB,EAChB,SAAc,GACf,EAAE,eAAe,2CAuFjB"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export interface AnomalyBannerProps {
|
|
2
|
+
/** Anomaly title/summary */
|
|
3
|
+
title: string;
|
|
4
|
+
/** Detailed description */
|
|
5
|
+
description?: string;
|
|
6
|
+
/** Severity level */
|
|
7
|
+
severity?: 'info' | 'warning' | 'critical';
|
|
8
|
+
/** Affected entity count */
|
|
9
|
+
affectedCount?: number;
|
|
10
|
+
/** Action button label */
|
|
11
|
+
actionLabel?: string;
|
|
12
|
+
/** Action button handler */
|
|
13
|
+
onAction?: () => void;
|
|
14
|
+
/** Dismiss handler */
|
|
15
|
+
onDismiss?: () => void;
|
|
16
|
+
/** Additional className */
|
|
17
|
+
className?: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* AnomalyBanner — Alert banner for anomaly detection
|
|
21
|
+
*
|
|
22
|
+
* Shows a prominent banner when the system detects unusual patterns.
|
|
23
|
+
* Severity levels: info (FYI), warning (review recommended), critical (immediate action).
|
|
24
|
+
* Used at the top of process views and dashboards.
|
|
25
|
+
*/
|
|
26
|
+
export default function AnomalyBanner({ title, description, severity, affectedCount, actionLabel, onAction, onDismiss, className, }: AnomalyBannerProps): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
//# sourceMappingURL=AnomalyBanner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AnomalyBanner.d.ts","sourceRoot":"","sources":["../../src/components/AnomalyBanner.tsx"],"names":[],"mappings":"AAMA,MAAM,WAAW,kBAAkB;IACjC,4BAA4B;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,2BAA2B;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,qBAAqB;IACrB,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,UAAU,CAAC;IAC3C,4BAA4B;IAC5B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,0BAA0B;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,4BAA4B;IAC5B,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,sBAAsB;IACtB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAgBD;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EACpC,KAAK,EACL,WAAW,EACX,QAAoB,EACpB,aAAa,EACb,WAAW,EACX,QAAQ,EACR,SAAS,EACT,SAAc,GACf,EAAE,kBAAkB,2CAyDpB"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export interface CaseQueueItemProps {
|
|
2
|
+
/** Case ID or number */
|
|
3
|
+
caseNumber: string;
|
|
4
|
+
/** Case subject/title */
|
|
5
|
+
subject: string;
|
|
6
|
+
/** Priority level */
|
|
7
|
+
priority: 'critical' | 'high' | 'medium' | 'low';
|
|
8
|
+
/** Current status */
|
|
9
|
+
status: string;
|
|
10
|
+
/** Status color variant */
|
|
11
|
+
statusColor?: 'slate' | 'blue' | 'indigo' | 'purple' | 'green' | 'red' | 'yellow' | 'orange' | 'teal';
|
|
12
|
+
/** Assignee name */
|
|
13
|
+
assignee?: string;
|
|
14
|
+
/** Account/customer name */
|
|
15
|
+
account?: string;
|
|
16
|
+
/** SLA deadline (ISO timestamp) */
|
|
17
|
+
/** Whether the SLA is breached */
|
|
18
|
+
slaBreach?: boolean;
|
|
19
|
+
/** Time remaining display string (e.g., "2h 15m") */
|
|
20
|
+
slaTimeRemaining?: string;
|
|
21
|
+
/** Click handler */
|
|
22
|
+
onClick?: () => void;
|
|
23
|
+
/** Whether the item is selected */
|
|
24
|
+
selected?: boolean;
|
|
25
|
+
/** Additional className */
|
|
26
|
+
className?: string;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* CaseQueueItem — Priority-sorted case card for support queue views
|
|
30
|
+
*
|
|
31
|
+
* Shows case subject, priority indicator, status, assignee, and SLA countdown.
|
|
32
|
+
* Designed for use in the Support Center's case queue list.
|
|
33
|
+
*/
|
|
34
|
+
export default function CaseQueueItem({ caseNumber, subject, priority, status, statusColor, assignee, account, slaBreach, slaTimeRemaining, onClick, selected, className, }: CaseQueueItemProps): import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
//# sourceMappingURL=CaseQueueItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CaseQueueItem.d.ts","sourceRoot":"","sources":["../../src/components/CaseQueueItem.tsx"],"names":[],"mappings":"AAMA,MAAM,WAAW,kBAAkB;IACjC,wBAAwB;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,yBAAyB;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,qBAAqB;IACrB,QAAQ,EAAE,UAAU,GAAG,MAAM,GAAG,QAAQ,GAAG,KAAK,CAAC;IACjD,qBAAqB;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,2BAA2B;IAC3B,WAAW,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ,GAAG,QAAQ,GAAG,MAAM,CAAC;IACtG,oBAAoB;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,4BAA4B;IAC5B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,mCAAmC;IACnC,kCAAkC;IAClC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,qDAAqD;IACrD,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,oBAAoB;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,mCAAmC;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AA6BD;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EACpC,UAAU,EACV,OAAO,EACP,QAAQ,EACR,MAAM,EACN,WAAqB,EACrB,QAAQ,EACR,OAAO,EACP,SAAiB,EACjB,gBAAgB,EAChB,OAAO,EACP,QAAgB,EAChB,SAAc,GACf,EAAE,kBAAkB,2CAgEpB"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface ConfidenceBadgeProps {
|
|
2
|
+
/** Confidence score (0-100) */
|
|
3
|
+
score: number;
|
|
4
|
+
/** Whether to show the score as text */
|
|
5
|
+
showScore?: boolean;
|
|
6
|
+
/** Size variant */
|
|
7
|
+
size?: 'sm' | 'md';
|
|
8
|
+
/** Additional className */
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* ConfidenceBadge — Compact inline confidence display
|
|
13
|
+
*
|
|
14
|
+
* Shows a color-coded badge with optional score text.
|
|
15
|
+
* Used in table cells, Kanban cards, and list items where
|
|
16
|
+
* the full ConfidenceIndicator gauge would be too large.
|
|
17
|
+
*/
|
|
18
|
+
export default function ConfidenceBadge({ score, showScore, size, className, }: ConfidenceBadgeProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
//# sourceMappingURL=ConfidenceBadge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConfidenceBadge.d.ts","sourceRoot":"","sources":["../../src/components/ConfidenceBadge.tsx"],"names":[],"mappings":"AAIA,MAAM,WAAW,oBAAoB;IACnC,+BAA+B;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,wCAAwC;IACxC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,mBAAmB;IACnB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAMD;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EACtC,KAAK,EACL,SAAgB,EAChB,IAAW,EACX,SAAc,GACf,EAAE,oBAAoB,2CA8BtB"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export interface ConfidenceIndicatorProps {
|
|
2
|
+
/** Confidence score (0-100) */
|
|
3
|
+
score: number;
|
|
4
|
+
/** Label to display below the gauge */
|
|
5
|
+
label?: string;
|
|
6
|
+
/** Size in pixels */
|
|
7
|
+
size?: number;
|
|
8
|
+
/** Stroke width */
|
|
9
|
+
strokeWidth?: number;
|
|
10
|
+
/** Additional className */
|
|
11
|
+
className?: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* ConfidenceIndicator — Circular gauge showing confidence percentage
|
|
15
|
+
*
|
|
16
|
+
* Renders a circular progress arc with color based on score thresholds:
|
|
17
|
+
* - >= 80: green (high confidence)
|
|
18
|
+
* - >= 50: yellow (medium confidence)
|
|
19
|
+
* - < 50: red (low confidence)
|
|
20
|
+
*
|
|
21
|
+
* Used in review workflows and process views to show system confidence
|
|
22
|
+
* in automated actions.
|
|
23
|
+
*/
|
|
24
|
+
export default function ConfidenceIndicator({ score, label, size, strokeWidth, className, }: ConfidenceIndicatorProps): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
//# sourceMappingURL=ConfidenceIndicator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConfidenceIndicator.d.ts","sourceRoot":"","sources":["../../src/components/ConfidenceIndicator.tsx"],"names":[],"mappings":"AAIA,MAAM,WAAW,wBAAwB;IACvC,+BAA+B;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,uCAAuC;IACvC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,qBAAqB;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,mBAAmB;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAMD;;;;;;;;;;GAUG;AACH,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,EAC1C,KAAK,EACL,KAAK,EACL,IAAS,EACT,WAAe,EACf,SAAc,GACf,EAAE,wBAAwB,2CAyD1B"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface EntityCardProps {
|
|
3
|
+
/** Card title (e.g., deal name, case subject) */
|
|
4
|
+
title: string;
|
|
5
|
+
/** Optional subtitle (e.g., account name, contact) */
|
|
6
|
+
subtitle?: string;
|
|
7
|
+
/** Primary value display (e.g., deal amount, case priority) */
|
|
8
|
+
value?: string | React.ReactNode;
|
|
9
|
+
/** Status label */
|
|
10
|
+
status?: string;
|
|
11
|
+
/** Status color variant */
|
|
12
|
+
statusColor?: 'slate' | 'blue' | 'indigo' | 'purple' | 'green' | 'red' | 'yellow' | 'orange' | 'teal';
|
|
13
|
+
/** Assignee name (rendered as avatar initials) */
|
|
14
|
+
assignee?: string;
|
|
15
|
+
/** Progress percentage (0-100) */
|
|
16
|
+
progress?: number;
|
|
17
|
+
/** Additional metadata key-value pairs */
|
|
18
|
+
metadata?: Array<{
|
|
19
|
+
label: string;
|
|
20
|
+
value: string | React.ReactNode;
|
|
21
|
+
}>;
|
|
22
|
+
/** Icon to display */
|
|
23
|
+
icon?: React.ReactNode;
|
|
24
|
+
/** Click handler */
|
|
25
|
+
onClick?: () => void;
|
|
26
|
+
/** Context menu handler */
|
|
27
|
+
onContextMenu?: () => void;
|
|
28
|
+
/** Whether the card is selected */
|
|
29
|
+
selected?: boolean;
|
|
30
|
+
/** Whether the card is draggable (adds visual indicator) */
|
|
31
|
+
draggable?: boolean;
|
|
32
|
+
/** Size variant */
|
|
33
|
+
size?: 'sm' | 'md';
|
|
34
|
+
/** Additional className */
|
|
35
|
+
className?: string;
|
|
36
|
+
/** Confidence score (0-100), shown as a small indicator */
|
|
37
|
+
confidence?: number;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* EntityCard — Standardized card for pipeline/board views
|
|
41
|
+
*
|
|
42
|
+
* Renders a compact card with title, value, status, assignee, and metadata.
|
|
43
|
+
* Designed for use in KanbanBoard columns and process view lists.
|
|
44
|
+
*/
|
|
45
|
+
export default function EntityCard({ title, subtitle, value, status, statusColor, assignee, progress, metadata, icon, onClick, onContextMenu, selected, draggable, size, className, confidence, }: EntityCardProps): import("react/jsx-runtime").JSX.Element;
|
|
46
|
+
//# sourceMappingURL=EntityCard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EntityCard.d.ts","sourceRoot":"","sources":["../../src/components/EntityCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,MAAM,WAAW,eAAe;IAC9B,iDAAiD;IACjD,KAAK,EAAE,MAAM,CAAC;IACd,sDAAsD;IACtD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,+DAA+D;IAC/D,KAAK,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IACjC,mBAAmB;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,2BAA2B;IAC3B,WAAW,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ,GAAG,QAAQ,GAAG,MAAM,CAAC;IACtG,kDAAkD;IAClD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,kCAAkC;IAClC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,0CAA0C;IAC1C,QAAQ,CAAC,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAA;KAAE,CAAC,CAAC;IACrE,sBAAsB;IACtB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,oBAAoB;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,2BAA2B;IAC3B,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,mCAAmC;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,4DAA4D;IAC5D,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,mBAAmB;IACnB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,2DAA2D;IAC3D,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AA4BD;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EACjC,KAAK,EACL,QAAQ,EACR,KAAK,EACL,MAAM,EACN,WAAqB,EACrB,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,IAAI,EACJ,OAAO,EACP,aAAa,EACb,QAAgB,EAChB,SAAiB,EACjB,IAAW,EACX,SAAc,EACd,UAAU,GACX,EAAE,eAAe,2CA4HjB"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export interface FunnelStage {
|
|
2
|
+
/** Stage name */
|
|
3
|
+
name: string;
|
|
4
|
+
/** Stage count */
|
|
5
|
+
count: number;
|
|
6
|
+
/** Display value (e.g., formatted currency) */
|
|
7
|
+
value?: string;
|
|
8
|
+
/** Color for this stage */
|
|
9
|
+
color?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface FunnelChartProps {
|
|
12
|
+
/** Funnel stages in order (widest to narrowest) */
|
|
13
|
+
stages: FunnelStage[];
|
|
14
|
+
/** Chart height in pixels */
|
|
15
|
+
height?: number;
|
|
16
|
+
/** Whether to show conversion rates between stages */
|
|
17
|
+
showConversion?: boolean;
|
|
18
|
+
/** Click handler for a stage */
|
|
19
|
+
onStageClick?: (stageName: string) => void;
|
|
20
|
+
/** Additional className */
|
|
21
|
+
className?: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* FunnelChart — SVG funnel visualization for pipeline stages
|
|
25
|
+
*
|
|
26
|
+
* Renders a vertical funnel where each stage's width is proportional
|
|
27
|
+
* to its count relative to the first (widest) stage.
|
|
28
|
+
* Shows stage names, counts, values, and optional conversion rates.
|
|
29
|
+
*/
|
|
30
|
+
export default function FunnelChart({ stages, height, showConversion, onStageClick, className, }: FunnelChartProps): import("react/jsx-runtime").JSX.Element | null;
|
|
31
|
+
//# sourceMappingURL=FunnelChart.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FunnelChart.d.ts","sourceRoot":"","sources":["../../src/components/FunnelChart.tsx"],"names":[],"mappings":"AAIA,MAAM,WAAW,WAAW;IAC1B,iBAAiB;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,kBAAkB;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,+CAA+C;IAC/C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,2BAA2B;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,gBAAgB;IAC/B,mDAAmD;IACnD,MAAM,EAAE,WAAW,EAAE,CAAC;IACtB,6BAA6B;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,sDAAsD;IACtD,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,gCAAgC;IAChC,YAAY,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAoBD;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAClC,MAAM,EACN,MAAY,EACZ,cAAqB,EACrB,YAAY,EACZ,SAAc,GACf,EAAE,gBAAgB,kDAoGlB"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface MatchIndicatorProps {
|
|
2
|
+
/** Match quality level */
|
|
3
|
+
quality: 'exact' | 'close' | 'possible' | 'unmatched';
|
|
4
|
+
/** Optional match confidence score (0-100) */
|
|
5
|
+
confidence?: number;
|
|
6
|
+
/** Show label text alongside indicator */
|
|
7
|
+
showLabel?: boolean;
|
|
8
|
+
/** Size variant */
|
|
9
|
+
size?: 'sm' | 'md' | 'lg';
|
|
10
|
+
/** Additional className */
|
|
11
|
+
className?: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* MatchIndicator — Match quality visualization for reconciliation
|
|
15
|
+
*
|
|
16
|
+
* Shows a color-coded dot/icon indicating match quality between
|
|
17
|
+
* statement lines and invoices. Used in the Reconciliation Hub.
|
|
18
|
+
*/
|
|
19
|
+
export default function MatchIndicator({ quality, confidence, showLabel, size, className, }: MatchIndicatorProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
//# sourceMappingURL=MatchIndicator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MatchIndicator.d.ts","sourceRoot":"","sources":["../../src/components/MatchIndicator.tsx"],"names":[],"mappings":"AAOA,MAAM,WAAW,mBAAmB;IAClC,0BAA0B;IAC1B,OAAO,EAAE,OAAO,GAAG,OAAO,GAAG,UAAU,GAAG,WAAW,CAAC;IACtD,8CAA8C;IAC9C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,0CAA0C;IAC1C,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,mBAAmB;IACnB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAiBD;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EACrC,OAAO,EACP,UAAU,EACV,SAAiB,EACjB,IAAW,EACX,SAAc,GACf,EAAE,mBAAmB,2CAyBrB"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface DashboardWidget {
|
|
3
|
+
/** Widget unique ID */
|
|
4
|
+
id: string;
|
|
5
|
+
/** Widget display name */
|
|
6
|
+
name: string;
|
|
7
|
+
/** Widget size */
|
|
8
|
+
size: 'sm' | 'md' | 'lg' | 'full';
|
|
9
|
+
/** Render function for widget content */
|
|
10
|
+
render: () => React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export interface PersonaDashboardProps {
|
|
13
|
+
/** Persona display name */
|
|
14
|
+
personaName: string;
|
|
15
|
+
/** System action summary component (hero position) */
|
|
16
|
+
systemSummary?: React.ReactNode;
|
|
17
|
+
/** Pending attention component */
|
|
18
|
+
pendingAttention?: React.ReactNode;
|
|
19
|
+
/** Process health indicators */
|
|
20
|
+
processHealth?: React.ReactNode;
|
|
21
|
+
/** Persona-specific widgets */
|
|
22
|
+
widgets: DashboardWidget[];
|
|
23
|
+
/** Additional className */
|
|
24
|
+
className?: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* PersonaDashboard — Adaptive dashboard shell for persona-specific widgets
|
|
28
|
+
*
|
|
29
|
+
* Provides the common dashboard structure:
|
|
30
|
+
* 1. System action summary (hero, persona-filtered)
|
|
31
|
+
* 2. Pending attention items
|
|
32
|
+
* 3. Process health indicators
|
|
33
|
+
* 4. Persona-specific widgets in a responsive grid
|
|
34
|
+
*
|
|
35
|
+
* Used as the layout container on the Home page, populated with
|
|
36
|
+
* role-specific widgets based on the resolved persona.
|
|
37
|
+
*/
|
|
38
|
+
export default function PersonaDashboard({ personaName, systemSummary, pendingAttention, processHealth, widgets, className, }: PersonaDashboardProps): import("react/jsx-runtime").JSX.Element;
|
|
39
|
+
//# sourceMappingURL=PersonaDashboard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PersonaDashboard.d.ts","sourceRoot":"","sources":["../../src/components/PersonaDashboard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,MAAM,WAAW,eAAe;IAC9B,uBAAuB;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,0BAA0B;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,kBAAkB;IAClB,IAAI,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;IAClC,yCAAyC;IACzC,MAAM,EAAE,MAAM,KAAK,CAAC,SAAS,CAAC;CAC/B;AAED,MAAM,WAAW,qBAAqB;IACpC,2BAA2B;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,sDAAsD;IACtD,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAChC,kCAAkC;IAClC,gBAAgB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACnC,gCAAgC;IAChC,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAChC,+BAA+B;IAC/B,OAAO,EAAE,eAAe,EAAE,CAAC;IAC3B,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAiBD;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EACvC,WAAW,EACX,aAAa,EACb,gBAAgB,EAChB,aAAa,EACb,OAAO,EACP,SAAc,GACf,EAAE,qBAAqB,2CAsCvB"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export interface ProcessHealthMetric {
|
|
2
|
+
/** Metric name */
|
|
3
|
+
name: string;
|
|
4
|
+
/** Health status */
|
|
5
|
+
status: 'good' | 'warning' | 'critical';
|
|
6
|
+
/** Display value */
|
|
7
|
+
value: string;
|
|
8
|
+
/** Optional trend indicator */
|
|
9
|
+
trend?: 'up' | 'down' | 'stable';
|
|
10
|
+
}
|
|
11
|
+
export interface ProcessHealthBarProps {
|
|
12
|
+
/** Process area name */
|
|
13
|
+
processName: string;
|
|
14
|
+
/** Health metrics for this process */
|
|
15
|
+
metrics: ProcessHealthMetric[];
|
|
16
|
+
/** Click handler for the process area */
|
|
17
|
+
onClick?: () => void;
|
|
18
|
+
/** Additional className */
|
|
19
|
+
className?: string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* ProcessHealthBar — Compact horizontal process health overview
|
|
23
|
+
*
|
|
24
|
+
* Shows traffic-light indicators for a process area's KPIs.
|
|
25
|
+
* Used in the persona-adaptive dashboard to show overall process health.
|
|
26
|
+
*/
|
|
27
|
+
export default function ProcessHealthBar({ processName, metrics, onClick, className, }: ProcessHealthBarProps): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
//# sourceMappingURL=ProcessHealthBar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProcessHealthBar.d.ts","sourceRoot":"","sources":["../../src/components/ProcessHealthBar.tsx"],"names":[],"mappings":"AAIA,MAAM,WAAW,mBAAmB;IAClC,kBAAkB;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,oBAAoB;IACpB,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,UAAU,CAAC;IACxC,oBAAoB;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,+BAA+B;IAC/B,KAAK,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,QAAQ,CAAC;CAClC;AAED,MAAM,WAAW,qBAAqB;IACpC,wBAAwB;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,sCAAsC;IACtC,OAAO,EAAE,mBAAmB,EAAE,CAAC;IAC/B,yCAAyC;IACzC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AA4BD;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EACvC,WAAW,EACX,OAAO,EACP,OAAO,EACP,SAAc,GACf,EAAE,qBAAqB,2CA2CvB"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface ProcessStage {
|
|
3
|
+
/** Unique stage identifier */
|
|
4
|
+
id: string;
|
|
5
|
+
/** Display name */
|
|
6
|
+
name: string;
|
|
7
|
+
/** Number of items at this stage */
|
|
8
|
+
count: number;
|
|
9
|
+
/** Color variant for the stage */
|
|
10
|
+
color?: 'slate' | 'blue' | 'indigo' | 'purple' | 'green' | 'red' | 'yellow' | 'orange' | 'teal' | 'primary';
|
|
11
|
+
/** Health status derived from thresholds */
|
|
12
|
+
health?: 'good' | 'warning' | 'critical';
|
|
13
|
+
/** Optional icon */
|
|
14
|
+
icon?: React.ReactNode;
|
|
15
|
+
}
|
|
16
|
+
export interface ProcessIndicatorProps {
|
|
17
|
+
/** Stages to display in order */
|
|
18
|
+
stages: ProcessStage[];
|
|
19
|
+
/** Currently selected/filtered stage ID */
|
|
20
|
+
activeStageId?: string;
|
|
21
|
+
/** Callback when a stage is clicked */
|
|
22
|
+
onStageClick?: (stageId: string) => void;
|
|
23
|
+
/** Show conversion rate between stages */
|
|
24
|
+
showConversion?: boolean;
|
|
25
|
+
/** Size variant */
|
|
26
|
+
size?: 'sm' | 'md' | 'lg';
|
|
27
|
+
/** Additional className */
|
|
28
|
+
className?: string;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* ProcessIndicator — Horizontal process flow visualization
|
|
32
|
+
*
|
|
33
|
+
* Shows stages as connected blocks with names, item counts, and health coloring.
|
|
34
|
+
* Stages are clickable for filtering. Used at the top of process views
|
|
35
|
+
* (Sales Pipeline, Support Center, Commission Lifecycle).
|
|
36
|
+
*/
|
|
37
|
+
export default function ProcessIndicator({ stages, activeStageId, onStageClick, showConversion, size, className, }: ProcessIndicatorProps): import("react/jsx-runtime").JSX.Element;
|
|
38
|
+
//# sourceMappingURL=ProcessIndicator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProcessIndicator.d.ts","sourceRoot":"","sources":["../../src/components/ProcessIndicator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,MAAM,WAAW,YAAY;IAC3B,8BAA8B;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,mBAAmB;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,oCAAoC;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,kCAAkC;IAClC,KAAK,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,CAAC;IAC5G,4CAA4C;IAC5C,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,UAAU,CAAC;IACzC,oBAAoB;IACpB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACxB;AAED,MAAM,WAAW,qBAAqB;IACpC,iCAAiC;IACjC,MAAM,EAAE,YAAY,EAAE,CAAC;IACvB,2CAA2C;IAC3C,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,uCAAuC;IACvC,YAAY,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,0CAA0C;IAC1C,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,mBAAmB;IACnB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAmCD;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EACvC,MAAM,EACN,aAAa,EACb,YAAY,EACZ,cAAsB,EACtB,IAAW,EACX,SAAc,GACf,EAAE,qBAAqB,2CAkFvB"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface ConfidenceBreakdown {
|
|
3
|
+
/** Factor name */
|
|
4
|
+
factor: string;
|
|
5
|
+
/** Factor score (0-100) */
|
|
6
|
+
score: number;
|
|
7
|
+
/** Factor description */
|
|
8
|
+
description?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface ReviewAction {
|
|
11
|
+
/** Button label */
|
|
12
|
+
label: string;
|
|
13
|
+
/** Button variant */
|
|
14
|
+
variant?: 'primary' | 'secondary' | 'danger' | 'ghost';
|
|
15
|
+
/** Click handler */
|
|
16
|
+
onClick: () => void;
|
|
17
|
+
/** Icon */
|
|
18
|
+
icon?: React.ReactNode;
|
|
19
|
+
}
|
|
20
|
+
export interface ReviewDecisionCardProps {
|
|
21
|
+
/** Card title — what needs review */
|
|
22
|
+
title: string;
|
|
23
|
+
/** Description */
|
|
24
|
+
description?: string;
|
|
25
|
+
/** Overall confidence score (0-100) */
|
|
26
|
+
confidence: number;
|
|
27
|
+
/** Confidence breakdown by factor */
|
|
28
|
+
breakdown?: ConfidenceBreakdown[];
|
|
29
|
+
/** System recommendation */
|
|
30
|
+
recommendation?: string;
|
|
31
|
+
/** Available actions (approve, reject, etc.) */
|
|
32
|
+
actions: ReviewAction[];
|
|
33
|
+
/** Entity type and identifier */
|
|
34
|
+
entityType?: string;
|
|
35
|
+
entityLabel?: string;
|
|
36
|
+
/** Click handler for entity link */
|
|
37
|
+
onEntityClick?: () => void;
|
|
38
|
+
/** Additional notes/context */
|
|
39
|
+
notes?: string;
|
|
40
|
+
/** Timestamp */
|
|
41
|
+
timestamp?: string;
|
|
42
|
+
/** Additional className */
|
|
43
|
+
className?: string;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* ReviewDecisionCard — Action card with confidence breakdown
|
|
47
|
+
*
|
|
48
|
+
* Extended ActionCard pattern that includes a confidence gauge and
|
|
49
|
+
* per-factor confidence breakdown. Used in the Approvals & Review queue
|
|
50
|
+
* for items requiring human judgment.
|
|
51
|
+
*/
|
|
52
|
+
export default function ReviewDecisionCard({ title, description, confidence, breakdown, recommendation, actions, entityType, entityLabel, onEntityClick, notes, timestamp, className, }: ReviewDecisionCardProps): import("react/jsx-runtime").JSX.Element;
|
|
53
|
+
//# sourceMappingURL=ReviewDecisionCard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReviewDecisionCard.d.ts","sourceRoot":"","sources":["../../src/components/ReviewDecisionCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,MAAM,WAAW,mBAAmB;IAClC,kBAAkB;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,2BAA2B;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,yBAAyB;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,YAAY;IAC3B,mBAAmB;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,qBAAqB;IACrB,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,QAAQ,GAAG,OAAO,CAAC;IACvD,oBAAoB;IACpB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,WAAW;IACX,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACxB;AAED,MAAM,WAAW,uBAAuB;IACtC,qCAAqC;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,kBAAkB;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,uCAAuC;IACvC,UAAU,EAAE,MAAM,CAAC;IACnB,qCAAqC;IACrC,SAAS,CAAC,EAAE,mBAAmB,EAAE,CAAC;IAClC,4BAA4B;IAC5B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gDAAgD;IAChD,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,iCAAiC;IACjC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,oCAAoC;IACpC,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,+BAA+B;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gBAAgB;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAiBD;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,EACzC,KAAK,EACL,WAAW,EACX,UAAU,EACV,SAAS,EACT,cAAc,EACd,OAAO,EACP,UAAU,EACV,WAAW,EACX,aAAa,EACb,KAAK,EACL,SAAS,EACT,SAAc,GACf,EAAE,uBAAuB,2CAiGzB"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export interface SLAIndicatorProps {
|
|
2
|
+
/** Time remaining display string (e.g., "2h 15m", "45m") */
|
|
3
|
+
timeRemaining?: string;
|
|
4
|
+
/** Total SLA duration in minutes (for progress calculation) */
|
|
5
|
+
totalMinutes?: number;
|
|
6
|
+
/** Elapsed minutes (for progress calculation) */
|
|
7
|
+
elapsedMinutes?: number;
|
|
8
|
+
/** Current SLA status */
|
|
9
|
+
status: 'on-track' | 'at-risk' | 'breached' | 'met';
|
|
10
|
+
/** Size variant */
|
|
11
|
+
size?: 'sm' | 'md' | 'lg';
|
|
12
|
+
/** Show as compact inline badge */
|
|
13
|
+
compact?: boolean;
|
|
14
|
+
/** Additional className */
|
|
15
|
+
className?: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* SLAIndicator — Visual SLA countdown with urgency coloring
|
|
19
|
+
*
|
|
20
|
+
* Shows time remaining, progress bar, and status icon.
|
|
21
|
+
* Used in Support Center case queue items and case detail views.
|
|
22
|
+
*/
|
|
23
|
+
export default function SLAIndicator({ timeRemaining, totalMinutes, elapsedMinutes, status, size, compact, className, }: SLAIndicatorProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
//# sourceMappingURL=SLAIndicator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SLAIndicator.d.ts","sourceRoot":"","sources":["../../src/components/SLAIndicator.tsx"],"names":[],"mappings":"AAOA,MAAM,WAAW,iBAAiB;IAChC,4DAA4D;IAC5D,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,+DAA+D;IAC/D,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iDAAiD;IACjD,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,yBAAyB;IACzB,MAAM,EAAE,UAAU,GAAG,SAAS,GAAG,UAAU,GAAG,KAAK,CAAC;IACpD,mBAAmB;IACnB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,mCAAmC;IACnC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAwBD;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EACnC,aAAa,EACb,YAAY,EACZ,cAAc,EACd,MAAM,EACN,IAAW,EACX,OAAe,EACf,SAAc,GACf,EAAE,iBAAiB,2CA+CnB"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface SplitPaneProps {
|
|
3
|
+
/** Content for the left/primary panel */
|
|
4
|
+
left: React.ReactNode;
|
|
5
|
+
/** Content for the right/secondary panel */
|
|
6
|
+
right: React.ReactNode;
|
|
7
|
+
/** Default width of the left panel as a fraction (0.0 - 1.0) */
|
|
8
|
+
defaultSplit?: number;
|
|
9
|
+
/** Minimum left panel width in pixels */
|
|
10
|
+
minLeftWidth?: number;
|
|
11
|
+
/** Minimum right panel width in pixels */
|
|
12
|
+
minRightWidth?: number;
|
|
13
|
+
/** Whether the divider is draggable */
|
|
14
|
+
resizable?: boolean;
|
|
15
|
+
/** Whether to show the right panel */
|
|
16
|
+
showRight?: boolean;
|
|
17
|
+
/** Orientation */
|
|
18
|
+
orientation?: 'horizontal' | 'vertical';
|
|
19
|
+
/** Callback when split ratio changes */
|
|
20
|
+
onSplitChange?: (ratio: number) => void;
|
|
21
|
+
/** Additional className */
|
|
22
|
+
className?: string;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* SplitPane — Resizable two-panel layout
|
|
26
|
+
*
|
|
27
|
+
* Renders a left/primary panel and right/secondary panel with a draggable divider.
|
|
28
|
+
* Used for list+detail patterns (case queue + case detail, statements + line items).
|
|
29
|
+
*
|
|
30
|
+
* The right panel can be toggled on/off via `showRight` prop.
|
|
31
|
+
*/
|
|
32
|
+
export default function SplitPane({ left, right, defaultSplit, minLeftWidth, minRightWidth, resizable, showRight, orientation, onSplitChange, className, }: SplitPaneProps): import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
//# sourceMappingURL=SplitPane.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SplitPane.d.ts","sourceRoot":"","sources":["../../src/components/SplitPane.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAMxE,MAAM,WAAW,cAAc;IAC7B,yCAAyC;IACzC,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,4CAA4C;IAC5C,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,gEAAgE;IAChE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,yCAAyC;IACzC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,0CAA0C;IAC1C,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,uCAAuC;IACvC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,sCAAsC;IACtC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,kBAAkB;IAClB,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;IACxC,wCAAwC;IACxC,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAMD;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,EAChC,IAAI,EACJ,KAAK,EACL,YAAkB,EAClB,YAAkB,EAClB,aAAmB,EACnB,SAAgB,EAChB,SAAgB,EAChB,WAA0B,EAC1B,aAAa,EACb,SAAc,GACf,EAAE,cAAc,2CAiGhB"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface SystemActionEntryProps {
|
|
3
|
+
/** What the system did */
|
|
4
|
+
actionDescription: string;
|
|
5
|
+
/** Why it did it */
|
|
6
|
+
reasoning: string;
|
|
7
|
+
/** Affected entity type */
|
|
8
|
+
entityType: string;
|
|
9
|
+
/** Affected entity display label */
|
|
10
|
+
entityLabel: string;
|
|
11
|
+
/** Click handler for entity link */
|
|
12
|
+
onEntityClick?: () => void;
|
|
13
|
+
/** Whether this action can be reverted */
|
|
14
|
+
isRevertible?: boolean;
|
|
15
|
+
/** Click handler for revert */
|
|
16
|
+
onRevert?: () => void;
|
|
17
|
+
/** Confidence score (0-100) */
|
|
18
|
+
confidence?: number;
|
|
19
|
+
/** Actor (system or user name) */
|
|
20
|
+
actor?: string;
|
|
21
|
+
/** Timestamp display string */
|
|
22
|
+
timestamp: string;
|
|
23
|
+
/** Action type category */
|
|
24
|
+
actionType?: string;
|
|
25
|
+
/** Process domain */
|
|
26
|
+
domain?: 'sales' | 'support' | 'commission' | 'reconciliation';
|
|
27
|
+
/** Icon */
|
|
28
|
+
icon?: React.ReactNode;
|
|
29
|
+
/** Whether the action has been reverted */
|
|
30
|
+
reverted?: boolean;
|
|
31
|
+
/** Additional className */
|
|
32
|
+
className?: string;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* SystemActionEntry — Activity feed entry showing what the system did
|
|
36
|
+
*
|
|
37
|
+
* Each entry shows: action description, reasoning, affected entity (clickable),
|
|
38
|
+
* revert button (if applicable), confidence indicator, and timestamp.
|
|
39
|
+
* Used in the Activity Center system action log.
|
|
40
|
+
*/
|
|
41
|
+
export default function SystemActionEntry({ actionDescription, reasoning, entityType, entityLabel, onEntityClick, isRevertible, onRevert, confidence, actor, timestamp, actionType, domain, icon, reverted, className, }: SystemActionEntryProps): import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
//# sourceMappingURL=SystemActionEntry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SystemActionEntry.d.ts","sourceRoot":"","sources":["../../src/components/SystemActionEntry.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,MAAM,WAAW,sBAAsB;IACrC,0BAA0B;IAC1B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,oBAAoB;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,2BAA2B;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,oCAAoC;IACpC,WAAW,EAAE,MAAM,CAAC;IACpB,oCAAoC;IACpC,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,0CAA0C;IAC1C,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,+BAA+B;IAC/B,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,+BAA+B;IAC/B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kCAAkC;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+BAA+B;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,2BAA2B;IAC3B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,qBAAqB;IACrB,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,YAAY,GAAG,gBAAgB,CAAC;IAC/D,WAAW;IACX,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,2CAA2C;IAC3C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAiBD;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,EACxC,iBAAiB,EACjB,SAAS,EACT,UAAU,EACV,WAAW,EACX,aAAa,EACb,YAAoB,EACpB,QAAQ,EACR,UAAU,EACV,KAAgB,EAChB,SAAS,EACT,UAAU,EACV,MAAM,EACN,IAAI,EACJ,QAAgB,EAChB,SAAc,GACf,EAAE,sBAAsB,2CAgGxB"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export interface VarianceDisplayProps {
|
|
2
|
+
/** Expected value */
|
|
3
|
+
expected: number;
|
|
4
|
+
/** Actual value */
|
|
5
|
+
actual: number;
|
|
6
|
+
/** Display format */
|
|
7
|
+
format?: 'currency' | 'number' | 'percentage';
|
|
8
|
+
/** Currency code for currency format */
|
|
9
|
+
currency?: string;
|
|
10
|
+
/** Tolerance percentage — within tolerance shows as neutral */
|
|
11
|
+
tolerancePercent?: number;
|
|
12
|
+
/** Whether to show the expected and actual values */
|
|
13
|
+
showValues?: boolean;
|
|
14
|
+
/** Size variant */
|
|
15
|
+
size?: 'sm' | 'md' | 'lg';
|
|
16
|
+
/** Additional className */
|
|
17
|
+
className?: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* VarianceDisplay — Expected vs actual comparison with tolerance coloring
|
|
21
|
+
*
|
|
22
|
+
* Shows the difference between expected and actual values, color-coded
|
|
23
|
+
* by tolerance thresholds. Used in the Reconciliation Hub for variance analysis.
|
|
24
|
+
*/
|
|
25
|
+
export default function VarianceDisplay({ expected, actual, format, currency, tolerancePercent, showValues, size, className, }: VarianceDisplayProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
//# sourceMappingURL=VarianceDisplay.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VarianceDisplay.d.ts","sourceRoot":"","sources":["../../src/components/VarianceDisplay.tsx"],"names":[],"mappings":"AAMA,MAAM,WAAW,oBAAoB;IACnC,qBAAqB;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,mBAAmB;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,qBAAqB;IACrB,MAAM,CAAC,EAAE,UAAU,GAAG,QAAQ,GAAG,YAAY,CAAC;IAC9C,wCAAwC;IACxC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,+DAA+D;IAC/D,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,qDAAqD;IACrD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,mBAAmB;IACnB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAqBD;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EACtC,QAAQ,EACR,MAAM,EACN,MAAmB,EACnB,QAAgB,EAChB,gBAAoB,EACpB,UAAiB,EACjB,IAAW,EACX,SAAc,GACf,EAAE,oBAAoB,2CAwDtB"}
|